| Package | Description | 
|---|---|
| javassist | The Javassist Core API. | 
| javassist.bytecode | Bytecode-level API. | 
| javassist.bytecode.analysis | Bytecode Analysis API. | 
| javassist.bytecode.annotation | Bytecode-level Annotations API. | 
| javassist.bytecode.stackmap | |
| javassist.compiler | |
| javassist.scopedpool | A custom class pool for several JBoss products. | 
| javassist.tools.reflect | Runtime Behavioral Reflection. | 
| javassist.tools.rmi | Sample implementation of remote method invocation. | 
| javassist.tools.web | Simple web server for running sample code. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ClassPool | ClassPool. parent | 
| Modifier and Type | Method and Description | 
|---|---|
| ClassPool | CtClass. getClassPool()Returns a  ClassPoolfor this class. | 
| static ClassPool | ClassPool. getDefault()Returns the default class pool. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Loader. addTranslator(ClassPool cp,
             Translator t)Adds a translator, which is called whenever a class is loaded. | 
| void | Translator. onLoad(ClassPool pool,
      String classname)Is invoked by a  Loaderfor notifying that
 a class is loaded. | 
| void | Loader. setClassPool(ClassPool cp)Sets the soruce  ClassPool. | 
| void | Translator. start(ClassPool pool)Is invoked by a  Loaderfor initialization
 when the object is attached to theLoaderobject. | 
| Constructor and Description | 
|---|
| ClassPool(ClassPool parent)Creates a class pool. | 
| Loader(ClassLoader parent,
      ClassPool cp)Creates a new class loader
 using the specified parent class loader for delegation. | 
| Loader(ClassPool cp)Creates a new class loader. | 
| Modifier and Type | Method and Description | 
|---|---|
| static CtClass[] | Descriptor. getParameterTypes(String desc,
                 ClassPool cp)Returns the  CtClassobjects representing the parameter
 types specified by the given descriptor. | 
| static CtClass | Descriptor. getReturnType(String desc,
             ClassPool cp)Returns the  CtClassobject representing the return
 type specified by the given descriptor. | 
| void | MethodInfo. rebuildStackMap(ClassPool pool)Rebuilds a stack map table. | 
| void | MethodInfo. rebuildStackMapForME(ClassPool pool)Rebuilds a stack map table for J2ME (CLDC). | 
| void | MethodInfo. rebuildStackMapIf6(ClassPool pool,
                  ClassFile cf)Rebuilds a stack map table if the class file is for Java 6
 or later. | 
| static CtClass | Descriptor. toCtClass(String desc,
         ClassPool cp)Returns a  CtClassobject representing the type
 specified by the given descriptor. | 
| Constructor and Description | 
|---|
| Executor(ClassPool classPool,
        ConstPool constPool) | 
| Modifier and Type | Method and Description | 
|---|---|
| static Object | AnnotationImpl. make(ClassLoader cl,
    Class clazz,
    ClassPool cp,
    Annotation anon)Constructs an annotation object. | 
| Object | Annotation. toAnnotationType(ClassLoader cl,
                ClassPool cp)Constructs an annotation-type object representing this annotation. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ClassPool | Tracer. classPool | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | TypeData. aastore(TypeData array,
       TypeData value,
       ClassPool cp) | 
| int | TypeData. dfs(ArrayList order,
   int index,
   ClassPool cp)Depth-first search by Tarjan's algorithm | 
| int | TypeData.TypeVar. dfs(ArrayList preOrder,
   int index,
   ClassPool cp) | 
| int | TypeData.ArrayType. dfs(ArrayList order,
   int index,
   ClassPool cp) | 
| int | TypeData.ArrayElement. dfs(ArrayList order,
   int index,
   ClassPool cp) | 
| static StackMapTable | MapMaker. make(ClassPool classes,
    MethodInfo minfo)Computes the stack map table of the given method and returns it. | 
| static StackMap | MapMaker. make2(ClassPool classes,
     MethodInfo minfo)Computes the stack map table for J2ME. | 
| abstract void | TypeData. setType(String s,
       ClassPool cp) | 
| void | TypeData.BasicType. setType(String s,
       ClassPool cp) | 
