Class EnrichHelpers
java.lang.Object
net.binis.codegen.generation.core.EnrichHelpers
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrototypeFieldaddField(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description, String name, com.github.javaparser.ast.type.Type type) static PrototypeFieldaddField(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description, String name, Class<?> type) static PrototypeFieldaddField(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description, String name, String type) static com.github.javaparser.ast.expr.AnnotationExprannotation(String code) static com.github.javaparser.ast.stmt.BlockStmtstatic Stringstatic ElementdeepFindElement(com.github.javaparser.ast.Node node, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> parsed) static List<JavaCompilerObject>deepFindElementList(com.github.javaparser.ast.Node node, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> parsed) static com.github.javaparser.ast.expr.Expressionexpression(String code) static com.github.javaparser.ast.body.MethodDeclarationstatic com.github.javaparser.ast.stmt.BlockStmtreturnBlock(String variable) static com.github.javaparser.ast.stmt.Statementstatic com.github.javaparser.ast.CompilationUnitunit(com.github.javaparser.ast.Node node)
-
Method Details
-
unit
public static com.github.javaparser.ast.CompilationUnit unit(com.github.javaparser.ast.Node node) -
block
-
returnBlock
-
statement
-
expression
-
annotation
-
method
-
addField
public static PrototypeField addField(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description, String name, String type) -
calcBlock
-
addField
public static PrototypeField addField(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description, String name, com.github.javaparser.ast.type.Type type) -
addField
public static PrototypeField addField(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> description, String name, Class<?> type) -
deepFindElementList
public static List<JavaCompilerObject> deepFindElementList(com.github.javaparser.ast.Node node, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> parsed) -
deepFindElement
public static Element deepFindElement(com.github.javaparser.ast.Node node, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> parsed)
-