| Package | Description | 
|---|---|
| javassist | The Javassist Core API. | 
| javassist.compiler | |
| javassist.compiler.ast | 
| Constructor and Description | 
|---|
| CannotCompileException(CompileError e)Constructs a CannotCompileException with an  CompileError. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | NoFieldException | 
| class  | SyntaxError | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | CodeGen. arrayAccess(ASTree array,
           ASTree index) | 
| abstract void | CodeGen. atArrayInit(ArrayInit init) | 
| void | MemberCodeGen. atArrayInit(ArrayInit init) | 
| void | TypeChecker. atArrayInit(ArrayInit init) | 
| void | TypeChecker. atArrayLength(Expr expr) | 
| void | CodeGen. atArrayPlusPlus(int token,
               boolean isPost,
               Expr expr,
               boolean doDup) | 
| void | CodeGen. atArrayRead(ASTree array,
           ASTree index) | 
| void | TypeChecker. atArrayRead(ASTree array,
           ASTree index) | 
| protected abstract void | CodeGen. atArrayVariableAssign(ArrayInit init,
                     int varType,
                     int varArray,
                     String varClass) | 
| protected void | MemberCodeGen. atArrayVariableAssign(ArrayInit init,
                     int varType,
                     int varArray,
                     String varClass) | 
| protected void | CodeGen. atAssignCore(Expr expr,
            int op,
            ASTree right,
            int type,
            int dim,
            String cname) | 
| void | CodeGen. atAssignExpr(AssignExpr expr) | 
| void | TypeChecker. atAssignExpr(AssignExpr expr) | 
| protected void | CodeGen. atAssignExpr(AssignExpr expr,
            boolean doDup) | 
| protected void | JvstCodeGen. atAssignParamList(CtClass[] params,
                 Bytecode code) | 
| void | CodeGen. atASTList(ASTList n) | 
| void | CodeGen. atBinExpr(BinExpr expr) | 
| void | TypeChecker. atBinExpr(BinExpr expr) | 
| abstract void | CodeGen. atCallExpr(CallExpr expr) | 
| void | JvstTypeChecker. atCallExpr(CallExpr expr) | 
| void | MemberCodeGen. atCallExpr(CallExpr expr) | 
| void | JvstCodeGen. atCallExpr(CallExpr expr) | 
| void | TypeChecker. atCallExpr(CallExpr expr) | 
| void | CodeGen. atCastExpr(CastExpr expr) | 
| void | JvstTypeChecker. atCastExpr(CastExpr expr) | 
| void | JvstCodeGen. atCastExpr(CastExpr expr) | 
| void | TypeChecker. atCastExpr(CastExpr expr) | 
| protected void | JvstTypeChecker. atCastToRtype(CastExpr expr)Inserts a cast operator to the return type. | 
| protected void | JvstCodeGen. atCastToRtype(CastExpr expr)Inserts a cast operator to the return type. | 
| protected void | JvstTypeChecker. atCastToWrapper(CastExpr expr) | 
| protected void | JvstCodeGen. atCastToWrapper(CastExpr expr) | 
| protected void | JvstTypeChecker. atCflow(ASTList cname) | 
| protected void | JvstCodeGen. atCflow(ASTList cname) | 
| void | CodeGen. atClassObject(Expr expr) | 
| void | TypeChecker. atClassObject(Expr expr) | 
| protected void | CodeGen. atClassObject2(String cname) | 
| protected void | MemberCodeGen. atClassObject2(String cname) | 
| void | CodeGen. atCondExpr(CondExpr expr) | 
| void | TypeChecker. atCondExpr(CondExpr expr) | 
| void | CodeGen. atDeclarator(Declarator d) | 
| void | CodeGen. atDoubleConst(DoubleConst d) | 
| void | TypeChecker. atDoubleConst(DoubleConst d) | 
| void | CodeGen. atExpr(Expr expr) | 
| void | TypeChecker. atExpr(Expr expr) | 
| protected void | JvstTypeChecker. atFieldAssign(Expr expr,
             int op,
             ASTree left,
             ASTree right) | 
| protected void | TypeChecker. atFieldAssign(Expr expr,
             int op,
             ASTree left,
             ASTree right) | 
| protected abstract void | CodeGen. atFieldAssign(Expr expr,
             int op,
             ASTree left,
             ASTree right,
             boolean doDup) | 
| protected void | MemberCodeGen. atFieldAssign(Expr expr,
             int op,
             ASTree left,
             ASTree right,
             boolean doDup) | 
| protected void | JvstCodeGen. atFieldAssign(Expr expr,
             int op,
             ASTree left,
             ASTree right,
             boolean doDup) | 
