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.
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.protected 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.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()StackMapType.getConstantPool()Methods in org.apache.bcel.classfile with parameters of type ConstantPoolModifier and TypeMethodDescriptionstatic StringUtility.codeToString(byte[] code, ConstantPool constantPool, int index, int length) 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) 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) 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.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.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.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.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.static ElementValueElementValue.readElementValue(DataInput input, ConstantPool cpool) Reads anelement_valueas anElementValue.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) voidStackMapType.setConstantPool(ConstantPool constantPool) 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) ModuleOpens.toString(ConstantPool constantPool) ModuleProvides.toString(ConstantPool constantPool) ModuleRequires.toString(ConstantPool constantPool) 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 ConstantPoolModifierConstructorDescriptionAnnotationDefault(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.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.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.ConstantValue(int nameIndex, int length, int constantValueIndex, ConstantPool constantPool) Constructs a ConstantValue.Deprecated(int nameIndex, int length, byte[] bytes, ConstantPool constantPool) Constructs a Deprecated attribute.protectedElementValue(int type, ConstantPool cpool) Constructs an ElementValue.ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool) Constructs an ElementValuePair.EnumElementValue(int type, int typeIdx, int valueIdx, ConstantPool cpool) Constructs an EnumElementValue.ExceptionTable(int nameIndex, int length, int[] exceptionIndexTable, ConstantPool constantPool) Constructs an ExceptionTable.Field(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) Constructs a Field.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.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.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.LocalVariableTable(int nameIndex, int length, LocalVariable[] localVariableTable, ConstantPool constantPool) LocalVariableTypeTable(int nameIndex, int length, LocalVariable[] localVariableTypeTable, ConstantPool constantPool) Method(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) Constructs a Method.ModuleMainClass(int nameIndex, int length, int mainClassIndex, ConstantPool constantPool) ModulePackages(int nameIndex, int length, int[] packageIndexTable, ConstantPool constantPool) NestHost(int nameIndex, int length, int hostClassIndex, ConstantPool constantPool) NestMembers(int nameIndex, int length, int[] classes, ConstantPool constantPool) ParameterAnnotations(byte parameterAnnotationType, int nameIndex, int length, ParameterAnnotationEntry[] parameterAnnotationTable, ConstantPool constantPool) Constructs a new instance.PMGClass(int nameIndex, int length, int pmgIndex, int pmgClassIndex, ConstantPool constantPool) 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) SimpleElementValue(int type, int index, ConstantPool cpool) SourceFile(int nameIndex, int length, int sourceFileIndex, ConstantPool constantPool) StackMap(int nameIndex, int length, StackMapEntry[] table, ConstantPool constantPool) 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 instanceStackMapType(byte type, int index, ConstantPool constantPool) Synthetic(int nameIndex, int length, byte[] bytes, ConstantPool constantPool) Unknown(int nameIndex, int length, byte[] bytes, ConstantPool constantPool) Constructs a new instance for a non-standard attribute. -
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.verifier.statics
Methods in org.apache.bcel.verifier.statics with parameters of type ConstantPool