| Package | Description | 
|---|---|
| javassist | The Javassist Core API. | 
| javassist.bytecode | Bytecode-level API. | 
| javassist.tools.reflect | Runtime Behavioral Reflection. | 
| javassist.util.proxy | Dynamic proxy (similar to  Enhancerof cglib). | 
| Modifier and Type | Method and Description | 
|---|---|
| ClassFile | CtClass. getClassFile()Returns a class file for this class. | 
| ClassFile | CtClass. getClassFile2()Returns a class file for this class (read only). | 
| Modifier and Type | Method and Description | 
|---|---|
| CtClass | ClassPool. makeClass(ClassFile classfile)Creates a new class (or interface) from the given class file. | 
| CtClass | ClassPool. makeClass(ClassFile classfile,
         boolean ifNotFrozen)Creates a new class (or interface) from the given class file. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | ClassFilePrinter. print(ClassFile cf)Prints the contents of a class file to the standard output stream. | 
| static void | ClassFilePrinter. print(ClassFile cf,
     PrintWriter out)Prints the contents of a class file. | 
| void | MethodInfo. rebuildStackMapIf6(ClassPool pool,
                  ClassFile cf)Rebuilds a stack map table if the class file is for Java 6
 or later. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Reflection. rebuildClassFile(ClassFile cf) | 
| Modifier and Type | Method and Description | 
|---|---|
| static Class | FactoryHelper. toClass(ClassFile cf,
       ClassLoader loader)Loads a class file by a given class loader. | 
| static Class | FactoryHelper. toClass(ClassFile cf,
       ClassLoader loader,
       ProtectionDomain domain)Loads a class file by a given class loader. | 
| static void | FactoryHelper. writeFile(ClassFile cf,
         String directoryName)Writes a class file. | 
Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.