| void | CodeGen. atFieldDecl(FieldDecl field) | 
| protected void | TypeChecker. atFieldPlusPlus(ASTree oprand) | 
| protected abstract void | CodeGen. atFieldPlusPlus(int token,
               boolean isPost,
               ASTree oprand,
               Expr expr,
               boolean doDup) | 
| protected void | MemberCodeGen. atFieldPlusPlus(int token,
               boolean isPost,
               ASTree oprand,
               Expr expr,
               boolean doDup) | 
| protected abstract void | CodeGen. atFieldRead(ASTree expr) | 
| protected void | MemberCodeGen. atFieldRead(ASTree expr) | 
| void | CodeGen. atInstanceOfExpr(InstanceOfExpr expr) | 
| void | TypeChecker. atInstanceOfExpr(InstanceOfExpr expr) | 
| void | CodeGen. atIntConst(IntConst i) | 
| void | TypeChecker. atIntConst(IntConst i) | 
| void | CodeGen. atKeyword(Keyword k) | 
| void | TypeChecker. atKeyword(Keyword k) | 
| abstract void | CodeGen. atMember(Member n) | 
| void | JvstTypeChecker. atMember(Member mem) | 
| void | MemberCodeGen. atMember(Member mem) | 
| void | JvstCodeGen. atMember(Member mem) | 
| void | TypeChecker. atMember(Member mem) | 
| void | JvstTypeChecker. atMethodArgs(ASTList args,
            int[] types,
            int[] dims,
            String[] cnames) | 
| void | MemberCodeGen. atMethodArgs(ASTList args,
            int[] types,
            int[] dims,
            String[] cnames) | 
| void | JvstCodeGen. atMethodArgs(ASTList args,
            int[] types,
            int[] dims,
            String[] cnames) | 
| void | TypeChecker. atMethodArgs(ASTList args,
            int[] types,
            int[] dims,
            String[] cnames) | 
| void | CodeGen. atMethodBody(Stmnt s,
            boolean isCons,
            boolean isVoid) | 
| MemberResolver.Method | TypeChecker. atMethodCallCore(CtClass targetClass,
                String mname,
                ASTList args) | 
| void | MemberCodeGen. atMethodCallCore(CtClass targetClass,
                String mname,
                ASTList args,
                boolean isStatic,
                boolean isSpecial,
                int aload0pos,
                MemberResolver.Method found) | 
| void | CodeGen. atMethodDecl(MethodDecl method) | 
| protected void | MemberCodeGen. atMultiNewArray(int type,
               ASTList classname,
               ASTList size) | 
| protected void | TypeChecker. atMultiNewArray(int type,
               ASTList classname,
               ASTList size) | 
| void | MemberCodeGen. atNewArrayExpr(NewExpr expr) | 
| void | TypeChecker. atNewArrayExpr(NewExpr expr) | 
| abstract void | CodeGen. atNewExpr(NewExpr n) | 
| void | MemberCodeGen. atNewExpr(NewExpr expr) | 
| void | TypeChecker. atNewExpr(NewExpr expr) | 
| void | CodeGen. atPair(Pair n) | 
| protected void | CodeGen. atPlusPlusCore(int dup_code,
              boolean doDup,
              int token,
              boolean isPost,
              Expr expr) | 
| protected void | CodeGen. atReturnStmnt(Stmnt st) | 
| protected void | JvstCodeGen. atReturnStmnt(Stmnt st) | 
| protected void | CodeGen. atReturnStmnt2(ASTree result) | 
| void | CodeGen. atStmnt(Stmnt st) | 
| void | CodeGen. atStringL(StringL s) | 
| void | TypeChecker. atStringL(StringL s) | 
| void | CodeGen. atSymbol(Symbol n) | 
| protected void | CodeGen. atTryStmnt(Stmnt st) | 
| protected void | MemberCodeGen. atTryStmnt(Stmnt st) | 
| void | CodeGen. atVariable(Variable v) | 
| void | TypeChecker. atVariable(Variable v) | 
| protected static void | CodeGen. badAssign(Expr expr) | 
| protected static void | CodeGen. badType(Expr expr) | 
| protected static void | CodeGen. badTypes(Expr expr) | 
| CtMember | Javac. compile(String src)Compiles a method, constructor, or field declaration
 to a class. | 
| Bytecode | Javac. compileBody(CtBehavior method,
           String src)Compiles a method (or constructor) body. | 
| boolean | CodeGen. compileBooleanExpr(boolean branchIf,
                  ASTree expr) | 
| void | Javac. compileExpr(ASTree e)Compiles an exression. | 
| void | CodeGen. compileExpr(ASTree expr) | 
| void | Javac. compileExpr(String src)Compiles an exression. | 
| void | Javac. compileStmnt(String src)Compiles a statement (or a block). | 
| protected void | JvstTypeChecker. compileUnwrapValue(CtClass type) | 
| protected void | JvstCodeGen. compileUnwrapValue(CtClass type,
                  Bytecode code) | 
