|
||||||||||
| 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 VisitorCompileError
public void atPair(Pair n)
throws CompileError
atPair in class VisitorCompileError
public void atSymbol(Symbol n)
throws CompileError
atSymbol in class VisitorCompileError
public void atFieldDecl(FieldDecl field)
throws CompileError
atFieldDecl in class VisitorCompileError
public void atMethodDecl(MethodDecl method)
throws CompileError
atMethodDecl in class VisitorCompileError
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 VisitorCompileError
public void atDeclarator(Declarator d)
throws CompileError
atDeclarator in class VisitorCompileError
public abstract void atNewExpr(NewExpr n)
throws CompileError
atNewExpr in class VisitorCompileError
public void atAssignExpr(AssignExpr expr)
throws CompileError
atAssignExpr in class VisitorCompileError
public void atCondExpr(CondExpr expr)
throws CompileError
atCondExpr in class VisitorCompileError
public void atBinExpr(BinExpr expr)
throws CompileError
atBinExpr in class VisitorCompileError
public void atCastExpr(CastExpr expr)
throws CompileError
atCastExpr in class VisitorCompileError
public void atInstanceOfExpr(InstanceOfExpr expr)
throws CompileError
atInstanceOfExpr in class VisitorCompileError
public void atExpr(Expr expr)
throws CompileError
atExpr in class VisitorCompileError
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 VisitorCompileError
public void atVariable(Variable v)
throws CompileError
atVariable in class VisitorCompileError
public void atKeyword(Keyword k)
throws CompileError
atKeyword in class VisitorCompileError
public void atStringL(StringL s)
throws CompileError
atStringL in class VisitorCompileError
public void atIntConst(IntConst i)
throws CompileError
atIntConst in class VisitorCompileError
public void atDoubleConst(DoubleConst d)
throws CompileError
atDoubleConst in class VisitorCompileError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||