|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectclassUtils.javassist.compiler.ast.Visitor
classUtils.javassist.compiler.CodeGen
public abstract class CodeGen
Field Summary | |
---|---|
boolean |
inStaticMethod
Must be true if compilation is for a static method. |
Fields inherited from interface classUtils.javassist.compiler.TokenId |
---|
ABSTRACT, AND_E, ANDAND, ARRAY, ARSHIFT, ARSHIFT_E, assignOps, BadToken, BLOCK, BOOLEAN, BREAK, BYTE, CALL, CASE, CATCH, CHAR, CharConstant, CLASS, CONST, CONTINUE, DECL, DEFAULT, DIV_E, DO, DOUBLE, DoubleConstant, ELSE, EQ, EXOR_E, EXPR, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FloatConstant, FOR, GE, GOTO, Identifier, IF, IMPLEMENTS, IMPORT, INSTANCEOF, INT, IntConstant, INTERFACE, LABEL, LE, LONG, LongConstant, LSHIFT, LSHIFT_E, MEMBER, MINUS_E, MINUSMINUS, MOD_E, MUL_E, NATIVE, NEQ, NEW, NULL, opNames, OR_E, OROR, PACKAGE, PLUS_E, PLUSPLUS, PRIVATE, PROTECTED, PUBLIC, RETURN, RSHIFT, RSHIFT_E, SHORT, STATIC, STRICT, StringL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE |
Constructor Summary | |
---|---|
CodeGen(Bytecode b)
|
Method Summary | |
---|---|
void |
atArrayLength(Expr expr)
|
void |
atArrayPlusPlus(int token,
boolean isPost,
Expr expr,
boolean doDup)
|
void |
atArrayRead(ASTree array,
ASTree index)
|
void |
atAssignExpr(AssignExpr expr)
|
void |
atASTList(ASTList n)
|
void |
atBinExpr(BinExpr expr)
|
void |
atCastExpr(CastExpr expr)
|
boolean |
atClassObject(Expr expr)
|
void |
atCondExpr(CondExpr expr)
|
void |
atDeclarator(Declarator d)
|
void |
atDoubleConst(DoubleConst d)
|
void |
atExpr(Expr expr)
|
void |
atFieldDecl(FieldDecl field)
|
void |
atInstanceOfExpr(InstanceOfExpr expr)
|
void |
atIntConst(IntConst i)
|
void |
atKeyword(Keyword k)
|
abstract void |
atMember(Member n)
|
void |
atMethodBody(Stmnt s,
boolean isCons,
boolean isVoid)
|
void |
atMethodDecl(MethodDecl method)
|
abstract void |
atNewExpr(NewExpr n)
|
void |
atPair(Pair n)
|
void |
atStmnt(Stmnt st)
|
void |
atStringL(StringL s)
|
void |
atSymbol(Symbol n)
|
void |
atVariable(Variable v)
|
int |
getMaxLocals()
|
static boolean |
is2word(int type,
int dim)
|
void |
setMaxLocals(int n)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean inStaticMethod
Constructor Detail |
---|
public CodeGen(Bytecode b)
Method Detail |
---|
public static boolean is2word(int type, int dim)
public int getMaxLocals()
public void setMaxLocals(int n)
public void atASTList(ASTList n) throws CompileError
atASTList
in class Visitor
CompileError
public void atPair(Pair n) throws CompileError
atPair
in class Visitor
CompileError
public void atSymbol(Symbol n) throws CompileError
atSymbol
in class Visitor
CompileError
public void atFieldDecl(FieldDecl field) throws CompileError
atFieldDecl
in class Visitor
CompileError
public void atMethodDecl(MethodDecl method) throws CompileError
atMethodDecl
in class Visitor
CompileError
public void atMethodBody(Stmnt s, boolean isCons, boolean isVoid) throws CompileError
isCons
- true if super() must be called.
false if the method is a class initializer.
CompileError
public void atStmnt(Stmnt st) throws CompileError
atStmnt
in class Visitor
CompileError
public void atDeclarator(Declarator d) throws CompileError
atDeclarator
in class Visitor
CompileError
public abstract void atNewExpr(NewExpr n) throws CompileError
atNewExpr
in class Visitor
CompileError
public void atAssignExpr(AssignExpr expr) throws CompileError
atAssignExpr
in class Visitor
CompileError
public void atCondExpr(CondExpr expr) throws CompileError
atCondExpr
in class Visitor
CompileError
public void atBinExpr(BinExpr expr) throws CompileError
atBinExpr
in class Visitor
CompileError
public void atCastExpr(CastExpr expr) throws CompileError
atCastExpr
in class Visitor
CompileError
public void atInstanceOfExpr(InstanceOfExpr expr) throws CompileError
atInstanceOfExpr
in class Visitor
CompileError
public void atExpr(Expr expr) throws CompileError
atExpr
in class Visitor
CompileError
public boolean atClassObject(Expr expr) throws CompileError
CompileError
public void atArrayLength(Expr expr) throws CompileError
CompileError
public void atArrayRead(ASTree array, ASTree index) throws CompileError
CompileError
public void atArrayPlusPlus(int token, boolean isPost, Expr expr, boolean doDup) throws CompileError
CompileError
public abstract void atMember(Member n) throws CompileError
atMember
in class Visitor
CompileError
public void atVariable(Variable v) throws CompileError
atVariable
in class Visitor
CompileError
public void atKeyword(Keyword k) throws CompileError
atKeyword
in class Visitor
CompileError
public void atStringL(StringL s) throws CompileError
atStringL
in class Visitor
CompileError
public void atIntConst(IntConst i) throws CompileError
atIntConst
in class Visitor
CompileError
public void atDoubleConst(DoubleConst d) throws CompileError
atDoubleConst
in class Visitor
CompileError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |