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.convert | |
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 |
---|---|
(package private) ClassPool |
CtClassType.classPool |
private static ClassPool |
ClassPool.defaultPool |
protected ClassPool |
ClassPool.parent |
protected ClassPool |
CtArray.pool |
private ClassPool |
Loader.source |
Modifier and Type | Method and Description |
---|---|
ClassPool |
CtArray.getClassPool() |
ClassPool |
CtClassType.getClassPool() |
ClassPool |
CtClass.getClassPool()
Returns a
ClassPool for 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.
|
(package private) static java.lang.Object |
CtClassType.getAnnotationType(java.lang.Class clz,
ClassPool cp,
AnnotationsAttribute a1,
AnnotationsAttribute a2) |
(package private) static boolean |
CtClassType.hasAnnotationType(java.lang.Class clz,
ClassPool cp,
AnnotationsAttribute a1,
AnnotationsAttribute a2) |
private void |
Loader.init(ClassPool cp) |
void |
Translator.onLoad(ClassPool pool,
java.lang.String classname)
Is invoked by a
Loader for notifying that
a class is loaded. |
(package private) void |
CtClassType.setClassPool(ClassPool cp) |
void |
Loader.setClassPool(ClassPool cp)
Sets the soruce
ClassPool . |
void |
Translator.start(ClassPool pool)
Is invoked by a
Loader for initialization
when the object is attached to the Loader object. |
(package private) static java.lang.Object[] |
CtClassType.toAnnotationType(boolean ignoreNotFound,
ClassPool cp,
AnnotationsAttribute a1,
AnnotationsAttribute a2) |
(package private) static java.lang.Object[][] |
CtClassType.toAnnotationType(boolean ignoreNotFound,
ClassPool cp,
ParameterAnnotationsAttribute a1,
ParameterAnnotationsAttribute a2,
MethodInfo minfo) |
private static java.lang.Object |
CtClassType.toAnnoType(Annotation anno,
ClassPool cp) |
Constructor and Description |
---|
ClassPool(ClassPool parent)
Creates a class pool.
|
CtArray(java.lang.String name,
ClassPool cp) |
CtClassType(java.io.InputStream ins,
ClassPool cp) |
CtClassType(java.lang.String name,
ClassPool cp) |
CtNewClass(java.lang.String name,
ClassPool cp,
boolean isInterface,
CtClass superclass) |
CtNewNestedClass(java.lang.String realName,
ClassPool cp,
boolean isInterface,
CtClass superclass) |
Loader(java.lang.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(java.lang.String desc,
ClassPool cp)
Returns the
CtClass objects representing the parameter
types specified by the given descriptor. |
static CtClass |
Descriptor.getReturnType(java.lang.String desc,
ClassPool cp)
Returns the
CtClass object 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.
|
private static int |
Descriptor.toCtClass(ClassPool cp,
java.lang.String desc,
int i,
CtClass[] args,
int n) |
static CtClass |
Descriptor.toCtClass(java.lang.String desc,
ClassPool cp)
Returns a
CtClass object representing the type
specified by the given descriptor. |
Modifier and Type | Field and Description |
---|---|
private ClassPool |
Executor.classPool |
Modifier and Type | Method and Description |
---|---|
private ClassPool |
Type.getClassPool(Type rootComponent) |
Constructor and Description |
---|
Executor(ClassPool classPool,
ConstPool constPool) |
Modifier and Type | Field and Description |
---|---|
private ClassPool |
AnnotationImpl.pool |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
ByteMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
IntegerMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
ShortMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
EnumMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
ClassMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
CharMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
BooleanMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
StringMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
FloatMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
LongMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) java.lang.Object |
AnnotationMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
(package private) abstract java.lang.Object |
MemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m)
Returns the value.
|
(package private) java.lang.Object |
ArrayMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method method) |
(package private) java.lang.Object |
DoubleMemberValue.getValue(java.lang.ClassLoader cl,
ClassPool cp,
java.lang.reflect.Method m) |
static java.lang.Object |
AnnotationImpl.make(java.lang.ClassLoader cl,
java.lang.Class clazz,
ClassPool cp,
Annotation anon)
Constructs an annotation object.
|
java.lang.Object |
Annotation.toAnnotationType(java.lang.ClassLoader cl,
ClassPool cp)
Constructs an annotation-type object representing this annotation.
|
Constructor and Description |
---|
AnnotationImpl(Annotation a,
ClassPool cp,
java.lang.ClassLoader loader) |
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(java.util.ArrayList order,
int index,
ClassPool cp) |
int |
TypeData.TypeVar.dfs(java.util.ArrayList preOrder,
int index,
ClassPool cp) |
int |
TypeData.ArrayType.dfs(java.util.ArrayList order,
int index,
ClassPool cp) |
int |
TypeData.ArrayElement.dfs(java.util.ArrayList order,
int index,
ClassPool cp) |
private CtClass |
TypeData.TypeVar.fixByUppers(java.util.ArrayList users,
ClassPool cp,
java.util.HashSet visited,
CtClass type) |
private void |
TypeData.TypeVar.fixTypes(java.util.ArrayList scc,
ClassPool cp) |
private java.lang.String |
TypeData.TypeVar.fixTypes2(java.util.ArrayList scc,
java.util.HashSet lowersSet,
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(java.lang.String s,
ClassPool cp) |
void |
TypeData.BasicType.setType(java.lang.String s,
ClassPool cp) |
void |
TypeData.TypeVar.setType(java.lang.String typeName,
ClassPool cp) |
void |
TypeData.ArrayType.setType(java.lang.String s,
ClassPool cp) |
void |
TypeData.ArrayElement.setType(java.lang.String s,
ClassPool cp) |
void |
TypeData.UninitTypeVar.setType(java.lang.String s,
ClassPool cp) |
void |
TypeData.ClassName.setType(java.lang.String typeName,
ClassPool cp) |
private static void |
TypeData.setType(TypeData td,
java.lang.String className,
ClassPool cp)
Sets the type name of this object type.
|
Constructor and Description |
---|
MapMaker(ClassPool classes,
MethodInfo minfo,
CodeAttribute ca) |
Tracer(ClassPool classes,
ConstPool cp,
int maxStack,
int maxLocals,
java.lang.String retType) |
Modifier and Type | Field and Description |
---|---|
private ClassPool |
MemberResolver.classPool |
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 | Method and Description |
---|---|
(package private) static java.lang.String |
TransformReadField.isField(ClassPool pool,
ConstPool cp,
CtClass fclass,
java.lang.String fname,
boolean is_private,
int index) |
private boolean |
TransformCall.matchClass(java.lang.String name,
ClassPool pool) |
Modifier and Type | Class and Description |
---|---|
class |
ScopedClassPool
A scoped class pool.
|
Modifier and Type | Field and Description |
---|---|
protected ClassPool |
ScopedClassPoolRepositoryImpl.classpool
The default class pool
|
Modifier and Type | Method and Description |
---|---|
ClassPool |
ScopedClassPoolRepositoryImpl.findClassPool(java.lang.ClassLoader cl) |
ClassPool |
ScopedClassPoolRepository.findClassPool(java.lang.ClassLoader cl)
Finds a scoped classpool registered under the passed in classloader.
|
ClassPool |
ScopedClassPoolRepositoryImpl.registerClassLoader(java.lang.ClassLoader ucl)
Register a classloader.
|
ClassPool |
ScopedClassPoolRepository.registerClassLoader(java.lang.ClassLoader ucl)
Register a classloader.
|
Modifier and Type | Method and Description |
---|---|
ScopedClassPool |
ScopedClassPoolFactoryImpl.create(java.lang.ClassLoader cl,
ClassPool src,
ScopedClassPoolRepository repository)
Makes an instance.
|
ScopedClassPool |
ScopedClassPoolFactory.create(java.lang.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(java.lang.ClassLoader cl,
ClassPool src)
Create a scoped classpool.
|
ScopedClassPool |
ScopedClassPoolRepository.createScopedClassPool(java.lang.ClassLoader cl,
ClassPool src)
Create a scoped classpool.
|
Constructor and Description |
---|
ScopedClassPool(java.lang.ClassLoader cl,
ClassPool src,
ScopedClassPoolRepository repository)
Deprecated.
|
ScopedClassPool(java.lang.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,
java.lang.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 | Field and Description |
---|---|
private ClassPool |
StubGenerator.classPool |
Modifier and Type | Method and Description |
---|---|
void |
StubGenerator.onLoad(ClassPool pool,
java.lang.String classname)
Does nothing.
|
void |
StubGenerator.start(ClassPool pool)
Initializes the object.
|
Constructor and Description |
---|
AppletServer(ClassPool loader,
StubGenerator gen,
int port) |
AppletServer(int port,
ClassPool src)
Constructs a web server.
|
Modifier and Type | Field and Description |
---|---|
private ClassPool |
Webserver.classPool |
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
ClassPool object for obtaining a class file. |