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. -
-
Uses of ClassPool in javassist
Methods in javassist that return ClassPool Modifier and Type Method Description ClassPoolCtClass. getClassPool()Returns aClassPoolfor this class.static ClassPoolClassPool. getDefault()Returns the default class pool.Methods in javassist with parameters of type ClassPool Modifier and Type Method Description voidLoader. addTranslator(ClassPool cp, Translator t)Adds a translator, which is called whenever a class is loaded.voidTranslator. onLoad(ClassPool pool, java.lang.String classname)Is invoked by aLoaderfor notifying that a class is loaded.voidLoader. setClassPool(ClassPool cp)Sets the soruceClassPool.voidTranslator. start(ClassPool pool)Is invoked by aLoaderfor initialization when the object is attached to theLoaderobject.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 theCtClassobjects representing the parameter types specified by the given descriptor.static CtClassDescriptor. getReturnType(java.lang.String desc, ClassPool cp)Returns theCtClassobject representing the return type specified by the given descriptor.voidMethodInfo. rebuildStackMap(ClassPool pool)Rebuilds a stack map table.voidMethodInfo. rebuildStackMapForME(ClassPool pool)Rebuilds a stack map table for J2ME (CLDC).voidMethodInfo. rebuildStackMapIf6(ClassPool pool, ClassFile cf)Rebuilds a stack map table if the class file is for Java 6 or later.static CtClassDescriptor. toCtClass(java.lang.String desc, ClassPool cp)Returns aCtClassobject 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.ObjectAnnotationImpl. make(java.lang.ClassLoader cl, java.lang.Class<?> clazz, ClassPool cp, Annotation anon)Constructs an annotation object.java.lang.ObjectAnnotation. toAnnotationType(java.lang.ClassLoader cl, ClassPool cp)Constructs an annotation-type object representing this annotation.
-