# Uses of Class
javassist.bytecode.ConstPool

Packages that use ConstPool
Package
Description
javassist.bytecode
Bytecode-level API.
javassist.bytecode.analysis
Bytecode Analysis API.
javassist.bytecode.annotation
Bytecode-level Annotations API.

## Uses of ConstPool in javassist.bytecode

Methods in javassist.bytecode that return ConstPool
Modifier and Type
Method
Description
`ConstPool`
AttributeInfo.`getConstPool()`
Returns a constant pool table.
`ConstPool`
Bytecode.`getConstPool()`
Gets a constant pool table.
`ConstPool`
ClassFile.`getConstPool()`
Returns a constant pool table.
`ConstPool`
FieldInfo.`getConstPool()`
Returns the constant pool table used by this `field_info`.
`ConstPool`
MethodInfo.`getConstPool()`
Returns a constant pool table used by this method.
Methods in javassist.bytecode with parameters of type ConstPool
Modifier and Type
Method
Description
`AttributeInfo`
AnnotationDefaultAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Copies this attribute and returns a new copy.
`AttributeInfo`
AnnotationsAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Copies this attribute and returns a new copy.
`AttributeInfo`
AttributeInfo.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
BootstrapMethodsAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
CodeAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
ConstantAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`int`
ConstPool.`copy(int n, ConstPool dest, Map<String,String> classnames)`
Copies the n-th item in this ConstPool object into the destination ConstPool object.
`AttributeInfo`
DeprecatedAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
EnclosingMethodAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
ExceptionsAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`ExceptionTable`
ExceptionTable.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy of this `exception_table[]`.
`AttributeInfo`
InnerClassesAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
LineNumberAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
LocalVariableAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
MethodParametersAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
NestHostAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
NestMembersAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
ParameterAnnotationsAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Copies this attribute and returns a new copy.
`AttributeInfo`
SignatureAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
SourceFileAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
StackMap.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
StackMapTable.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
SyntheticAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Makes a copy.
`AttributeInfo`
TypeAnnotationsAttribute.`copy(ConstPool newCp, Map<String,String> classnames)`
Copies this attribute and returns a new copy.
`static String`
InstructionPrinter.`instructionString(CodeIterator iter, int pos, ConstPool pool)`
Gets a string representation of the bytecode instruction at the specified position.
`StackMap`
StackMap.Writer.`toStackMap(ConstPool cp)`
Converts to a `StackMap` attribute.
`StackMapTable`
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 ConstPool
Modifier
Constructor
Description
``
`AnnotationDefaultAttribute(ConstPool cp)`
Constructs an empty `AnnotationDefault_attribute`.
``
`AnnotationDefaultAttribute(ConstPool cp, byte[] info)`
Constructs an `AnnotationDefault_attribute`.
``
`AnnotationsAttribute(ConstPool cp, String attrname)`
Constructs an empty `Runtime(In)VisibleAnnotations_attribute`.
``
`AnnotationsAttribute(ConstPool cp, String attrname, byte[] info)`
Constructs a `Runtime(In)VisibleAnnotations_attribute`.
``
`AttributeInfo(ConstPool cp, String attrname, byte[] attrinfo)`
Constructs an `attribute_info` structure.
``
`BootstrapMethodsAttribute(ConstPool cp, BootstrapMethodsAttribute.BootstrapMethod[] methods)`
Constructs a BootstrapMethods attribute.
``
`Bytecode(ConstPool cp)`
Constructs a `Bytecode` object with an empty bytecode sequence.
``
`Bytecode(ConstPool cp, int stacksize, int localvars)`
Constructs a `Bytecode` object with an empty bytecode sequence.
``
`CodeAttribute(ConstPool cp, int stack, int locals, byte[] code, ExceptionTable etable)`
Constructs a `Code_attribute`.
``
`ConstantAttribute(ConstPool cp, int index)`
Constructs a ConstantValue attribute.
``
`DeprecatedAttribute(ConstPool cp)`
Constructs a Deprecated attribute.
``
`EnclosingMethodAttribute(ConstPool cp, String className)`
Constructs an EnclosingMethod attribute.
``
`EnclosingMethodAttribute(ConstPool cp, String className, String methodName, String methodDesc)`
Constructs an EnclosingMethod attribute.
``
`ExceptionsAttribute(ConstPool cp)`
Constructs a new exceptions attribute.
``
`ExceptionTable(ConstPool cp)`
Constructs an `exception_table[]`.
``
`FieldInfo(ConstPool cp, String fieldName, String desc)`
Constructs a `field_info` structure.
``
`InnerClassesAttribute(ConstPool cp)`
Constructs an empty InnerClasses attribute.
``
`LocalVariableAttribute(ConstPool cp)`
Constructs an empty LocalVariableTable.
``
`LocalVariableAttribute(ConstPool cp, String name)`
Deprecated.
``
`LocalVariableTypeAttribute(ConstPool cp)`
Constructs an empty LocalVariableTypeTable.
``
`MethodInfo(ConstPool cp, String methodname, String desc)`
Constructs a `method_info` structure.
``
`MethodInfo(ConstPool cp, String methodname, MethodInfo src, Map<String,String> classnameMap)`
Constructs a copy of `method_info` structure.
``
`MethodParametersAttribute(ConstPool cp, String[] names, int[] flags)`
Constructs an attribute.
``
`ParameterAnnotationsAttribute(ConstPool cp, String attrname)`
Constructs an empty `Runtime(In)VisibleParameterAnnotations_attribute`.
``
`ParameterAnnotationsAttribute(ConstPool cp, String attrname, byte[] info)`
Constructs a `Runtime(In)VisibleParameterAnnotations_attribute`.
``
`SignatureAttribute(ConstPool cp, String signature)`
Constructs a `Signature` attribute.
``
`SourceFileAttribute(ConstPool cp, String filename)`
Constructs a SourceFile attribute.
``
`SyntheticAttribute(ConstPool cp)`
Constructs a Synthetic attribute.
``
`TypeAnnotationsAttribute(ConstPool cp, String attrname, byte[] info)`
Constructs a `Runtime(In)VisibleTypeAnnotations_attribute`.

