Uses of Class
javassist.ClassPool
-
Packages that use ClassPool 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. -
-
Uses of ClassPool in javassist
Fields in javassist declared as ClassPool Modifier and Type Field Description protected ClassPool
ClassPool. parent
Methods in javassist that return ClassPool Modifier and Type Method Description ClassPool
CtClass. getClassPool()
Returns aClassPool
for this class.static ClassPool
ClassPool. getDefault()
Returns the default class pool.Methods in javassist with parameters of type ClassPool Modifier and Type Method Description void
Loader. addTranslator(ClassPool cp, Translator t)
Adds a translator, which is called whenever a class is loaded.void
Translator. onLoad(ClassPool pool, java.lang.String classname)
Is invoked by aLoader
for notifying that a class is loaded.void
Loader. setClassPool(ClassPool cp)
Sets the soruceClassPool
.void
Translator. start(ClassPool pool)
Is invoked by aLoader
for initialization when the object is attached to theLoader
object.Constructors in javassist with parameters of type ClassPool Constructor Description ClassPool(ClassPool parent)
Creates a class pool.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. -
Uses of ClassPool in javassist.bytecode
Methods in javassist.bytecode with parameters of type ClassPool Modifier and Type Method Description static CtClass[]
Descriptor. getParameterTypes(java.lang.String desc, ClassPool cp)
Returns theCtClass
objects representing the parameter types specified by the given descriptor.static CtClass
Descriptor. getReturnType(java.lang.String desc, ClassPool cp)
Returns theCtClass
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.static CtClass
Descriptor. toCtClass(java.lang.String desc, ClassPool cp)
Returns aCtClass
object representing the type specified by the given descriptor. -
Uses of ClassPool in javassist.bytecode.analysis
Constructors in javassist.bytecode.analysis with parameters of type ClassPool Constructor Description Executor(ClassPool classPool, ConstPool constPool)
-
Uses of ClassPool in javassist.bytecode.annotation
Methods in javassist.bytecode.annotation with parameters of type ClassPool Modifier and Type Method Description 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. -
Uses of ClassPool in javassist.bytecode.stackmap
Fields in javassist.bytecode.stackmap declared as ClassPool Modifier and Type Field Description protected ClassPool
Tracer. classPool
Methods in javassist.bytecode.stackmap with parameters of type ClassPool Modifier and Type Method Description static void
TypeData. aastore(TypeData array, TypeData value, ClassPool cp)
int
TypeData.ArrayElement. dfs(java.util.List<TypeData> order, int index, ClassPool cp)
int
TypeData.ArrayType. dfs(java.util.List<TypeData> order, int index, ClassPool cp)
int
TypeData. dfs(java.util.List<TypeData> order, int index, ClassPool cp)
Depth-first search by Tarjan's algorithmint
TypeData.TypeVar. dfs(java.util.List<TypeData> preOrder, 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.void
TypeData.ArrayElement. setType(java.lang.String s, ClassPool cp)
void
TypeData.ArrayType. setType(java.lang.String s, ClassPool cp)
void
TypeData.BasicType. setType(java.lang.String s, ClassPool cp)
void
TypeData.ClassName. setType(java.lang.String typeName, ClassPool cp)
abstract void
TypeData. setType(java.lang.String s, ClassPool cp)
void
TypeData.TypeVar. setType(java.lang.String typeName, ClassPool cp)
void
TypeData.UninitTypeVar. setType(java.lang.String s, ClassPool cp)
Constructors in javassist.bytecode.stackmap with parameters of type ClassPool Constructor Description MapMaker(ClassPool classes, MethodInfo minfo, CodeAttribute ca)
Tracer(ClassPool classes, ConstPool cp, int maxStack, int maxLocals, java.lang.String retType)
-
Uses of ClassPool in javassist.compiler
Methods in javassist.compiler that return ClassPool Modifier and Type Method Description ClassPool
MemberResolver. getClassPool()
Constructors in javassist.compiler with parameters of type ClassPool Constructor 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)
-
Uses of ClassPool in javassist.scopedpool
Subclasses of ClassPool in javassist.scopedpool Modifier and Type Class Description class
ScopedClassPool
A scoped class pool.Fields in javassist.scopedpool declared as ClassPool Modifier and Type Field Description protected ClassPool
ScopedClassPoolRepositoryImpl. classpool
The default class poolMethods in javassist.scopedpool that return ClassPool Modifier and Type Method Description ClassPool
ScopedClassPoolRepository. findClassPool(java.lang.ClassLoader cl)
Finds a scoped classpool registered under the passed in classloader.ClassPool
ScopedClassPoolRepositoryImpl. findClassPool(java.lang.ClassLoader cl)
ClassPool
ScopedClassPoolRepository. registerClassLoader(java.lang.ClassLoader ucl)
Register a classloader.ClassPool
ScopedClassPoolRepositoryImpl. registerClassLoader(java.lang.ClassLoader ucl)
Register a classloader.Methods in javassist.scopedpool with parameters of type ClassPool Modifier and Type Method Description ScopedClassPool
ScopedClassPoolFactory. create(java.lang.ClassLoader cl, ClassPool src, ScopedClassPoolRepository repository)
Makes an instance.ScopedClassPool
ScopedClassPoolFactory. create(ClassPool src, ScopedClassPoolRepository repository)
Makes an instance.ScopedClassPool
ScopedClassPoolFactoryImpl. create(java.lang.ClassLoader cl, ClassPool src, ScopedClassPoolRepository repository)
Makes an instance.ScopedClassPool
ScopedClassPoolFactoryImpl. create(ClassPool src, ScopedClassPoolRepository repository)
Makes an instance.ScopedClassPool
ScopedClassPoolRepository. createScopedClassPool(java.lang.ClassLoader cl, ClassPool src)
Create a scoped classpool.ScopedClassPool
ScopedClassPoolRepositoryImpl. createScopedClassPool(java.lang.ClassLoader cl, ClassPool src)
Create a scoped classpool.Constructors in javassist.scopedpool with parameters of type ClassPool Constructor Description ScopedClassPool(java.lang.ClassLoader cl, ClassPool src, ScopedClassPoolRepository repository)
Create a new ScopedClassPool.ScopedClassPool(java.lang.ClassLoader cl, ClassPool src, ScopedClassPoolRepository repository, boolean isTemp)
Create a new ScopedClassPool. -
Uses of ClassPool in javassist.tools.reflect
Fields in javassist.tools.reflect declared as ClassPool Modifier and Type Field Description protected ClassPool
Reflection. classPool
Methods in javassist.tools.reflect with parameters of type ClassPool Modifier and Type Method 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. -
Uses of ClassPool in javassist.tools.rmi
Methods in javassist.tools.rmi with parameters of type ClassPool Modifier and Type Method Description void
StubGenerator. onLoad(ClassPool pool, java.lang.String classname)
Does nothing.void
StubGenerator. start(ClassPool pool)
Initializes the object.Constructors in javassist.tools.rmi with parameters of type ClassPool Constructor Description AppletServer(int port, ClassPool src)
Constructs a web server. -
Uses of ClassPool in javassist.tools.web
Methods in javassist.tools.web with parameters of type ClassPool Modifier and Type Method 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 specifiedClassPool
object for obtaining a class file.
-