Uses of Class
javassist.ClassPool
Package
Description
The Javassist Core API.
Bytecode-level API.
Bytecode Analysis API.
Bytecode-level Annotations API.
Runtime Behavioral Reflection.
Sample implementation of remote method invocation.
Simple web server for running sample code.
-
Uses of ClassPool in javassist
Modifier and TypeMethodDescriptionCtClass.getClassPool()
Returns aClassPool
for this class.static ClassPool
ClassPool.getDefault()
Returns the default class pool.Modifier and TypeMethodDescriptionvoid
Loader.addTranslator
(ClassPool cp, Translator t) Adds a translator, which is called whenever a class is loaded.void
Is invoked by aLoader
for notifying that a class is loaded.void
Loader.setClassPool
(ClassPool cp) Sets the soruceClassPool
.void
Is invoked by aLoader
for initialization when the object is attached to theLoader
object. -
Uses of ClassPool in javassist.bytecode
Modifier and TypeMethodDescriptionstatic CtClass[]
Descriptor.getParameterTypes
(String desc, ClassPool cp) Returns theCtClass
objects representing the parameter types specified by the given descriptor.static CtClass
Descriptor.getReturnType
(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
Returns aCtClass
object representing the type specified by the given descriptor. -
Uses of ClassPool in javassist.bytecode.analysis
-
Uses of ClassPool in javassist.bytecode.annotation
Modifier and TypeMethodDescriptionstatic Object
AnnotationImpl.make
(ClassLoader cl, Class<?> clazz, ClassPool cp, Annotation anon) Constructs an annotation object.Annotation.toAnnotationType
(ClassLoader cl, ClassPool cp) Constructs an annotation-type object representing this annotation. -
Uses of ClassPool in javassist.tools.reflect
-
Uses of ClassPool in javassist.tools.rmi
Modifier and TypeMethodDescriptionvoid
Does nothing.void
Initializes the object. -
Uses of ClassPool in javassist.tools.web
Modifier and TypeMethodDescriptionvoid
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.