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
Enhancer of 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,
java.io.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 java.lang.Class |
FactoryHelper.toClass(ClassFile cf,
java.lang.ClassLoader loader)
Loads a class file by a given class loader.
|
static java.lang.Class |
FactoryHelper.toClass(ClassFile cf,
java.lang.ClassLoader loader,
java.security.ProtectionDomain domain)
Loads a class file by a given class loader.
|
static void |
FactoryHelper.writeFile(ClassFile cf,
java.lang.String directoryName)
Writes a class file.
|
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.