| java.lang.Object javassist.compiler.ast.Visitor javassist.compiler.CodeGen
All known Subclasses: javassist.compiler.MemberCodeGen,
Inner Class :abstract protected static class ReturnHook | |
Method Summary | |
protected void | arrayAccess(ASTree array, ASTree index) | public void | atASTList(ASTList n) | abstract public void | atArrayInit(ArrayInit init) | public void | atArrayPlusPlus(int token, boolean isPost, Expr expr, boolean doDup) | public void | atArrayRead(ASTree array, ASTree index) | abstract protected void | atArrayVariableAssign(ArrayInit init, int varType, int varArray, String varClass) | protected void | atAssignCore(Expr expr, int op, ASTree right, int type, int dim, String cname) | public void | atAssignExpr(AssignExpr expr) | protected void | atAssignExpr(AssignExpr expr, boolean doDup) | public void | atBinExpr(BinExpr expr) | abstract public void | atCallExpr(CallExpr expr) | public void | atCastExpr(CastExpr expr) | public void | atClassObject(Expr expr) | public void | atCondExpr(CondExpr expr) | public void | atDeclarator(Declarator d) | public void | atDoubleConst(DoubleConst d) | public void | atExpr(Expr expr) | abstract protected void | atFieldAssign(Expr expr, int op, ASTree left, ASTree right, boolean doDup) | public void | atFieldDecl(FieldDecl field) | abstract protected void | atFieldPlusPlus(int token, boolean isPost, ASTree oprand, Expr expr, boolean doDup) | abstract protected void | atFieldRead(ASTree expr) | public void | atInstanceOfExpr(InstanceOfExpr expr) | public void | atIntConst(IntConst i) | public void | atKeyword(Keyword k) | abstract public void | atMember(Member n) | public void | atMethodBody(Stmnt s, boolean isCons, boolean isVoid) | public void | atMethodDecl(MethodDecl method) | abstract public void | atNewExpr(NewExpr n) | void | atNumCastExpr(int srcType, int destType) | public void | atPair(Pair n) | protected void | atPlusPlusCore(int dup_code, boolean doDup, int token, boolean isPost, Expr expr) | protected void | atReturnStmnt(Stmnt st) | final protected void | atReturnStmnt2(ASTree result) | public void | atStmnt(Stmnt st) | public void | atStringL(StringL s) | public void | atSymbol(Symbol n) | protected void | atTryStmnt(Stmnt st) | public void | atVariable(Variable v) | protected static void | badAssign(Expr expr) | protected static void | badType(Expr expr) | protected static void | badTypes(Expr expr) | public boolean | compileBooleanExpr(boolean branchIf, ASTree expr) | public void | compileExpr(ASTree expr) | public void | doTypeCheck(ASTree expr) | protected static void | fatal() | protected static int | getArrayReadOp(int type, int dim) | protected static int | getArrayWriteOp(int type, int dim) | static int | getCompOperator(ASTree expr) | protected int | getLocalVar(Declarator d) | public int | getMaxLocals() | abstract protected String | getSuperName() Returns the JVM-internal representation of this super class name. | protected int | getTempVar() Returns a local variable that single or double words can be
stored in. | abstract protected String | getThisName() Returns the JVM-internal representation of this class name. | protected void | incMaxLocals(int size) | abstract protected void | insertDefaultSuperCall() | public static boolean | is2word(int type, int dim) | static boolean | isP_INT(int type) | protected static boolean | isRefType(int type) | static int | lookupBinOp(int token) | protected void | patchGoto(ArrayList list, int targetPc) | abstract protected String | resolveClassName(ASTList name) | abstract protected String | resolveClassName(String jvmClassName) | static boolean | rightIsStrong(int type1, int type2) | public void | setMaxLocals(int n) | public void | setTypeChecker(TypeChecker checker) | protected static String | toJvmArrayName(String name, int dim) | protected static String | toJvmTypeName(int type, int dim) |
arrayDim | protected int arrayDim(Code) | | |
binOp | final static int[] binOp(Code) | | |
exprType | protected int exprType(Code) | | |
hasReturned | protected boolean hasReturned(Code) | | true if the last visited node is a return statement.
|
inStaticMethod | public boolean inStaticMethod(Code) | | Must be true if compilation is for a static method.
|
jvmJavaLangObject | final static String jvmJavaLangObject(Code) | | |
jvmJavaLangString | final static String jvmJavaLangString(Code) | | |
returnHooks | protected ReturnHook returnHooks(Code) | | |
atArrayPlusPlus | public void atArrayPlusPlus(int token, boolean isPost, Expr expr, boolean doDup) throws CompileError(Code) | | |
atFieldPlusPlus | abstract protected void atFieldPlusPlus(int token, boolean isPost, ASTree oprand, Expr expr, boolean doDup) throws CompileError(Code) | | |
atMethodBody | public void atMethodBody(Stmnt s, boolean isCons, boolean isVoid) throws CompileError(Code) | | Parameters: isCons - true if super() must be called.false if the method is a class initializer. |
atPlusPlusCore | protected void atPlusPlusCore(int dup_code, boolean doDup, int token, boolean isPost, Expr expr) throws CompileError(Code) | | |
getArrayReadOp | protected static int getArrayReadOp(int type, int dim)(Code) | | |
getArrayWriteOp | protected static int getArrayWriteOp(int type, int dim)(Code) | | |
getMaxLocals | public int getMaxLocals()(Code) | | |
getSuperName | abstract protected String getSuperName() throws CompileError(Code) | | Returns the JVM-internal representation of this super class name.
|
getTempVar | protected int getTempVar()(Code) | | Returns a local variable that single or double words can be
stored in.
|
getThisName | abstract protected String getThisName()(Code) | | Returns the JVM-internal representation of this class name.
|
incMaxLocals | protected void incMaxLocals(int size)(Code) | | |
insertDefaultSuperCall | abstract protected void insertDefaultSuperCall() throws CompileError(Code) | | |
is2word | public static boolean is2word(int type, int dim)(Code) | | |
isP_INT | static boolean isP_INT(int type)(Code) | | |
isRefType | protected static boolean isRefType(int type)(Code) | | |
lookupBinOp | static int lookupBinOp(int token)(Code) | | |
rightIsStrong | static boolean rightIsStrong(int type1, int type2)(Code) | | |
setMaxLocals | public void setMaxLocals(int n)(Code) | | |
toJvmArrayName | protected static String toJvmArrayName(String name, int dim)(Code) | | Parameters: name - the JVM-internal representation.name is not exapnded to java.lang.*. |
toJvmTypeName | protected static String toJvmTypeName(int type, int dim)(Code) | | |
|
|