## Uses of Class
org.apache.bcel.classfile.ConstantPool

- Packages that use ConstantPool
  Package | Description
  --- | ---
  org.apache.bcel.classfile | This package contains the classes that describe the structure of a Java class file and a class file parser.
  org.apache.bcel.generic | This package contains the "generic" part of the Byte Code Engineering Library, i.e., classes to dynamically modify class objects and byte code instructions.
  org.apache.bcel.verifier.statics | Provides PassVerifier classes used internally by JustIce.

- - ### Uses of ConstantPool in org.apache.bcel.classfile

    Fields in org.apache.bcel.classfile declared as ConstantPool
    Modifier and Type | Field and Description
    --- | ---
    `protected ConstantPool` | Attribute.`constant_pool` Deprecated. (since 6.0) will be made private; do not access directly, use getter/setter
    `protected ConstantPool` | FieldOrMethod.`constant_pool` Deprecated. (since 6.0) will be made private; do not access directly, use getter/setter
    `protected ConstantPool` | ElementValue.`cpool` Deprecated. (since 6.0) will be made private and final; do not access directly, use getter

    Methods in org.apache.bcel.classfile that return ConstantPool
    Modifier and Type | Method and Description
    --- | ---
    `ConstantPool` | ConstantPool.`copy()`
    `ConstantPool` | AnnotationEntry.`getConstantPool()`
    `ConstantPool` | Attribute.`getConstantPool()`
    `ConstantPool` | FieldOrMethod.`getConstantPool()`
    `ConstantPool` | JavaClass.`getConstantPool()`
    `ConstantPool` | LocalVariable.`getConstantPool()`
    `ConstantPool` | StackMapEntry.`getConstantPool()`
    `ConstantPool` | StackMapType.`getConstantPool()`

    Methods in org.apache.bcel.classfile with parameters of type ConstantPool
    Modifier and Type | Method and Description
    --- | ---
    `static String` | Utility.`codeToString(byte[] code, ConstantPool constant_pool, int index, int length)`
    `static String` | Utility.`codeToString(byte[] code, ConstantPool constant_pool, int index, int length, boolean verbose)` Disassemble a byte array of JVM byte codes starting from code line `index' and return the disassembled string representation.
    `static String` | Utility.`codeToString(ByteSequence bytes, ConstantPool constant_pool)`
    `static String` | Utility.`codeToString(ByteSequence bytes, ConstantPool constant_pool, boolean verbose)` Disassemble a stream of byte codes and return the string representation.
    `protected FieldOrMethod` | FieldOrMethod.`copy_(ConstantPool _constant_pool)`
    `Attribute` | AnnotationDefault.`copy(ConstantPool _constant_pool)`
    `abstract Attribute` | Attribute.`copy(ConstantPool _constant_pool)`
    `BootstrapMethods` | BootstrapMethods.`copy(ConstantPool _constant_pool)`
    `Attribute` | Code.`copy(ConstantPool _constant_pool)`
    `Attribute` | ConstantValue.`copy(ConstantPool _constant_pool)`
    `Attribute` | Deprecated.`copy(ConstantPool _constant_pool)`
    `Attribute` | EnclosingMethod.`copy(ConstantPool constant_pool)`
    `Attribute` | ExceptionTable.`copy(ConstantPool _constant_pool)`
    `Field` | Field.`copy(ConstantPool _constant_pool)`
    `Attribute` | InnerClasses.`copy(ConstantPool _constant_pool)`
    `Attribute` | LineNumberTable.`copy(ConstantPool _constant_pool)`
    `Attribute` | LocalVariableTable.`copy(ConstantPool _constant_pool)`
    `Attribute` | LocalVariableTypeTable.`copy(ConstantPool constant_pool)`
    `Method` | Method.`copy(ConstantPool _constant_pool)`
    `Attribute` | MethodParameters.`copy(ConstantPool _constant_pool)`
    `Attribute` | Module.`copy(ConstantPool _constant_pool)`
    `Attribute` | ModuleMainClass.`copy(ConstantPool _constant_pool)`
    `Attribute` | ModulePackages.`copy(ConstantPool _constant_pool)`
    `Attribute` | NestHost.`copy(ConstantPool _constant_pool)`
    `Attribute` | NestMembers.`copy(ConstantPool _constant_pool)`
    `Attribute` | ParameterAnnotations.`copy(ConstantPool constant_pool)`
    `Attribute` | PMGClass.`copy(ConstantPool _constant_pool)`
    `Attribute` | RuntimeInvisibleAnnotations.`copy(ConstantPool constant_pool)`
    `Attribute` | RuntimeVisibleAnnotations.`copy(ConstantPool constant_pool)`
    `Attribute` | Signature.`copy(ConstantPool _constant_pool)`
    `Attribute` | SourceFile.`copy(ConstantPool _constant_pool)`
    `Attribute` | StackMap.`copy(ConstantPool _constant_pool)`
    `Attribute` | Synthetic.`copy(ConstantPool _constant_pool)`
    `Attribute` | Unknown.`copy(ConstantPool _constant_pool)`
    `Attribute` | UnknownAttributeReader.`createAttribute(int name_index, int length, DataInput file, ConstantPool constant_pool)` When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.
    `Attribute` | AttributeReader.`createAttribute(int name_index, int length, DataInputStream file, ConstantPool constant_pool)` Deprecated. When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.
    `String` | ConstantClass.`getBytes(ConstantPool cp)`
    `String` | ConstantModule.`getBytes(ConstantPool cp)`
    `String` | ConstantPackage.`getBytes(ConstantPool cp)`
    `String` | ConstantString.`getBytes(ConstantPool cp)`
    `String` | ConstantCP.`getClass(ConstantPool cp)`
    `Object` | ConstantClass.`getConstantValue(ConstantPool cp)`
    `Object` | ConstantDouble.`getConstantValue(ConstantPool cp)`
    `Object` | ConstantFloat.`getConstantValue(ConstantPool cp)`
    `Object` | ConstantInteger.`getConstantValue(ConstantPool cp)`
    `Object` | ConstantLong.`getConstantValue(ConstantPool cp)`
    `Object` | ConstantModule.`getConstantValue(ConstantPool cp)`
    `Object` | ConstantObject.`getConstantValue(ConstantPool cp)`
    `Object` | ConstantPackage.`getConstantValue(ConstantPool cp)`
    `Object` | ConstantString.`getConstantValue(ConstantPool cp)`
    `String` | ConstantNameAndType.`getName(ConstantPool cp)`
    `String` | MethodParameter.`getParameterName(ConstantPool constant_pool)` Returns the name of the parameter.
    `String` | ConstantNameAndType.`getSignature(ConstantPool cp)`
    `static AnnotationEntry` | AnnotationEntry.`read(DataInput input, ConstantPool constant_pool, boolean isRuntimeVisible)`
    `static Attribute` | Attribute.`readAttribute(DataInput file, ConstantPool constant_pool)` Class method reads one attribute from the input data stream.
    `static Attribute` | Attribute.`readAttribute(DataInputStream file, ConstantPool constant_pool)` Class method reads one attribute from the input data stream.
    `static ElementValue` | ElementValue.`readElementValue(DataInput input, ConstantPool cpool)`
    `void` | Attribute.`setConstantPool(ConstantPool constant_pool)`
    `void` | FieldOrMethod.`setConstantPool(ConstantPool constant_pool)`
    `void` | JavaClass.`setConstantPool(ConstantPool constant_pool)`
    `void` | LocalVariable.`setConstantPool(ConstantPool constant_pool)`
    `void` | StackMapEntry.`setConstantPool(ConstantPool constant_pool)`
    `void` | StackMapType.`setConstantPool(ConstantPool constant_pool)`
    `String` | BootstrapMethod.`toString(ConstantPool constant_pool)`
    `String` | CodeException.`toString(ConstantPool cp)`
    `String` | InnerClass.`toString(ConstantPool constant_pool)`
    `String` | ModuleExports.`toString(ConstantPool constant_pool)`
    `String` | ModuleOpens.`toString(ConstantPool constant_pool)`
    `String` | ModuleProvides.`toString(ConstantPool constant_pool)`
    `String` | ModuleRequires.`toString(ConstantPool constant_pool)`
    `String` | CodeException.`toString(ConstantPool cp, boolean verbose)`
    `void` | DescendingVisitor.`visitConstantPool(ConstantPool cp)`
    `void` | EmptyVisitor.`visitConstantPool(ConstantPool obj)`
    `void` | Visitor.`visitConstantPool(ConstantPool obj)`

    Constructors in org.apache.bcel.classfile with parameters of type ConstantPool
    Constructor and Description
    `AnnotationDefault(int name_index, int length, ElementValue defaultValue, ConstantPool constant_pool)`
    `AnnotationElementValue(int type, AnnotationEntry annotationEntry, ConstantPool cpool)`
    `AnnotationEntry(int type_index, ConstantPool constant_pool, boolean isRuntimeVisible)`
    `Annotations(byte annotation_type, int name_index, int length, AnnotationEntry[] annotation_table, ConstantPool constant_pool, boolean isRuntimeVisible)`
    `ArrayElementValue(int type, ElementValue[] datums, ConstantPool cpool)`
    `Attribute(byte tag, int name_index, int length, ConstantPool constant_pool)`
    `BootstrapMethods(int name_index, int length, BootstrapMethod[] bootstrap_methods, ConstantPool constant_pool)`
    `ClassElementValue(int type, int idx, ConstantPool cpool)`
    `Code(int name_index, int length, int max_stack, int max_locals, byte[] code, CodeException[] exception_table, Attribute[] attributes, ConstantPool constant_pool)`
    `ConstantValue(int name_index, int length, int constantvalue_index, ConstantPool constant_pool)`
    `Deprecated(int name_index, int length, byte[] bytes, ConstantPool constant_pool)`
    `ElementValue(int type, ConstantPool cpool)`
    `ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool)`
    `EnumElementValue(int type, int typeIdx, int valueIdx, ConstantPool cpool)`
    `ExceptionTable(int name_index, int length, int[] exception_index_table, ConstantPool constant_pool)`
    `Field(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)`
    `FieldOrMethod(DataInput file, ConstantPool constant_pool)` Construct object from file stream.
    `FieldOrMethod(DataInputStream file, ConstantPool constant_pool)` Deprecated. (6.0) Use `FieldOrMethod.FieldOrMethod(java.io.DataInput, ConstantPool)` instead.
    `FieldOrMethod(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)`
    `InnerClasses(int name_index, int length, InnerClass[] inner_classes, ConstantPool constant_pool)`
    `JavaClass(int class_name_index, int superclass_name_index, String file_name, int major, int minor, int access_flags, ConstantPool constant_pool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes)` Constructor gets all contents as arguments.
    `JavaClass(int class_name_index, int superclass_name_index, String file_name, int major, int minor, int access_flags, ConstantPool constant_pool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes, byte source)` Constructor gets all contents as arguments.
    `LineNumberTable(int name_index, int length, LineNumber[] line_number_table, ConstantPool constant_pool)`
    `LocalVariable(int start_pc, int length, int name_index, int signature_index, int index, ConstantPool constant_pool)`
    `LocalVariable(int start_pc, int length, int name_index, int signature_index, int index, ConstantPool constant_pool, int orig_index)`
    `LocalVariableTable(int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool)`
    `LocalVariableTypeTable(int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool)`
    `Method(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)`
    `ModuleMainClass(int name_index, int length, int main_class_index, ConstantPool constant_pool)`
    `ModulePackages(int name_index, int length, int[] package_index_table, ConstantPool constant_pool)`
    `NestHost(int name_index, int length, int host_class_index, ConstantPool constant_pool)`
    `NestMembers(int name_index, int length, int[] classes, ConstantPool constant_pool)`
    `ParameterAnnotations(byte parameter_annotation_type, int name_index, int length, ParameterAnnotationEntry[] parameter_annotation_table, ConstantPool constant_pool)`
    `PMGClass(int name_index, int length, int pmg_index, int pmg_class_index, ConstantPool constant_pool)`
    `RuntimeInvisibleAnnotations(int name_index, int length, DataInput input, ConstantPool constant_pool)`
    `RuntimeInvisibleParameterAnnotations(int name_index, int length, DataInput input, ConstantPool constant_pool)`
    `RuntimeVisibleAnnotations(int name_index, int length, DataInput input, ConstantPool constant_pool)`
    `RuntimeVisibleParameterAnnotations(int name_index, int length, DataInput input, ConstantPool constant_pool)`
    `Signature(int name_index, int length, int signature_index, ConstantPool constant_pool)`
    `SimpleElementValue(int type, int index, ConstantPool cpool)`
    `SourceFile(int name_index, int length, int sourcefile_index, ConstantPool constant_pool)`
    `StackMap(int name_index, int length, StackMapEntry[] map, ConstantPool constant_pool)`
    `StackMapEntry(int byteCodeOffset, int numberOfLocals, StackMapType[] typesOfLocals, int numberOfStackItems, StackMapType[] typesOfStackItems, ConstantPool constantPool)` Deprecated. Since 6.0, use `StackMapEntry.StackMapEntry(int, int, StackMapType[], StackMapType[], ConstantPool)` instead
    `StackMapEntry(int tag, int byteCodeOffset, StackMapType[] typesOfLocals, StackMapType[] typesOfStackItems, ConstantPool constantPool)` Create an instance
    `StackMapType(byte type, int index, ConstantPool constant_pool)`
    `Synthetic(int name_index, int length, byte[] bytes, ConstantPool constant_pool)`
    `Unknown(int name_index, int length, byte[] bytes, ConstantPool constant_pool)` Create a non-standard attribute.

  - ### Uses of ConstantPool in org.apache.bcel.generic

    Methods in org.apache.bcel.generic that return ConstantPool
    Modifier and Type | Method and Description
    --- | ---
    `ConstantPool` | ConstantPoolGen.`getConstantPool()`
    `ConstantPool` | ConstantPoolGen.`getFinalConstantPool()`

    Methods in org.apache.bcel.generic with parameters of type ConstantPool
    Modifier and Type | Method and Description
    --- | ---
    `String` | CPInstruction.`toString(ConstantPool cp)`
    `String` | FieldInstruction.`toString(ConstantPool cp)`
    `String` | Instruction.`toString(ConstantPool cp)`
    `String` | INVOKEDYNAMIC.`toString(ConstantPool cp)`
    `String` | InvokeInstruction.`toString(ConstantPool cp)`
    `String` | INVOKEINTERFACE.`toString(ConstantPool cp)`
    `String` | MULTIANEWARRAY.`toString(ConstantPool cp)`

    Constructors in org.apache.bcel.generic with parameters of type ConstantPool
    Constructor and Description
    `ConstantPoolGen(ConstantPool cp)` Initialize with given constant pool.

  - ### Uses of ConstantPool in org.apache.bcel.verifier.statics

    Methods in org.apache.bcel.verifier.statics with parameters of type ConstantPool
    Modifier and Type | Method and Description
    --- | ---
    `void` | StringRepresentation.`visitConstantPool(ConstantPool obj)`

Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.