## Uses of ConstPool in javassist.bytecode.analysis

Constructors in javassist.bytecode.analysis with parameters of type ConstPool
Modifier
Constructor
Description
``
`Executor(ClassPool classPool, ConstPool constPool)`

## Uses of ConstPool in javassist.bytecode.annotation

Methods in javassist.bytecode.annotation that return ConstPool
Modifier and Type
Method
Description
`ConstPool`
AnnotationsWriter.`getConstPool()`
Obtains the constant pool given to the constructor.
Methods in javassist.bytecode.annotation with parameters of type ConstPool
Modifier and Type
Method
Description
`static MemberValue`
Annotation.`createMemberValue(ConstPool cp, CtClass type)`
Makes an instance of `MemberValue`.
Constructors in javassist.bytecode.annotation with parameters of type ConstPool
Modifier
Constructor
Description
``
`Annotation(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 by `clazz`.
``
`AnnotationMemberValue(Annotation a, ConstPool cp)`
Constructs an annotation member.
``
`AnnotationMemberValue(ConstPool cp)`
Constructs an annotation member.
``
`AnnotationsWriter(OutputStream os, ConstPool cp)`
Constructs with the given output stream.
``
`ArrayMemberValue(MemberValue t, ConstPool cp)`
Constructs an array.
``
`ArrayMemberValue(ConstPool cp)`
Constructs an array.
``
`BooleanMemberValue(boolean b, ConstPool cp)`
Constructs a boolean constant value.
``
`BooleanMemberValue(int index, ConstPool cp)`
Constructs a boolean constant value.
``
`BooleanMemberValue(ConstPool cp)`
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.
``
`ByteMemberValue(ConstPool cp)`
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.
``
`CharMemberValue(ConstPool cp)`
Constructs a char constant value.
``
`ClassMemberValue(int index, ConstPool cp)`
Constructs a class value.
``
`ClassMemberValue(String className, ConstPool cp)`
Constructs a class value.
``
`ClassMemberValue(ConstPool cp)`
Constructs a class value.
``
`DoubleMemberValue(double d, ConstPool cp)`
Constructs a double constant value.
``
`DoubleMemberValue(int index, ConstPool cp)`
Constructs a double constant value.
``
`DoubleMemberValue(ConstPool cp)`
Constructs a double constant value.
``
`EnumMemberValue(int type, int value, ConstPool cp)`
Constructs an enum constant value.
``
`EnumMemberValue(ConstPool cp)`
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.
``
`FloatMemberValue(ConstPool cp)`
Constructs a float constant value.
``
`IntegerMemberValue(int index, ConstPool cp)`
Constructs an int constant value.
``
`IntegerMemberValue(ConstPool cp)`
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.
``
`LongMemberValue(ConstPool cp)`
Constructs a long constant value.
``
`ShortMemberValue(int index, ConstPool cp)`
Constructs a short constant value.
``
`ShortMemberValue(short s, ConstPool cp)`
Constructs a short constant value.
``
`ShortMemberValue(ConstPool cp)`
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.
``
`StringMemberValue(ConstPool cp)`
Constructs a string constant value.
``
`TypeAnnotationsWriter(OutputStream os, ConstPool cp)`
Constructs with the given output stream.