| static int | MemberResolver. descToType(char c) | 
| void | ProceedHandler. doit(JvstCodeGen gen,
    Bytecode b,
    ASTList args) | 
| void | JvstCodeGen. doNumCast(CtClass type) | 
| void | CodeGen. doTypeCheck(ASTree expr) | 
| protected static void | CodeGen. fatal() | 
| protected static void | TypeChecker. fatal() | 
| protected CtField | TypeChecker. fieldAccess(ASTree expr) | 
| protected CtField | MemberCodeGen. fieldAccess(ASTree expr,
           boolean acceptLength) | 
| protected String | MemberCodeGen. getAccessibleConstructor(String desc,
                        CtClass declClass,
                        MethodInfo minfo) | 
| protected String | MemberCodeGen. getAccessiblePrivate(String methodName,
                    String desc,
                    String newDesc,
                    MethodInfo minfo,
                    CtClass declClass) | 
| String | AccessorMaker. getConstructor(CtClass c,
              String desc,
              MethodInfo orig) | 
| MethodInfo | AccessorMaker. getFieldGetter(FieldInfo finfo,
              boolean is_static)Returns the method_info representing the added getter. | 
| MethodInfo | AccessorMaker. getFieldSetter(FieldInfo finfo,
              boolean is_static)Returns the method_info representing the added setter. | 
| String | AccessorMaker. getMethodAccessor(String name,
                 String desc,
                 String accDesc,
                 MethodInfo orig)Returns the name of the method for accessing a private method. | 
| static CtClass | MemberResolver. getSuperclass(CtClass c) | 
| static CtClass | MemberResolver. getSuperInterface(CtClass c,
                 String interfaceName) | 
| protected abstract String | CodeGen. getSuperName()Returns the JVM-internal representation of this super class name. | 
| protected String | MemberCodeGen. getSuperName()Returns the JVM-internal representation of this super class name. | 
| protected String | TypeChecker. getSuperName()Returns the JVM-internal representation of this super class name. | 
| protected abstract void | CodeGen. insertDefaultSuperCall() | 
| protected void | MemberCodeGen. insertDefaultSuperCall() | 
| CtClass | MemberResolver. lookupClass(Declarator decl) | 
| CtClass | MemberResolver. lookupClass(int type,
           int dim,
           String classname) | 
| CtClass | MemberResolver. lookupClass(String name,
           boolean notCheckInner) | 
| CtClass | MemberResolver. lookupClassByJvmName(String jvmName) | 
| CtClass | MemberResolver. lookupClassByName(ASTList name) | 
| CtField | MemberResolver. lookupField(String className,
           Symbol fieldName) | 
| CtField | MemberResolver. lookupFieldByJvmName(String jvmClassName,
                    Symbol fieldName) | 
| MemberResolver.Method | MemberResolver. lookupMethod(CtClass clazz,
            CtClass currentClass,
            MethodInfo current,
            String methodName,
            int[] argTypes,
            int[] argDims,
            String[] argClassNames) | 
| CtClass[] | MemberCodeGen. makeParamList(MethodDecl md) | 
| CtClass[] | MemberCodeGen. makeThrowsList(MethodDecl md) | 
| static ASTree | Javac. parseExpr(String src,
         SymbolTable st)Parsers an expression. | 
| ASTree | Parser. parseExpression(SymbolTable tbl) | 
| ASTList | Parser. parseMember(SymbolTable tbl) | 
| ASTList | Parser. parseMember1(SymbolTable tbl) | 
| MethodDecl | Parser. parseMethod2(SymbolTable tbl,
            MethodDecl md) | 
| Stmnt | Parser. parseStatement(SymbolTable tbl) | 
| boolean | Javac. recordLocalVariables(CodeAttribute ca,
                    int pc)Records local variables available at the specified program counter. | 
| boolean | Javac. recordParamNames(CodeAttribute ca,
                int numOfLocalVars)Records parameter names if the LocalVariableAttribute is available. | 
| int | Javac. recordParams(CtClass[] params,
            boolean isStatic)Makes variables $0 (this), $1, $2, ..., and $args represent method
 parameters. | 
| int | JvstCodeGen. recordParams(CtClass[] params,
            boolean isStatic,
            String prefix,
            String paramVarName,
            String paramsName,
            boolean use0,
            int paramBase,
            String target,
            SymbolTable tbl)Makes method parameters $0, $1, ..., $args, $$, and $class available. | 
| int | JvstCodeGen. recordParams(CtClass[] params,
            boolean isStatic,
            String prefix,
            String paramVarName,
            String paramsName,
            SymbolTable tbl)Makes method parameters $0, $1, ..., $args, $$, and $class available. | 
