Uses of Class
org.apache.bcel.classfile.ConstantPool
Packages that use ConstantPool
Package
Description
Classes that describe the structure of a Java class file and a class file parser.
Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects
and byte code instructions.
Utility classes for the Apache Byte Code Engineering Library (BCEL), namely:
Collection classes for JavaClass objects
A converter for class files to HTML
A tool to find instructions patterns via regular expressions
A class to find classes as defined in the CLASSPATH
A class loader that allows to create classes at run time
PassVerifier classes used internally by JustIce.
-
Uses of ConstantPool in org.apache.bcel.classfile
Fields in org.apache.bcel.classfile declared as ConstantPoolModifier and TypeFieldDescriptionprotected ConstantPoolAttribute.constant_poolDeprecated.(since 6.0) will be made private; do not access directly, use getter/setter.protected ConstantPoolFieldOrMethod.constant_poolDeprecated.(since 6.0) will be made private; do not access directly, use getter/setter.private final ConstantPoolAnnotationEntry.constantPoolprivate ConstantPoolClassParser.constantPoolprivate final ConstantPoolElementValuePair.constantPoolprivate ConstantPoolJavaClass.constantPoolprivate ConstantPoolLocalVariable.constantPoolprivate final ConstantPoolRecordComponentInfo.constantPoolprivate ConstantPoolStackMapEntry.constantPoolprivate ConstantPoolStackMapType.constantPoolprotected ConstantPoolElementValue.cpoolDeprecated.(since 6.0) will be made private and final; do not access directly, use getter.Methods in org.apache.bcel.classfile that return ConstantPoolModifier and TypeMethodDescriptionConstantPool.copy()Creates a deep copy of this constant pool.AnnotationEntry.getConstantPool()Gets the constant pool.final ConstantPoolAttribute.getConstantPool()Gets the constant pool used by this object.(package private) final ConstantPoolElementValue.getConstantPool()Gets the constant pool.final ConstantPoolFieldOrMethod.getConstantPool()Gets the constant pool used by this object.JavaClass.getConstantPool()Gets the constant pool.LocalVariable.getConstantPool()Gets the constant pool used by this object.RecordComponentInfo.getConstantPool()Gets the constant pool.StackMapEntry.getConstantPool()Gets the constant pool.StackMapType.getConstantPool()Gets the constant pool.Methods in org.apache.bcel.classfile with parameters of type ConstantPoolModifier and TypeMethodDescriptionstatic StringUtility.codeToString(byte[] code, ConstantPool constantPool, int index, int length) Disassembles byte code.static StringUtility.codeToString(byte[] code, ConstantPool constantPool, 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 StringUtility.codeToString(ByteSequence bytes, ConstantPool constantPool) Disassembles byte code.static StringUtility.codeToString(ByteSequence bytes, ConstantPool constantPool, boolean verbose) Disassemble a stream of byte codes and return the string representation.AnnotationDefault.copy(ConstantPool constantPool) Annotations.copy(ConstantPool constantPool) abstract AttributeAttribute.copy(ConstantPool constantPool) Creates a deep copy of this attribute.BootstrapMethods.copy(ConstantPool constantPool) Creates a deep copy of this attribute.Code.copy(ConstantPool constantPool) Creates a deep copy of this attribute.ConstantValue.copy(ConstantPool constantPool) Creates a deep copy of this attribute.Deprecated.copy(ConstantPool constantPool) EnclosingMethod.copy(ConstantPool constantPool) ExceptionTable.copy(ConstantPool constantPool) Creates a deep copy of this attribute.Field.copy(ConstantPool constantPool) Creates a deep copy of this field.InnerClasses.copy(ConstantPool constantPool) Creates a deep copy of this attribute.LineNumberTable.copy(ConstantPool constantPool) LocalVariableTable.copy(ConstantPool constantPool) LocalVariableTypeTable.copy(ConstantPool constantPool) Method.copy(ConstantPool constantPool) Creates a deep copy of this method.MethodParameters.copy(ConstantPool constantPool) Module.copy(ConstantPool constantPool) ModuleMainClass.copy(ConstantPool constantPool) ModulePackages.copy(ConstantPool constantPool) NestHost.copy(ConstantPool constantPool) NestMembers.copy(ConstantPool constantPool) ParameterAnnotations.copy(ConstantPool constantPool) PermittedSubclasses.copy(ConstantPool constantPool) Creates a deep clone of this object given constant pool.PMGClass.copy(ConstantPool constantPool) Record.copy(ConstantPool constantPool) Copies this instance and its components.RuntimeInvisibleAnnotations.copy(ConstantPool constantPool) Creates a deep copy of this attribute.RuntimeVisibleAnnotations.copy(ConstantPool constantPool) Creates a deep copy of this attribute.Signature.copy(ConstantPool constantPool) SourceFile.copy(ConstantPool constantPool) StackMap.copy(ConstantPool constantPool) Synthetic.copy(ConstantPool constantPool) Unknown.copy(ConstantPool constantPool) protected FieldOrMethodFieldOrMethod.copy_(ConstantPool constantPool) Creates a deep copy of this field.AttributeReader.createAttribute(int nameIndex, int length, DataInputStream file, ConstantPool constantPool) Deprecated.When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.UnknownAttributeReader.createAttribute(int nameIndex, int length, DataInput file, ConstantPool constantPool) When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.ConstantClass.getBytes(ConstantPool cp) Gets the dereferenced string.ConstantModule.getBytes(ConstantPool cp) Gets the dereferenced string.ConstantPackage.getBytes(ConstantPool cp) Gets the dereferenced string.ConstantString.getBytes(ConstantPool cp) Gets the dereferenced string.ConstantCP.getClass(ConstantPool cp) Gets the class this field belongs to.private static StringModule.getClassNameAtIndex(ConstantPool cp, int index, boolean compactClassName) ConstantClass.getConstantValue(ConstantPool cp) Gets the String object.ConstantDouble.getConstantValue(ConstantPool cp) Gets the Double object.ConstantFloat.getConstantValue(ConstantPool cp) Gets the Float object.ConstantInteger.getConstantValue(ConstantPool cp) Gets the Integer object.ConstantLong.getConstantValue(ConstantPool cp) Gets the Long object.ConstantModule.getConstantValue(ConstantPool cp) Gets the String object.ConstantObject.getConstantValue(ConstantPool constantPool) Gets the object representing the constant, for example, Long for ConstantLong.ConstantPackage.getConstantValue(ConstantPool cp) Gets the String object.ConstantString.getConstantValue(ConstantPool cp) Gets the String object.private static StringModuleProvides.getImplementationClassNameAtIndex(ConstantPool constantPool, int index, boolean compactClassName) String[]ModuleProvides.getImplementationClassNames(ConstantPool constantPool, boolean compactClassName) Gets the array of implementation class names for this ModuleProvides.ModuleProvides.getInterfaceName(ConstantPool constantPool) Gets the interface name for this ModuleProvides.Module.getModuleName(ConstantPool cp) Gets module name.ModuleRequires.getModuleName(ConstantPool constantPool) Gets the module name from the constant pool.ConstantNameAndType.getName(ConstantPool cp) Gets the name.ModuleExports.getPackageName(ConstantPool constantPool) Gets the exported package name.ModuleOpens.getPackageName(ConstantPool constantPool) Gets the opened package name.MethodParameter.getParameterName(ConstantPool constantPool) Gets the name of the parameter.ConstantNameAndType.getSignature(ConstantPool cp) Gets the signature.private static StringModuleExports.getToModuleNameAtIndex(ConstantPool constantPool, int index) private static StringModuleOpens.getToModuleNameAtIndex(ConstantPool constantPool, int index) String[]ModuleExports.getToModuleNames(ConstantPool constantPool) Gets an array of module names for this ModuleExports.String[]ModuleOpens.getToModuleNames(ConstantPool constantPool) Gets an array of module names for this ModuleOpens.String[]Module.getUsedClassNames(ConstantPool constantPool, boolean compactClassName) Gets the array of class names for this module's uses.Module.getVersion(ConstantPool cp) Gets version for this module.ModuleRequires.getVersion(ConstantPool constantPool) Gets the required version from the constant pool.static AnnotationEntryAnnotationEntry.read(DataInput input, ConstantPool constantPool, boolean isRuntimeVisible) Factory method to create an AnnotionEntry from a DataInput.(package private) static AnnotationEntryAnnotationEntry.read(DataInput input, ConstantPool constantPool, boolean isRuntimeVisible, int nesting) Factory method to create an AnnotionEntry from a DataInput, carrying the nesting depth of the enclosing element values so thatElementValue.readElementValue(DataInput, ConstantPool, boolean, int)can bound the combined annotation/array nesting depth.static AttributeAttribute.readAttribute(DataInput dataInput, ConstantPool constantPool) Class method reads one attribute from the input data stream.static AttributeAttribute.readAttribute(DataInputStream dataInputStream, ConstantPool constantPool) Class method reads one attribute from the input data stream.private static AttributeAttribute.readAttribute0(DataInput dataInput, ConstantPool constantPool) Reads one attribute without tracking the nesting depth; only to be called byAttribute.readAttribute(DataInput, ConstantPool).private static RecordComponentInfo[]Record.readComponents(DataInput input, ConstantPool constantPool) static ElementValueElementValue.readElementValue(DataInput input, ConstantPool cpool) Reads anelement_valueas anElementValue.(package private) static ElementValueElementValue.readElementValue(DataInput input, ConstantPool cpool, boolean isRuntimeVisible, int arrayNesting) static ElementValueElementValue.readElementValue(DataInput input, ConstantPool cpool, int arrayNesting) Reads anelement_valueas anElementValue.final voidAttribute.setConstantPool(ConstantPool constantPool) Sets the constant pool to be used for this object.final voidFieldOrMethod.setConstantPool(ConstantPool constantPool) Sets the constant pool to be used for this object.voidJavaClass.setConstantPool(ConstantPool constantPool) Sets the constant pool.voidLocalVariable.setConstantPool(ConstantPool constantPool) Sets the constant pool to be used for this object.voidStackMapEntry.setConstantPool(ConstantPool constantPool) Sets the constant pool.voidStackMapType.setConstantPool(ConstantPool constantPool) Sets the constant pool.final StringBootstrapMethod.toString(ConstantPool constantPool) Gets a resolved string representation.CodeException.toString(ConstantPool cp) Gets a string representation with constant pool.CodeException.toString(ConstantPool cp, boolean verbose) Gets a string representation with constant pool.InnerClass.toString(ConstantPool constantPool) Gets the resolved string representation.ModuleExports.toString(ConstantPool constantPool) Gets the resolved string representation.ModuleOpens.toString(ConstantPool constantPool) Gets the resolved string representation.ModuleProvides.toString(ConstantPool constantPool) Gets the resolved string representation.ModuleRequires.toString(ConstantPool constantPool) Gets the resolved string representation.voidDescendingVisitor.visitConstantPool(ConstantPool cp) voidEmptyVisitor.visitConstantPool(ConstantPool obj) voidVisitor.visitConstantPool(ConstantPool obj) Visits a ConstantPool.Constructors in org.apache.bcel.classfile with parameters of type ConstantPoolModifierConstructorDescription(package private)AnnotationDefault(int nameIndex, int length, DataInput input, ConstantPool constantPool) AnnotationDefault(int nameIndex, int length, ElementValue defaultValue, ConstantPool constantPool) Constructs an AnnotationDefault attribute.AnnotationElementValue(int type, AnnotationEntry annotationEntry, ConstantPool cpool) Constructs an AnnotationElementValue.AnnotationEntry(int typeIndex, ConstantPool constantPool, boolean isRuntimeVisible) Constructs an AnnotationEntry.(package private)Annotations(byte annotationType, int nameIndex, int length, DataInput input, ConstantPool constantPool, boolean isRuntimeVisible) Constructs an instance.Annotations(byte annotationType, int nameIndex, int length, AnnotationEntry[] annotationTable, ConstantPool constantPool, boolean isRuntimeVisible) Constructs an instance.ArrayElementValue(int type, ElementValue[] elementValues, ConstantPool cpool) Constructs an ArrayElementValue.protectedAttribute(byte tag, int nameIndex, int length, ConstantPool constantPool) Constructs an instance.(package private)BootstrapMethods(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from Input stream.BootstrapMethods(int nameIndex, int length, BootstrapMethod[] bootstrapMethods, ConstantPool constantPool) Constructs a BootstrapMethods attribute.ClassElementValue(int type, int idx, ConstantPool cpool) Constructs a ClassElementValue.Code(int nameIndex, int length, int maxStack, int maxLocals, byte[] code, CodeException[] exceptionTable, Attribute[] attributes, ConstantPool constantPool) Constructs a Code attribute.(package private)Code(int nameIndex, int length, DataInput dataInput, ConstantPool constantPool) Constructs a Code attribute object from a DataInput.ConstantValue(int nameIndex, int length, int constantValueIndex, ConstantPool constantPool) Constructs a ConstantValue.(package private)ConstantValue(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.Deprecated(int nameIndex, int length, byte[] bytes, ConstantPool constantPool) Constructs a Deprecated attribute.(package private)Deprecated(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.protectedElementValue(int type, ConstantPool cpool) Constructs an ElementValue.ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool) Constructs an ElementValuePair.privateEnclosingMethod(int nameIndex, int len, int classIndex, int methodIndex, ConstantPool cpool) (package private)EnclosingMethod(int nameIndex, int len, DataInput input, ConstantPool cpool) EnumElementValue(int type, int typeIdx, int valueIdx, ConstantPool cpool) Constructs an EnumElementValue.ExceptionTable(int nameIndex, int length, int[] exceptionIndexTable, ConstantPool constantPool) Constructs an ExceptionTable.(package private)ExceptionTable(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.Field(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) Constructs a Field.(package private)Field(DataInput file, ConstantPool constantPool) Constructs object from file stream.protectedFieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) Constructs a FieldOrMethod.protectedFieldOrMethod(DataInput file, ConstantPool constantPool) Constructs object from file stream.protectedFieldOrMethod(DataInputStream file, ConstantPool constantPool) Deprecated.(6.0) UseFieldOrMethod(java.io.DataInput, ConstantPool)instead.(package private)InnerClasses(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.InnerClasses(int nameIndex, int length, InnerClass[] innerClasses, ConstantPool constantPool) Constructs an InnerClasses attribute.JavaClass(int classNameIndex, int superclassNameIndex, String fileName, int major, int minor, int accessFlags, ConstantPool constantPool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes) Constructor gets all contents as arguments.JavaClass(int classNameIndex, int superclassNameIndex, String fileName, int major, int minor, int accessFlags, ConstantPool constantPool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes, byte source) Constructor gets all contents as arguments.(package private)LineNumberTable(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs a new instance from a data input stream.LineNumberTable(int nameIndex, int length, LineNumber[] lineNumberTable, ConstantPool constantPool) Constructs a new instance.LocalVariable(int startPc, int length, int nameIndex, int signatureIndex, int index, ConstantPool constantPool) Constructs a LocalVariable.LocalVariable(int startPc, int length, int nameIndex, int signatureIndex, int index, ConstantPool constantPool, int origIndex) Constructs a LocalVariable.(package private)LocalVariable(DataInput file, ConstantPool constantPool) Constructs object from file stream.(package private)LocalVariableTable(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.LocalVariableTable(int nameIndex, int length, LocalVariable[] localVariableTable, ConstantPool constantPool) Constructs a new LocalVariableTable.(package private)LocalVariableTypeTable(int nameIdx, int len, DataInput input, ConstantPool cpool) LocalVariableTypeTable(int nameIndex, int length, LocalVariable[] localVariableTypeTable, ConstantPool constantPool) Constructs a new LocalVariableTypeTable.Method(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) Constructs a Method.(package private)Method(DataInput file, ConstantPool constantPool) Constructs object from file stream.(package private)MethodParameters(int nameIndex, int length, DataInput input, ConstantPool constantPool) (package private)Module(int nameIndex, int length, DataInput dataInput, ConstantPool constantPool) Constructs object from input stream.ModuleMainClass(int nameIndex, int length, int mainClassIndex, ConstantPool constantPool) Constructs a new ModuleMainClass.(package private)ModuleMainClass(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.ModulePackages(int nameIndex, int length, int[] packageIndexTable, ConstantPool constantPool) Constructs a new ModulePackages.(package private)ModulePackages(int nameIndex, int length, DataInput dataInput, ConstantPool constantPool) Constructs object from input stream.NestHost(int nameIndex, int length, int hostClassIndex, ConstantPool constantPool) Constructs a new NestHost.(package private)NestHost(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.NestMembers(int nameIndex, int length, int[] classes, ConstantPool constantPool) Constructs a new NestMembers.(package private)NestMembers(int nameIndex, int length, DataInput dataInput, ConstantPool constantPool) Constructs object from input stream.(package private)ParameterAnnotationEntry(DataInput input, ConstantPool constantPool, boolean isRuntimeVisible) Constructs object from input stream.(package private)ParameterAnnotations(byte parameterAnnotationType, int nameIndex, int length, DataInput input, ConstantPool constantPool, boolean isRuntimeVisible) Constructs a new instance.ParameterAnnotations(byte parameterAnnotationType, int nameIndex, int length, ParameterAnnotationEntry[] parameterAnnotationTable, ConstantPool constantPool) Constructs a new instance.PermittedSubclasses(int nameIndex, int length, int[] classes, ConstantPool constantPool) Constructs object from table of class indices in constant pool.(package private)PermittedSubclasses(int nameIndex, int length, DataInput dataInput, ConstantPool constantPool) Constructs object from input stream.PMGClass(int nameIndex, int length, int pmgIndex, int pmgClassIndex, ConstantPool constantPool) Constructs a PMGClass.(package private)PMGClass(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.(package private)Record(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.Record(int nameIndex, int length, RecordComponentInfo[] classes, ConstantPool constantPool) Constructs a new instance using components.RecordComponentInfo(DataInput input, ConstantPool constantPool) Constructs a new instance from an input stream.RuntimeInvisibleAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs a new instance.RuntimeInvisibleParameterAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs a new instance.RuntimeVisibleAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs a new instance.RuntimeVisibleParameterAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs a new instance.Signature(int nameIndex, int length, int signatureIndex, ConstantPool constantPool) Constructs a Signature.(package private)Signature(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from file stream.SimpleElementValue(int type, int index, ConstantPool cpool) Constructs a SimpleElementValue.SourceFile(int nameIndex, int length, int sourceFileIndex, ConstantPool constantPool) Constructs a SourceFile.(package private)SourceFile(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.(package private)StackMap(int nameIndex, int length, DataInput dataInput, ConstantPool constantPool) Constructs object from input stream.StackMap(int nameIndex, int length, StackMapEntry[] table, ConstantPool constantPool) Constructs a StackMap.StackMapEntry(int byteCodeOffset, int numberOfLocals, StackMapType[] typesOfLocals, int numberOfStackItems, StackMapType[] typesOfStackItems, ConstantPool constantPool) Deprecated.Since 6.0, useStackMapEntry(int, int, StackMapType[], StackMapType[], ConstantPool)instead.StackMapEntry(int tag, int byteCodeOffset, StackMapType[] typesOfLocals, StackMapType[] typesOfStackItems, ConstantPool constantPool) Create an instance(package private)StackMapEntry(DataInput dataInput, ConstantPool constantPool) Constructs object from input stream.StackMapType(byte type, int index, ConstantPool constantPool) Constructs a StackMapType.(package private)StackMapType(DataInput file, ConstantPool constantPool) Constructs object from file stream.Synthetic(int nameIndex, int length, byte[] bytes, ConstantPool constantPool) Constructs a Synthetic attribute.(package private)Synthetic(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.Unknown(int nameIndex, int length, byte[] bytes, ConstantPool constantPool) Constructs a new instance for a non-standard attribute.(package private)Unknown(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs a new instance from a DataInput. -
Uses of ConstantPool in org.apache.bcel.generic
Methods in org.apache.bcel.generic that return ConstantPoolModifier and TypeMethodDescriptionConstantPoolGen.getConstantPool()Gets the intermediate constant pool.ConstantPoolGen.getFinalConstantPool()Gets the constant pool with proper length.Methods in org.apache.bcel.generic with parameters of type ConstantPoolModifier and TypeMethodDescriptionCPInstruction.toString(ConstantPool cp) FieldInstruction.toString(ConstantPool cp) Instruction.toString(ConstantPool cp) Gets the mnemonic for instruction with symbolic references resolved.InvokeInstruction.toString(ConstantPool cp) INVOKEINTERFACE.toString(ConstantPool cp) MULTIANEWARRAY.toString(ConstantPool cp) Constructors in org.apache.bcel.generic with parameters of type ConstantPoolModifierConstructorDescriptionConstructs a new instance with the given constant pool. -
Uses of ConstantPool in org.apache.bcel.util
Fields in org.apache.bcel.util declared as ConstantPoolModifier and TypeFieldDescriptionprivate final ConstantPoolAttributeHTML.constantPoolprivate static ConstantPoolClass2HTML.constantPoolprivate final ConstantPoolCodeHTML.constantPoolprivate final ConstantPoolConstantHTML.constantPoolConstructors in org.apache.bcel.util with parameters of type ConstantPoolModifierConstructorDescription(package private)AttributeHTML(String dir, String className, ConstantPool constantPool, ConstantHTML constantHtml, Charset charset) (package private)CodeHTML(String dir, String className, Method[] methods, ConstantPool constantPool, ConstantHTML constantHtml, Charset charset) (package private)ConstantHTML(String dir, String className, String classPackage, Method[] methods, ConstantPool constantPool, Charset charset) -
Uses of ConstantPool in org.apache.bcel.verifier.statics
Fields in org.apache.bcel.verifier.statics declared as ConstantPoolModifier and TypeFieldDescriptionprivate final ConstantPoolPass2Verifier.CPESSC_Visitor.cpprivate final ConstantPoolPass2Verifier.FAMRAV_Visitor.cpprivate final ConstantPoolPass2Verifier.InnerClassDetector.cpMethods in org.apache.bcel.verifier.statics with parameters of type ConstantPoolModifier and TypeMethodDescriptionvoidPass2Verifier.CPESSC_Visitor.visitConstantPool(ConstantPool obj) voidStringRepresentation.visitConstantPool(ConstantPool obj)