| Package | Description | 
|---|---|
| javassist | The Javassist Core API. | 
| javassist.bytecode | Bytecode-level API. | 
| javassist.bytecode.analysis | Bytecode Analysis API. | 
| javassist.bytecode.stackmap | |
| javassist.compiler | |
| javassist.convert | |
| javassist.expr | This package contains the classes for modifying a method body. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected MethodInfo | CtBehavior. methodInfo | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodInfo | CtBehavior. getMethodInfo()Returns the  MethodInforepresenting this method/constructor in the
 class file. | 
| MethodInfo | CtBehavior. getMethodInfo2()Returns the  MethodInforepresenting the method/constructor in the
 class file (read only). | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | CodeConverter. doit(CtClass clazz,
    MethodInfo minfo,
    ConstPool cp)Performs code conversion. | 
| static CtMethod | CtMethod. make(MethodInfo minfo,
    CtClass declaring)Creates a method from a  MethodInfoobject. | 
| Constructor and Description | 
|---|
| CtBehavior(CtClass clazz,
          MethodInfo minfo) | 
| CtConstructor(MethodInfo minfo,
             CtClass declaring) | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodInfo | ClassFile. getMethod(String name)Returns the method with the specified name. | 
| MethodInfo | ClassFile. getStaticInitializer()Returns a static initializer (class initializer), or null if it does not
 exist. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ClassFile. addMethod(MethodInfo minfo)Appends a method to the class. | 
| void | ClassFile. addMethod2(MethodInfo minfo)Just appends a method to the class. | 
| Constructor and Description | 
|---|
| BadBytecode(MethodInfo minfo,
           Throwable cause) | 
| MethodInfo(ConstPool cp,
          String methodname,
          MethodInfo src,
          Map classnameMap)Constructs a copy of  method_infostructure. | 
| Modifier and Type | Method and Description | 
|---|---|
| Frame[] | Analyzer. analyze(CtClass clazz,
       MethodInfo method)Performs data-flow analysis on a method and returns an array, indexed by
 instruction position, containing the starting frame state of all reachable
 instructions. | 
| void | Executor. execute(MethodInfo method,
       int pos,
       CodeIterator iter,
       Frame frame,
       Subroutine subroutine)Execute the instruction, modeling the effects on the specified frame and subroutine. | 
| Subroutine[] | SubroutineScanner. scan(MethodInfo method) | 
| Constructor and Description | 
|---|
| ControlFlow(CtClass ctclazz,
           MethodInfo minfo)Constructs a control-flow analyzer. | 
| Modifier and Type | Method and Description | 
|---|---|
| static StackMapTable | MapMaker. make(ClassPool classes,
    MethodInfo minfo)Computes the stack map table of the given method and returns it. | 
| BasicBlock[] | BasicBlock.Maker. make(MethodInfo minfo) | 
| static StackMap | MapMaker. make2(ClassPool classes,
     MethodInfo minfo)Computes the stack map table for J2ME. | 
| static TypedBlock[] | TypedBlock. makeBlocks(MethodInfo minfo,
          CodeAttribute ca,
          boolean optimize)Divides the method body into basic blocks. | 
| Constructor and Description | 
|---|
| MapMaker(ClassPool classes,
        MethodInfo minfo,
        CodeAttribute ca) | 
| Modifier and Type | Field and Description | 
|---|---|
| MethodInfo | MemberResolver.Method. info | 
| protected MethodInfo | MemberCodeGen. thisMethod | 
| protected MethodInfo | TypeChecker. thisMethod | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
| String | AccessorMaker. getMethodAccessor(String name,
                 String desc,
                 String accDesc,
                 MethodInfo orig)Returns the name of the method for accessing a private method. | 
| MemberResolver.Method | MemberResolver. lookupMethod(CtClass clazz,
            CtClass currentClass,
            MethodInfo current,
            String methodName,
            int[] argTypes,
            int[] argDims,
            String[] argClassNames) | 
| void | TypeChecker. setThisMethod(MethodInfo m)Records the currently compiled method. | 
| Constructor and Description | 
|---|
| Method(CtClass c,
      MethodInfo i,
      int n) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Transformer. initialize(ConstPool cp,
          CtClass clazz,
          MethodInfo minfo) | 
| void | TransformAccessArrayField. initialize(ConstPool cp,
          CtClass clazz,
          MethodInfo minfo) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | ExprEditor. doit(CtClass clazz,
    MethodInfo minfo)Undocumented method. | 
| Constructor and Description | 
|---|
| Cast(int pos,
    CodeIterator i,
    CtClass declaring,
    MethodInfo m)Undocumented constructor. | 
| ConstructorCall(int pos,
               CodeIterator i,
               CtClass decl,
               MethodInfo m)Undocumented constructor. | 
| Expr(int pos,
    CodeIterator i,
    CtClass declaring,
    MethodInfo m)Undocumented constructor. | 
| FieldAccess(int pos,
           CodeIterator i,
           CtClass declaring,
           MethodInfo m,
           int op) | 
| Handler(ExceptionTable et,
       int nth,
       CodeIterator it,
       CtClass declaring,
       MethodInfo m)Undocumented constructor. | 
| Instanceof(int pos,
          CodeIterator i,
          CtClass declaring,
          MethodInfo m)Undocumented constructor. | 
| MethodCall(int pos,
          CodeIterator i,
          CtClass declaring,
          MethodInfo m)Undocumented constructor. | 
| NewArray(int pos,
        CodeIterator i,
        CtClass declaring,
        MethodInfo m,
        int op) | 
| NewExpr(int pos,
       CodeIterator i,
       CtClass declaring,
       MethodInfo m,
       String type,
       int np)Undocumented constructor. | 
Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.