Uses of Class
org.apache.bcel.classfile.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
Modifier and TypeFieldDescriptionprotected ConstantPool
Attribute.constant_pool
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setterprotected ConstantPool
FieldOrMethod.constant_pool
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setterprotected ConstantPool
ElementValue.cpool
Deprecated.(since 6.0) will be made private and final; do not access directly, use getterModifier and TypeMethodDescriptionConstantPool.copy()
AnnotationEntry.getConstantPool()
final ConstantPool
Attribute.getConstantPool()
final ConstantPool
FieldOrMethod.getConstantPool()
JavaClass.getConstantPool()
LocalVariable.getConstantPool()
RecordComponentInfo.getConstantPool()
Gets the constant pool.StackMapEntry.getConstantPool()
StackMapType.getConstantPool()
Modifier and TypeMethodDescriptionstatic String
Utility.codeToString
(byte[] code, ConstantPool constantPool, int index, int length) static String
Utility.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 String
Utility.codeToString
(ByteSequence bytes, ConstantPool constantPool) static String
Utility.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 Attribute
Attribute.copy
(ConstantPool constantPool) BootstrapMethods.copy
(ConstantPool constantPool) Code.copy
(ConstantPool constantPool) ConstantValue.copy
(ConstantPool constantPool) Deprecated.copy
(ConstantPool constantPool) EnclosingMethod.copy
(ConstantPool constantPool) ExceptionTable.copy
(ConstantPool constantPool) Field.copy
(ConstantPool constantPool) InnerClasses.copy
(ConstantPool constantPool) LineNumberTable.copy
(ConstantPool constantPool) LocalVariableTable.copy
(ConstantPool constantPool) LocalVariableTypeTable.copy
(ConstantPool constantPool) Method.copy
(ConstantPool constantPool) 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 FieldOrMethod
FieldOrMethod.copy_
(ConstantPool constantPool) 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) ConstantModule.getBytes
(ConstantPool cp) ConstantPackage.getBytes
(ConstantPool cp) ConstantString.getBytes
(ConstantPool cp) ConstantCP.getClass
(ConstantPool cp) ConstantClass.getConstantValue
(ConstantPool cp) ConstantDouble.getConstantValue
(ConstantPool cp) ConstantFloat.getConstantValue
(ConstantPool cp) ConstantInteger.getConstantValue
(ConstantPool cp) ConstantLong.getConstantValue
(ConstantPool cp) ConstantModule.getConstantValue
(ConstantPool cp) ConstantObject.getConstantValue
(ConstantPool constantPool) Gets the object representing the constant, e.g., Long for ConstantLong.ConstantPackage.getConstantValue
(ConstantPool cp) ConstantString.getConstantValue
(ConstantPool cp) 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) 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) 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 AnnotationEntry
AnnotationEntry.read
(DataInput input, ConstantPool constantPool, boolean isRuntimeVisible) Factory method to create an AnnotionEntry from a DataInputstatic Attribute
Attribute.readAttribute
(DataInput dataInput, ConstantPool constantPool) Class method reads one attribute from the input data stream.static Attribute
Attribute.readAttribute
(DataInputStream dataInputStream, ConstantPool constantPool) Class method reads one attribute from the input data stream.static ElementValue
ElementValue.readElementValue
(DataInput input, ConstantPool cpool) Reads anelement_value
as anElementValue
.static ElementValue
ElementValue.readElementValue
(DataInput input, ConstantPool cpool, int arrayNesting) Reads anelement_value
as anElementValue
.final void
Attribute.setConstantPool
(ConstantPool constantPool) final void
FieldOrMethod.setConstantPool
(ConstantPool constantPool) void
JavaClass.setConstantPool
(ConstantPool constantPool) void
LocalVariable.setConstantPool
(ConstantPool constantPool) void
StackMapEntry.setConstantPool
(ConstantPool constantPool) void
StackMapType.setConstantPool
(ConstantPool constantPool) final String
BootstrapMethod.toString
(ConstantPool constantPool) CodeException.toString
(ConstantPool cp) CodeException.toString
(ConstantPool cp, boolean verbose) InnerClass.toString
(ConstantPool constantPool) ModuleExports.toString
(ConstantPool constantPool) ModuleOpens.toString
(ConstantPool constantPool) ModuleProvides.toString
(ConstantPool constantPool) ModuleRequires.toString
(ConstantPool constantPool) void
DescendingVisitor.visitConstantPool
(ConstantPool cp) void
EmptyVisitor.visitConstantPool
(ConstantPool obj) void
Visitor.visitConstantPool
(ConstantPool obj) ModifierConstructorDescriptionAnnotationDefault
(int nameIndex, int length, ElementValue defaultValue, ConstantPool constantPool) AnnotationElementValue
(int type, AnnotationEntry annotationEntry, ConstantPool cpool) AnnotationEntry
(int typeIndex, ConstantPool constantPool, boolean isRuntimeVisible) Annotations
(byte annotationType, int nameIndex, int length, AnnotationEntry[] annotationTable, ConstantPool constantPool, boolean isRuntimeVisible) Constructs an instance.ArrayElementValue
(int type, ElementValue[] elementValues, ConstantPool cpool) protected
Attribute
(byte tag, int nameIndex, int length, ConstantPool constantPool) Constructs an instance.BootstrapMethods
(int nameIndex, int length, BootstrapMethod[] bootstrapMethods, ConstantPool constantPool) ClassElementValue
(int type, int idx, ConstantPool cpool) Code
(int nameIndex, int length, int maxStack, int maxLocals, byte[] code, CodeException[] exceptionTable, Attribute[] attributes, ConstantPool constantPool) ConstantValue
(int nameIndex, int length, int constantValueIndex, ConstantPool constantPool) Deprecated
(int nameIndex, int length, byte[] bytes, ConstantPool constantPool) protected
ElementValue
(int type, ConstantPool cpool) ElementValuePair
(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool) EnumElementValue
(int type, int typeIdx, int valueIdx, ConstantPool cpool) ExceptionTable
(int nameIndex, int length, int[] exceptionIndexTable, ConstantPool constantPool) Field
(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) protected
FieldOrMethod
(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) protected
FieldOrMethod
(DataInput file, ConstantPool constantPool) Constructs object from file stream.protected
FieldOrMethod
(DataInputStream file, ConstantPool constantPool) Deprecated.(6.0) UseFieldOrMethod(java.io.DataInput, ConstantPool)
instead.InnerClasses
(int nameIndex, int length, InnerClass[] innerClasses, ConstantPool constantPool) 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) LocalVariable
(int startPc, int length, int nameIndex, int signatureIndex, int index, ConstantPool constantPool, int origIndex) 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) 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)
insteadStackMapEntry
(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
Modifier and TypeMethodDescriptionConstantPoolGen.getConstantPool()
ConstantPoolGen.getFinalConstantPool()
Modifier and TypeMethodDescriptionCPInstruction.toString
(ConstantPool cp) FieldInstruction.toString
(ConstantPool cp) Instruction.toString
(ConstantPool cp) InvokeInstruction.toString
(ConstantPool cp) INVOKEINTERFACE.toString
(ConstantPool cp) MULTIANEWARRAY.toString
(ConstantPool cp) ModifierConstructorDescriptionConstructs a new instance with the given constant pool. -
Uses of ConstantPool in org.apache.bcel.verifier.statics