Uses of Class
javassist.bytecode.ConstPool
Packages that use ConstPool
Package
Description
The Javassist Core API.
Bytecode-level API.
Bytecode Analysis API.
Bytecode-level Annotations API.
This package contains the classes for modifying a method body.
Dynamic proxy (similar to
Enhancer
of cglib).-
Uses of ConstPool in javassist
Modifier and TypeMethodDescriptionprotected void
CodeConverter.doit
(CtClass clazz, MethodInfo minfo, ConstPool cp) Performs code conversion.(package private) int
CtField.CodeInitializer.getConstantValue
(ConstPool cp, CtClass type) (package private) int
CtField.DoubleInitializer.getConstantValue
(ConstPool cp, CtClass type) (package private) int
CtField.FloatInitializer.getConstantValue
(ConstPool cp, CtClass type) (package private) int
CtField.Initializer.getConstantValue
(ConstPool cp, CtClass type) (package private) int
CtField.IntInitializer.getConstantValue
(ConstPool cp, CtClass type) (package private) int
CtField.LongInitializer.getConstantValue
(ConstPool cp, CtClass type) (package private) int
CtField.PtreeInitializer.getConstantValue
(ConstPool cp, CtClass type) (package private) int
CtField.StringInitializer.getConstantValue
(ConstPool cp, CtClass type) (package private) int
CtField.CodeInitializer0.getConstantValue2
(ConstPool cp, CtClass type, ASTree tree) private int
CtBehavior.insertAfterAdvice
(Bytecode code, Javac jv, String src, ConstPool cp, CtClass rtype, int varNo) -
Uses of ConstPool in javassist.bytecode
Fields in javassist.bytecode declared as ConstPoolModifier and TypeFieldDescriptionprotected ConstPool
AttributeInfo.constPool
(package private) ConstPool
Bytecode.constPool
(package private) ConstPool
ClassFile.constPool
private ConstPool
CodeAnalyzer.constPool
private ConstPool
ExceptionTable.constPool
(package private) ConstPool
FieldInfo.constPool
(package private) ConstPool
MethodInfo.constPool
(package private) ConstPool
AnnotationsAttribute.Renamer.cpool
(package private) ConstPool
StackMap.Copier.destCp
(package private) ConstPool
AnnotationsAttribute.Copier.destPool
private ConstPool
StackMapTable.Copier.destPool
(package private) ConstPool
TypeAnnotationsAttribute.SubCopier.destPool
(package private) ConstPool
AnnotationsAttribute.Parser.pool
(package private) ConstPool
StackMap.Copier.srcCp
(package private) ConstPool
AnnotationsAttribute.Copier.srcPool
private ConstPool
StackMapTable.Copier.srcPool
(package private) ConstPool
TypeAnnotationsAttribute.SubCopier.srcPool
Methods in javassist.bytecode that return ConstPoolModifier and TypeMethodDescriptionprivate ConstPool
ClassFile.compact0()
AttributeInfo.getConstPool()
Returns a constant pool table.Bytecode.getConstPool()
Gets a constant pool table.ClassFile.getConstPool()
Returns a constant pool table.FieldInfo.getConstPool()
Returns the constant pool table used by thisfield_info
.MethodInfo.getConstPool()
Returns a constant pool table used by this method.Methods in javassist.bytecode with parameters of type ConstPoolModifier and TypeMethodDescriptionprivate static String
(package private) void
Copies all constant pool items to a given new constant pool and replaces the original items with the new ones.(package private) void
Copies all constant pool items to a given new constant pool and replaces the original items with the new ones.Copies this attribute and returns a new copy.Copies this attribute and returns a new copy.Makes a copy.Makes a copy.int
Makes a copy.Makes a copy.abstract int
int
int
Copies the n-th item in this ConstPool object into the destination ConstPool object.Makes a copy.int
int
Makes a copy.Makes a copy.Makes a copy of thisexception_table[]
.int
Makes a copy.int
int
Makes a copy.Makes a copy.int
int
int
Makes a copy.int
int
int
Makes a copy.Makes a copy.int
Copies this attribute and returns a new copy.Makes a copy.Makes a copy.Makes a copy.Makes a copy.int
Makes a copy.Copies this attribute and returns a new copy.int
protected int
protected int
protected abstract int
protected int
(package private) static List
<AttributeInfo> AttributeInfo.copyAll
(List<AttributeInfo> attributes, ConstPool cp) private static CodeAttribute.LdcEntry
CodeAttribute.copyCode
(byte[] code, int beginPos, int endPos, ConstPool srcCp, byte[] newcode, ConstPool destCp, Map<String, String> classnameMap) private byte[]
CodeAttribute.copyCode
(ConstPool destCp, Map<String, String> classnames, ExceptionTable etable, CodeAttribute destCa) Copies code.private static void
CodeAttribute.copyConstPoolInfo
(int i, byte[] code, ConstPool srcCp, byte[] newcode, ConstPool destCp, Map<String, String> classnameMap) private static String
ClassInfo.getClassName
(ConstPool cp) ConstInfo.getClassName
(ConstPool cp) ModuleInfo.getModuleName
(ConstPool cp) PackageInfo.getPackageName
(ConstPool cp) static String
InstructionPrinter.instructionString
(CodeIterator iter, int pos, ConstPool pool) Gets a string representation of the bytecode instruction at the specified position.private static String
InstructionPrinter.interfaceMethodInfo
(ConstPool pool, int index) private static String
(package private) LocalVariableAttribute
LocalVariableAttribute.makeThisAttr
(ConstPool cp, byte[] dest) (package private) LocalVariableAttribute
LocalVariableTypeAttribute.makeThisAttr
(ConstPool cp, byte[] dest) private static String
InstructionPrinter.methodInfo
(ConstPool pool, int index) (package private) void
(package private) void
(package private) static AttributeInfo
AttributeInfo.read
(ConstPool cp, DataInputStream in) void
void
void
void
void
MethodTypeInfo.renameClass
(ConstPool cp, String oldName, String newName, Map<ConstInfo, ConstInfo> cache) void
void
NameAndTypeInfo.renameClass
(ConstPool cp, String oldName, String newName, Map<ConstInfo, ConstInfo> cache) void
StackMap.Writer.toStackMap
(ConstPool cp) Converts to aStackMap
attribute.StackMapTable.Writer.toStackMapTable
(ConstPool cp) Constructs and a return a stack map table containing the written stack map entries.Constructors in javassist.bytecode with parameters of type ConstPoolModifierConstructorDescriptionConstructs an emptyAnnotationDefault_attribute
.AnnotationDefaultAttribute
(ConstPool cp, byte[] info) Constructs anAnnotationDefault_attribute
.(package private)
AnnotationDefaultAttribute
(ConstPool cp, int n, DataInputStream in) (package private)
AnnotationsAttribute
(ConstPool cp, int n, DataInputStream in) AnnotationsAttribute
(ConstPool cp, String attrname) Constructs an emptyRuntime(In)VisibleAnnotations_attribute
.AnnotationsAttribute
(ConstPool cp, String attrname, byte[] info) Constructs aRuntime(In)VisibleAnnotations_attribute
.protected
AttributeInfo
(ConstPool cp, int attrname, byte[] attrinfo) protected
AttributeInfo
(ConstPool cp, int n, DataInputStream in) protected
AttributeInfo
(ConstPool cp, String attrname) AttributeInfo
(ConstPool cp, String attrname, byte[] attrinfo) Constructs anattribute_info
structure.(package private)
BootstrapMethodsAttribute
(ConstPool cp, int n, DataInputStream in) Constructs a BootstrapMethods attribute.Constructs aBytecode
object with an empty bytecode sequence.Constructs aBytecode
object with an empty bytecode sequence.CodeAttribute
(ConstPool cp, int stack, int locals, byte[] code, ExceptionTable etable) Constructs aCode_attribute
.(package private)
CodeAttribute
(ConstPool cp, int name_id, DataInputStream in) private
CodeAttribute
(ConstPool cp, CodeAttribute src, Map<String, String> classnames) Constructs a copy ofCode_attribute
.ConstantAttribute
(ConstPool cp, int index) Constructs a ConstantValue attribute.(package private)
ConstantAttribute
(ConstPool cp, int n, DataInputStream in) (package private)
Constructs a copier.(package private)
(package private)
(package private)
Constructs a Deprecated attribute.(package private)
DeprecatedAttribute
(ConstPool cp, int n, DataInputStream in) (package private)
EnclosingMethodAttribute
(ConstPool cp, int n, DataInputStream in) EnclosingMethodAttribute
(ConstPool cp, String className) Constructs an EnclosingMethod attribute.EnclosingMethodAttribute
(ConstPool cp, String className, String methodName, String methodDesc) Constructs an EnclosingMethod attribute.Constructs a new exceptions attribute.(package private)
ExceptionsAttribute
(ConstPool cp, int n, DataInputStream in) private
ExceptionsAttribute
(ConstPool cp, ExceptionsAttribute src, Map<String, String> classnames) Constructs a copy of an exceptions attribute.Constructs anexception_table[]
.(package private)
ExceptionTable
(ConstPool cp, DataInputStream in) private
(package private)
FieldInfo
(ConstPool cp, DataInputStream in) Constructs afield_info
structure.Constructs an empty InnerClasses attribute.private
InnerClassesAttribute
(ConstPool cp, byte[] info) (package private)
InnerClassesAttribute
(ConstPool cp, int n, DataInputStream in) private
LineNumberAttribute
(ConstPool cp, byte[] i) (package private)
LineNumberAttribute
(ConstPool cp, int n, DataInputStream in) Constructs an empty LocalVariableTable.(package private)
LocalVariableAttribute
(ConstPool cp, int n, DataInputStream in) LocalVariableAttribute
(ConstPool cp, String name) Deprecated.(package private)
LocalVariableAttribute
(ConstPool cp, String name, byte[] i) Constructs an empty LocalVariableTypeTable.private
LocalVariableTypeAttribute
(ConstPool cp, byte[] dest) (package private)
LocalVariableTypeAttribute
(ConstPool cp, int n, DataInputStream in) private
MethodInfo
(ConstPool cp) (package private)
MethodInfo
(ConstPool cp, DataInputStream in) MethodInfo
(ConstPool cp, String methodname, String desc) Constructs amethod_info
structure.MethodInfo
(ConstPool cp, String methodname, MethodInfo src, Map<String, String> classnameMap) Constructs a copy ofmethod_info
structure.(package private)
MethodParametersAttribute
(ConstPool cp, int n, DataInputStream in) MethodParametersAttribute
(ConstPool cp, String[] names, int[] flags) Constructs an attribute.private
NestHostAttribute
(ConstPool cp, int hostIndex) (package private)
NestHostAttribute
(ConstPool cp, int n, DataInputStream in) private
NestMembersAttribute
(ConstPool cp, byte[] info) (package private)
NestMembersAttribute
(ConstPool cp, int n, DataInputStream in) (package private)
ParameterAnnotationsAttribute
(ConstPool cp, int n, DataInputStream in) ParameterAnnotationsAttribute
(ConstPool cp, String attrname) Constructs an emptyRuntime(In)VisibleParameterAnnotations_attribute
.ParameterAnnotationsAttribute
(ConstPool cp, String attrname, byte[] info) Constructs aRuntime(In)VisibleParameterAnnotations_attribute
.(package private)
Constructs a parser.(package private)
Constructs a renamer.(package private)
(package private)
SignatureAttribute
(ConstPool cp, int n, DataInputStream in) SignatureAttribute
(ConstPool cp, String signature) Constructs aSignature
attribute.(package private)
SourceFileAttribute
(ConstPool cp, int n, DataInputStream in) SourceFileAttribute
(ConstPool cp, String filename) Constructs a SourceFile attribute.(package private)
Constructs astack_map
attribute.(package private)
StackMap
(ConstPool cp, int name_id, DataInputStream in) (package private)
StackMapTable
(ConstPool cp, byte[] newInfo) Constructs astack_map
attribute.(package private)
StackMapTable
(ConstPool cp, int name_id, DataInputStream in) (package private)
SubCopier
(byte[] attrInfo, ConstPool src, ConstPool dest, Map<String, String> map, TypeAnnotationsWriter w) Constructs a Synthetic attribute.(package private)
SyntheticAttribute
(ConstPool cp, int n, DataInputStream in) (package private)
TypeAnnotationsAttribute
(ConstPool cp, int n, DataInputStream in) TypeAnnotationsAttribute
(ConstPool cp, String attrname, byte[] info) Constructs aRuntime(In)VisibleTypeAnnotations_attribute
. -
Uses of ConstPool in javassist.bytecode.analysis
Fields in javassist.bytecode.analysis declared as ConstPoolConstructors in javassist.bytecode.analysis with parameters of type ConstPool -
Uses of ConstPool in javassist.bytecode.annotation
Fields in javassist.bytecode.annotation declared as ConstPoolModifier and TypeFieldDescription(package private) ConstPool
MemberValue.cp
(package private) ConstPool
Annotation.pool
private ConstPool
AnnotationsWriter.pool
Methods in javassist.bytecode.annotation that return ConstPoolModifier and TypeMethodDescriptionAnnotationsWriter.getConstPool()
Obtains the constant pool given to the constructor.Methods in javassist.bytecode.annotation with parameters of type ConstPoolModifier and TypeMethodDescriptionstatic MemberValue
Annotation.createMemberValue
(ConstPool cp, CtClass type) Makes an instance ofMemberValue
.Constructors in javassist.bytecode.annotation with parameters of type ConstPoolModifierConstructorDescriptionAnnotation
(int type, ConstPool cp) Constructs an annotation including no members.Annotation
(String typeName, ConstPool cp) Constructs an annotation including no members.Annotation
(ConstPool cp, CtClass clazz) Constructs an annotation that can be accessed through the interface represented byclazz
.Constructs an annotation member.Constructs an annotation member.AnnotationsWriter
(OutputStream os, ConstPool cp) Constructs with the given output stream.ArrayMemberValue
(MemberValue t, ConstPool cp) Constructs an array.Constructs an array.BooleanMemberValue
(boolean b, ConstPool cp) Constructs a boolean constant value.BooleanMemberValue
(int index, ConstPool cp) Constructs a boolean constant value.Constructs a boolean constant value.ByteMemberValue
(byte b, ConstPool cp) Constructs a byte constant value.ByteMemberValue
(int index, ConstPool cp) Constructs a byte constant value.Constructs a byte constant value.CharMemberValue
(char c, ConstPool cp) Constructs a char constant value.CharMemberValue
(int index, ConstPool cp) Constructs a char constant value.Constructs a char constant value.ClassMemberValue
(int index, ConstPool cp) Constructs a class value.ClassMemberValue
(String className, ConstPool cp) Constructs a class value.Constructs a class value.DoubleMemberValue
(double d, ConstPool cp) Constructs a double constant value.DoubleMemberValue
(int index, ConstPool cp) Constructs a double constant value.Constructs a double constant value.EnumMemberValue
(int type, int value, ConstPool cp) Constructs an enum constant value.Constructs an enum constant value.FloatMemberValue
(float f, ConstPool cp) Constructs a float constant value.FloatMemberValue
(int index, ConstPool cp) Constructs a float constant value.Constructs a float constant value.IntegerMemberValue
(int index, ConstPool cp) Constructs an int constant value.Constructs an int constant value.IntegerMemberValue
(ConstPool cp, int value) Constructs an int constant value.LongMemberValue
(int index, ConstPool cp) Constructs a long constant value.LongMemberValue
(long j, ConstPool cp) Constructs a long constant value.Constructs a long constant value.(package private)
MemberValue
(char tag, ConstPool cp) ShortMemberValue
(int index, ConstPool cp) Constructs a short constant value.ShortMemberValue
(short s, ConstPool cp) Constructs a short constant value.Constructs a short constant value.StringMemberValue
(int index, ConstPool cp) Constructs a string constant value.StringMemberValue
(String str, ConstPool cp) Constructs a string constant value.Constructs a string constant value.Constructs with the given output stream. -
Uses of ConstPool in javassist.bytecode.stackmap
Fields in javassist.bytecode.stackmap declared as ConstPoolMethods in javassist.bytecode.stackmap with parameters of type ConstPoolModifier and TypeMethodDescriptionint
TypeData.AbsTypeVar.getTypeData
(ConstPool cp) int
TypeData.BasicType.getTypeData
(ConstPool cp) int
TypeData.ClassName.getTypeData
(ConstPool cp) abstract int
TypeData.getTypeData
(ConstPool cp) int
TypeData.NullType.getTypeData
(ConstPool cp) int
TypeData.TypeVar.getTypeData
(ConstPool cp) int
TypeData.UninitData.getTypeData
(ConstPool cp) int
TypeData.UninitThis.getTypeData
(ConstPool cp) int
TypeData.UninitTypeVar.getTypeData
(ConstPool cp) MapMaker.toStackMap2
(ConstPool cp, TypedBlock[] blocks) private void
MapMaker.writeStackFrame
(StackMap.Writer writer, ConstPool cp, int offset, TypedBlock tb) private void
MapMaker.writeVerifyTypeInfo
(StackMap.Writer writer, ConstPool cp, TypeData[] types, int num) Constructors in javassist.bytecode.stackmap with parameters of type ConstPool -
Uses of ConstPool in javassist.convert
Fields in javassist.convert declared as ConstPoolModifier and TypeFieldDescriptionprotected ConstPool
TransformCall.constPool
private ConstPool
TransformFieldAccess.constPool
Methods in javassist.convert with parameters of type ConstPoolModifier and TypeMethodDescriptionprivate int
TransformNew.computeMethodref
(int typedesc, ConstPool cp) void
TransformAccessArrayField.initialize
(ConstPool cp, CtClass clazz, MethodInfo minfo) void
TransformBefore.initialize
(ConstPool cp, CodeAttribute attr) void
TransformCall.initialize
(ConstPool cp, CodeAttribute attr) void
Transformer.initialize
(ConstPool cp, CodeAttribute attr) void
Transformer.initialize
(ConstPool cp, CtClass clazz, MethodInfo minfo) void
TransformFieldAccess.initialize
(ConstPool cp, CodeAttribute attr) void
TransformNew.initialize
(ConstPool cp, CodeAttribute attr) void
TransformNewClass.initialize
(ConstPool cp, CodeAttribute attr) (package private) static String
TransformReadField.isField
(ClassPool pool, ConstPool cp, CtClass fclass, String fname, boolean is_private, int index) protected void
protected int
TransformBefore.match
(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp) protected int
TransformCall.match
(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp) protected int
TransformCallToStatic.match
(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp) private int
TransformAccessArrayField.replace
(ConstPool cp, CodeIterator iterator, int pos, int opcode, String signature) int
TransformAccessArrayField.transform
(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) int
TransformCall.transform
(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Modify INVOKEINTERFACE, INVOKESPECIAL, INVOKESTATIC and INVOKEVIRTUAL so that a different method is invoked.abstract int
Transformer.transform
(CtClass clazz, int pos, CodeIterator it, ConstPool cp) int
TransformFieldAccess.transform
(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Modify GETFIELD, GETSTATIC, PUTFIELD, and PUTSTATIC so that a different field is accessed.int
TransformNew.transform
(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Replace a sequence of NEW classname DUP ...int
TransformNewClass.transform
(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) Modifies a sequence of NEW classname DUP ...int
TransformReadField.transform
(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) int
TransformWriteField.transform
(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) -
Uses of ConstPool in javassist.expr
Methods in javassist.expr that return ConstPoolMethods in javassist.expr with parameters of type ConstPool -
Uses of ConstPool in javassist.util.proxy
Methods in javassist.util.proxy with parameters of type ConstPoolModifier and TypeMethodDescriptionprivate static void
ProxyFactory.addClassInitializer
(ClassFile cf, ConstPool cp, String classname, int size, List<ProxyFactory.Find2MethodsArgs> forwarders) private static void
private static void
private static MethodInfo
ProxyFactory.makeConstructor
(String thisClassName, Constructor<?> cons, ConstPool cp, Class<?> superClass, boolean doHandlerInit) private void
ProxyFactory.makeConstructors
(String thisClassName, ClassFile cf, ConstPool cp, String classname) private MethodInfo
ProxyFactory.makeDelegator
(Method meth, String desc, ConstPool cp, Class<?> declClass, String delegatorName) private static MethodInfo
ProxyFactory.makeForwarder
(String thisClassName, Method meth, String desc, ConstPool cp, Class<?> declClass, String delegatorName, int index, List<ProxyFactory.Find2MethodsArgs> forwarders) private static MethodInfo
ProxyFactory.makeWriteReplace
(ConstPool cp) private void
ProxyFactory.override
(String thisClassname, Method meth, String prefix, int index, String desc, ClassFile cf, ConstPool cp, List<ProxyFactory.Find2MethodsArgs> forwarders) private int
ProxyFactory.overrideMethods
(ClassFile cf, ConstPool cp, String className, List<ProxyFactory.Find2MethodsArgs> forwarders) private static void
ProxyFactory.setThrows
(MethodInfo minfo, ConstPool cp, Class<?>[] exceptions) private static void
ProxyFactory.setThrows
(MethodInfo minfo, ConstPool cp, Method orig)