类 AbstractCodeGenerator
java.lang.Object
com.baidu.bjf.remoting.protobuf.code.AbstractCodeGenerator
- 所有已实现的接口:
ICodeGenerator
- 直接已知子类:
TemplateCodeGenerator
Abstract
ICodeGenerator implements.- 从以下版本开始:
- 1.10.7
- 作者:
- xiemalin
-
字段概要
字段修饰符和类型字段说明protected Class<?>The cls.protected booleanThe debug.The fields.protected FileThe output path.从接口继承的字段 com.baidu.bjf.remoting.protobuf.code.ICodeGenerator
CLASS_JOINER, DEFAULT_SUFFIX_CLASSNAME, JAVA_CLASS_FILE_SUFFIX, JAVA_END, JAVA_LINE_BREAK, LINE_BREAK, PACKAGE_SPLIT -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidprotected StringgetAccessByField(String target, Field field, Class<?> cls, boolean wildcardType) get field access code.voidgetAllDependenciesClasses(Set<Class> list) Gets the all dependencies classes.Gets the class name.Gets the dependencies classes.Gets the dependencies classes.getDependenciesClasses(List<FieldInfo> fields) Gets the dependencies classes.Gets the full class name.protected FileGets the output path.Gets the package.protected StringGets the target proxy classname.booleanisDebug()Checks if is debug.voidsetDebug(boolean debug) Sets the debug.voidsetOutputPath(File outputPath) Sets the output path.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baidu.bjf.remoting.protobuf.code.ICodeGenerator
getCode, getRelativeProxyClasses
-
字段详细资料
-
debug
protected boolean debugThe debug. -
outputPath
The output path. -
cls
The cls. -
fields
The fields.
-
-
构造器详细资料
-
AbstractCodeGenerator
Instantiates a new abstract code generator.- 参数:
cls- the cls
-
-
方法详细资料
-
getAllDependenciesClasses
Gets the all dependencies classes.- 参数:
list- the list
-
getDependenciesClasses
Gets the dependencies classes.- 参数:
cls- the cls- 返回:
- the dependencies classes
-
getDependenciesClasses
Gets the dependencies classes.- 返回:
- the dependencies classes
-
getDependenciesClasses
Gets the dependencies classes.- 参数:
fields- the fields- 返回:
- the dependencies classes
-
getTargetProxyClassname
Gets the target proxy classname.- 返回:
- the target proxy classname
-
setOutputPath
Sets the output path.- 指定者:
setOutputPath在接口中ICodeGenerator- 参数:
outputPath- the new output path
-
getOutputPath
Gets the output path.- 返回:
- the output path
-
isDebug
public boolean isDebug()Checks if is debug.- 指定者:
isDebug在接口中ICodeGenerator- 返回:
- true, if is debug
-
setDebug
public void setDebug(boolean debug) Sets the debug.- 指定者:
setDebug在接口中ICodeGenerator- 参数:
debug- the new debug- 另请参阅:
-
getClassName
Gets the class name.- 指定者:
getClassName在接口中ICodeGenerator- 返回:
- the class name
-
getPackage
Gets the package.- 指定者:
getPackage在接口中ICodeGenerator- 返回:
- the package
-
getFullClassName
Gets the full class name.- 指定者:
getFullClassName在接口中ICodeGenerator- 返回:
- the full class name
-
checkType
- 参数:
type- the typefield- the field
-
getAccessByField
get field access code.- 参数:
target- target instance namefield- java field instancecls- mapped class- 返回:
- full field access java code
-