public interface ICodeGenerator
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CLASS_JOINER |
static String |
DEFAULT_SUFFIX_CLASSNAME
auto proxied suffix class name.
|
static String |
JAVA_CLASS_FILE_SUFFIX |
static String |
JAVA_END
java line end
|
static String |
JAVA_LINE_BREAK
line break for JAVA
|
static String |
LINE_BREAK
line break for editor
|
static String |
PACKAGE_SPLIT
auto proxied suffix class name
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getClassName()
Gets the class name.
|
String |
getCode()
Gets the code.
|
String |
getFullClassName()
Gets the full class name.
|
String |
getPackage()
Gets the package.
|
Set<Class<?>> |
getRelativeProxyClasses()
Gets the relative proxy classes.
|
boolean |
isDebug()
Checks if is debug.
|
void |
setDebug(boolean debug)
Sets the debug. if enabled print out source code after generated
|
void |
setOutputPath(File outputPath)
Sets the output path. if set should write generated source code to target path
|
static final String DEFAULT_SUFFIX_CLASSNAME
void setOutputPath(File outputPath)
outputPath - the new output pathboolean isDebug()
void setDebug(boolean debug)
debug - the new debuggetCode()String getClassName()
String getPackage()
String getFullClassName()
String getCode()
Copyright © 2022 Baidu, Inc.. All rights reserved.