Package net.binis.codegen.compiler.utils
Class ElementUtils
java.lang.Object
net.binis.codegen.compiler.utils.ElementUtils
- Direct Known Subclasses:
ElementAnnotationUtils,ElementFieldUtils,ElementMethodUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CGExpressioncalcExpression(TreeMaker maker, Object value) protected static CGExpressionchainDots(JavaCompilerObject node, int pos, String elem1, String elem2, String... elems) protected static CGExpressionchainDots(JavaCompilerObject node, String[] elems) protected static CGExpressionchainDots(JavaCompilerObject node, String elem1, String elem2, String... elems) static CGExpressionchainDotsString(String elems) static CGExpressionchainDotsString(JavaCompilerObject node, String elems) static CGExpressionclassToExpression(Class<?> cls) static CGExpressioncloneType(TreeMaker maker, JavaCompilerObject in) static CGExpressioncreateFieldAccess(TreeMaker maker, String className) static CGDeclarationgetDeclaration(Element element) protected static CGDeclarationgetDeclaration(Element element, TreeMaker maker) static StringgetSymbolFullName(Element element) protected static Map<String,Class<? extends JavaCompilerObject>> static CGTypeTagprimitiveTypeTag(Class<?> cls) protected static voidregisterClass(Map<String, Class<? extends JavaCompilerObject>> map, Class<? extends JavaCompilerObject> registerClass) static CGFieldAccessselfType(CGClassDeclaration decl) protected static CGFieldAccess
-
Field Details
-
CLASS_MAP
-
-
Constructor Details
-
ElementUtils
public ElementUtils()
-
-
Method Details
-
getDeclaration
-
getDeclaration
-
selfType
-
toType
-
chainDots
protected static CGExpression chainDots(JavaCompilerObject node, String elem1, String elem2, String... elems) -
chainDots
-
chainDots
protected static CGExpression chainDots(JavaCompilerObject node, int pos, String elem1, String elem2, String... elems) -
chainDotsString
-
chainDotsString
-
getSymbolFullName
-
classToExpression
-
primitiveTypeTag
-
calcExpression
-
createFieldAccess
-
initClassMap
-
registerClass
protected static void registerClass(Map<String, Class<? extends JavaCompilerObject>> map, Class<? extends JavaCompilerObject> registerClass) -
cloneType
-