| void | TypeData.TypeVar. setType(String typeName,
       ClassPool cp) | 
| void | TypeData.ArrayType. setType(String s,
       ClassPool cp) | 
| void | TypeData.ArrayElement. setType(String s,
       ClassPool cp) | 
| void | TypeData.UninitTypeVar. setType(String s,
       ClassPool cp) | 
| void | TypeData.ClassName. setType(String typeName,
       ClassPool cp) | 
| Constructor and Description | 
|---|
| MapMaker(ClassPool classes,
        MethodInfo minfo,
        CodeAttribute ca) | 
| Tracer(ClassPool classes,
      ConstPool cp,
      int maxStack,
      int maxLocals,
      String retType) | 
| Modifier and Type | Method and Description | 
|---|---|
| ClassPool | MemberResolver. getClassPool() | 
| Constructor and Description | 
|---|
| JvstCodeGen(Bytecode b,
           CtClass cc,
           ClassPool cp) | 
| JvstTypeChecker(CtClass cc,
               ClassPool cp,
               JvstCodeGen gen) | 
| MemberCodeGen(Bytecode b,
             CtClass cc,
             ClassPool cp) | 
| MemberResolver(ClassPool cp) | 
| TypeChecker(CtClass cc,
           ClassPool cp) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ScopedClassPoolA scoped class pool. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ClassPool | ScopedClassPoolRepositoryImpl. classpoolThe default class pool | 
| Modifier and Type | Method and Description | 
|---|---|
| ClassPool | ScopedClassPoolRepositoryImpl. findClassPool(ClassLoader cl) | 
| ClassPool | ScopedClassPoolRepository. findClassPool(ClassLoader cl)Finds a scoped classpool registered under the passed in classloader. | 
| ClassPool | ScopedClassPoolRepositoryImpl. registerClassLoader(ClassLoader ucl)Register a classloader. | 
| ClassPool | ScopedClassPoolRepository. registerClassLoader(ClassLoader ucl)Register a classloader. | 
| Modifier and Type | Method and Description | 
|---|---|
| ScopedClassPool | ScopedClassPoolFactoryImpl. create(ClassLoader cl,
      ClassPool src,
      ScopedClassPoolRepository repository)Makes an instance. | 
| ScopedClassPool | ScopedClassPoolFactory. create(ClassLoader cl,
      ClassPool src,
      ScopedClassPoolRepository repository)Makes an instance. | 
| ScopedClassPool | ScopedClassPoolFactoryImpl. create(ClassPool src,
      ScopedClassPoolRepository repository)Makes an instance. | 
| ScopedClassPool | ScopedClassPoolFactory. create(ClassPool src,
      ScopedClassPoolRepository repository)Makes an instance. | 
| ScopedClassPool | ScopedClassPoolRepositoryImpl. createScopedClassPool(ClassLoader cl,
                     ClassPool src)Create a scoped classpool. | 
| ScopedClassPool | ScopedClassPoolRepository. createScopedClassPool(ClassLoader cl,
                     ClassPool src)Create a scoped classpool. | 
| Constructor and Description | 
|---|
| ScopedClassPool(ClassLoader cl,
               ClassPool src,
               ScopedClassPoolRepository repository)Deprecated.   | 
| ScopedClassPool(ClassLoader cl,
               ClassPool src,
               ScopedClassPoolRepository repository,
               boolean isTemp)Create a new ScopedClassPool. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ClassPool | Reflection. classPool | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Reflection. onLoad(ClassPool pool,
      String classname)Inserts hooks for intercepting accesses to the fields declared
 in reflective classes. | 
| void | Reflection. start(ClassPool pool)Initializes the object. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | StubGenerator. onLoad(ClassPool pool,
      String classname)Does nothing. | 
| void | StubGenerator. start(ClassPool pool)Initializes the object. | 
| Constructor and Description | 
|---|
| AppletServer(int port,
            ClassPool src)Constructs a web server. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Webserver. addTranslator(ClassPool cp,
             Translator t)Adds a translator, which is called whenever a client requests
 a class file. | 
| void | Webserver. setClassPool(ClassPool loader)Requests the web server to use the specified
  ClassPoolobject for obtaining a class file. | 
Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.