Package net.binis.codegen.compiler
Class TreeMaker
java.lang.Object
net.binis.codegen.compiler.base.JavaCompilerObject
net.binis.codegen.compiler.TreeMaker
-
Field Summary
FieldsFields inherited from class net.binis.codegen.compiler.base.JavaCompilerObject
cls, context, env, instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnnotation(CGExpression annotationType, CGList<CGExpression> args) Apply(CGList<CGExpression> typeargs, CGExpression fn, CGList<CGExpression> args) Assign(CGExpression lhs, CGExpression rhs) at(int pos) static TreeMakercreate()getTrees()protected voidinit()NewArray(CGExpression elemtype, CGList<CGExpression> dims, CGList<CGExpression> elems) ReceiverVarDef(CGModifiers mods, CGName name, CGExpression vartype) Select(CGExpression selected, CGName selector) Select(CGExpression base, CGSymbol sym) TypeCast(CGTree clazz, CGExpression expr) VarDef(CGModifiers mods, CGName name, CGExpression vartype, CGExpression init) VarDef(CGModifiers mods, CGName name, CGExpression vartype, CGExpression init, boolean declaredUsingVar) VarDef(CGVarSymbol symbol, CGExpression init) Methods inherited from class net.binis.codegen.compiler.base.JavaCompilerObject
getCls, getInstance, is, toName, toString
-
Field Details
-
trees
-
-
Constructor Details
-
TreeMaker
public TreeMaker()
-
-
Method Details
-
create
-
init
protected void init()- Specified by:
initin classJavaCompilerObject
-
getTrees
-
at
-
QualIdent
-
Annotation
-
Assign
-
Ident
-
Literal
-
Select
-
Select
-
NewArray
public CGNewArray NewArray(CGExpression elemtype, CGList<CGExpression> dims, CGList<CGExpression> elems) -
TypeIdent
-
TypeCast
-
VarDef
public CGVariableDecl VarDef(CGModifiers mods, CGName name, CGExpression vartype, CGExpression init) -
VarDef
public CGVariableDecl VarDef(CGModifiers mods, CGName name, CGExpression vartype, CGExpression init, boolean declaredUsingVar) -
ReceiverVarDef
-
VarDef
-
getSymbol
-
Apply
public CGMethodInvocation Apply(CGList<CGExpression> typeargs, CGExpression fn, CGList<CGExpression> args)
-