| int | Javac. recordParams(String target,
            CtClass[] params,
            boolean use0,
            int varNo,
            boolean isStatic)Makes variables $0, $1, $2, ..., and $args represent method
 parameters. | 
| void | Javac. recordProceed(String target,
             String method)Prepares to use $proceed(). | 
| int | Javac. recordReturnType(CtClass type,
                boolean useResultVar)Prepares to use cast $r, $w, $_, and $type. | 
| int | JvstCodeGen. recordReturnType(CtClass type,
                String castName,
                String resultName,
                SymbolTable tbl)Makes a cast to the return type ($r) available. | 
| void | Javac. recordSpecialProceed(String target,
                    String classname,
                    String methodname,
                    String descriptor,
                    int methodIndex)Prepares to use $proceed() representing a private/super's method. | 
| void | Javac. recordStaticProceed(String targetClass,
                   String method)Prepares to use $proceed() representing a static method. | 
| int | Javac. recordVariable(CtClass type,
              String name)Makes the given variable available. | 
| int | JvstCodeGen. recordVariable(CtClass type,
              String varName,
              SymbolTable tbl)Makes the given variable name available. | 
| void | JvstCodeGen. recordVariable(String typeDesc,
              String varName,
              int varNo,
              SymbolTable tbl)Makes the given variable name available. | 
| protected abstract String | CodeGen. resolveClassName(ASTList name) | 
| protected String | MemberCodeGen. resolveClassName(ASTList name) | 
| String | MemberResolver. resolveClassName(ASTList name) | 
| protected String | TypeChecker. resolveClassName(ASTList name) | 
| protected abstract String | CodeGen. resolveClassName(String jvmClassName) | 
| protected String | MemberCodeGen. resolveClassName(String jvmName) | 
| protected String | TypeChecker. resolveClassName(String jvmName) | 
| String | MemberResolver. resolveJvmClassName(String jvmName) | 
| void | ProceedHandler. setReturnType(JvstTypeChecker c,
             ASTList args) | 
| void | JvstTypeChecker. setType(CtClass type) | 
| void | JvstCodeGen. setType(CtClass type) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Expr. accept(Visitor v) | 
| void | StringL. accept(Visitor v) | 
| void | Symbol. accept(Visitor v) | 
| void | CondExpr. accept(Visitor v) | 
| void | NewExpr. accept(Visitor v) | 
| void | Member. accept(Visitor v) | 
| void | Keyword. accept(Visitor v) | 
| void | BinExpr. accept(Visitor v) | 
| void | Stmnt. accept(Visitor v) | 
| void | IntConst. accept(Visitor v) | 
| void | FieldDecl. accept(Visitor v) | 
| void | CastExpr. accept(Visitor v) | 
| abstract void | ASTree. accept(Visitor v)Is a method for the visitor pattern. | 
| void | ArrayInit. accept(Visitor v) | 
| void | InstanceOfExpr. accept(Visitor v) | 
| void | ASTList. accept(Visitor v) | 
| void | CallExpr. accept(Visitor v) | 
| void | MethodDecl. accept(Visitor v) | 
| void | DoubleConst. accept(Visitor v) | 
| void | AssignExpr. accept(Visitor v) | 
| void | Declarator. accept(Visitor v) | 
| void | Pair. accept(Visitor v) | 
| void | Variable. accept(Visitor v) | 
| void | Visitor. atArrayInit(ArrayInit n) | 
| void | Visitor. atAssignExpr(AssignExpr n) | 
| void | Visitor. atASTList(ASTList n) | 
| void | Visitor. atBinExpr(BinExpr n) | 
| void | Visitor. atCallExpr(CallExpr n) | 
| void | Visitor. atCastExpr(CastExpr n) | 
| void | Visitor. atCondExpr(CondExpr n) | 
| void | Visitor. atDeclarator(Declarator n) | 
| void | Visitor. atDoubleConst(DoubleConst n) | 
| void | Visitor. atExpr(Expr n) | 
| void | Visitor. atFieldDecl(FieldDecl n) | 
| void | Visitor. atInstanceOfExpr(InstanceOfExpr n) | 
| void | Visitor. atIntConst(IntConst n) | 
| void | Visitor. atKeyword(Keyword n) | 
| void | Visitor. atMember(Member n) | 
| void | Visitor. atMethodDecl(MethodDecl n) | 
| void | Visitor. atNewExpr(NewExpr n) | 
| void | Visitor. atPair(Pair n) | 
| void | Visitor. atStmnt(Stmnt n) | 
| void | Visitor. atStringL(StringL n) | 
| void | Visitor. atSymbol(Symbol n) | 
| void | Visitor. atVariable(Variable n) | 
Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.