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/setterprotected ConstantPoolFieldOrMethod.constant_poolDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterprivate final ConstantPoolAnnotationEntry.constantPoolprivate ConstantPoolClassParser.constantPoolprivate final ConstantPoolElementValuePair.constantPoolprivate ConstantPoolJavaClass.constantPoolprivate ConstantPoolLocalVariable.constantPoolprivate ConstantPoolStackMapEntry.constantPoolprivate ConstantPoolStackMapType.constantPoolprotected ConstantPoolElementValue.cpoolDeprecated.(since 6.0) will be made private and final; do not access directly, use getterMethods in org.apache.bcel.classfile that return ConstantPoolModifier and TypeMethodDescriptionConstantPool.copy()AnnotationEntry.getConstantPool()final ConstantPoolAttribute.getConstantPool()(package private) final ConstantPoolElementValue.getConstantPool()final ConstantPoolFieldOrMethod.getConstantPool()JavaClass.getConstantPool()LocalVariable.getConstantPool()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) 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) RuntimeInvisibleAnnotations.copy(ConstantPool constantPool) RuntimeVisibleAnnotations.copy(ConstantPool constantPool) 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) 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) ConstantNameAndType.getName(ConstantPool cp) MethodParameter.getParameterName(ConstantPool constantPool) Gets the name of the parameter.ConstantNameAndType.getSignature(ConstantPool cp) static AnnotationEntryAnnotationEntry.read(DataInput input, ConstantPool constantPool, boolean isRuntimeVisible) Factory method to create an AnnotionEntry from a DataInputstatic 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) final voidFieldOrMethod.setConstantPool(ConstantPool constantPool) voidJavaClass.setConstantPool(ConstantPool constantPool) voidLocalVariable.setConstantPool(ConstantPool constantPool) voidStackMapEntry.setConstantPool(ConstantPool constantPool) voidStackMapType.setConstantPool(ConstantPool constantPool) final StringBootstrapMethod.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) voidDescendingVisitor.visitConstantPool(ConstantPool cp) voidEmptyVisitor.visitConstantPool(ConstantPool obj) voidVisitor.visitConstantPool(ConstantPool obj) 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) AnnotationElementValue(int type, AnnotationEntry annotationEntry, ConstantPool cpool) AnnotationEntry(int typeIndex, ConstantPool constantPool, boolean isRuntimeVisible) (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[] datums, ConstantPool cpool) 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) ClassElementValue(int type, int idx, ConstantPool cpool) Code(int nameIndex, int length, int maxStack, int maxLocals, byte[] code, CodeException[] exceptionTable, Attribute[] attributes, ConstantPool constantPool) (package private)Code(int nameIndex, int length, DataInput file, ConstantPool constantPool) ConstantValue(int nameIndex, int length, int constantValueIndex, ConstantPool constantPool) (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) (package private)Deprecated(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.protectedElementValue(int type, ConstantPool cpool) ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool) 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) ExceptionTable(int nameIndex, int length, int[] exceptionIndexTable, ConstantPool constantPool) (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) (package private)Field(DataInput file, ConstantPool constantPool) Constructs object from file stream.protectedFieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) 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) 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 object from input stream.LineNumberTable(int nameIndex, int length, LineNumber[] lineNumberTable, ConstantPool constantPool) 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) (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) (package private)LocalVariableTypeTable(int nameIdx, int len, DataInput input, ConstantPool cpool) LocalVariableTypeTable(int nameIndex, int length, LocalVariable[] localVariableTypeTable, ConstantPool constantPool) Method(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) (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 input, ConstantPool constantPool) Constructs object from input stream.ModuleMainClass(int nameIndex, int length, int mainClassIndex, ConstantPool constantPool) (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) (package private)ModulePackages(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.NestHost(int nameIndex, int length, int hostClassIndex, ConstantPool constantPool) (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) (package private)NestMembers(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.(package private)ParameterAnnotationEntry(DataInput input, ConstantPool constantPool) Constructs object from input stream.(package private)ParameterAnnotations(byte parameterAnnotationType, int nameIndex, int length, DataInput input, ConstantPool constantPool) ParameterAnnotations(byte parameterAnnotationType, int nameIndex, int length, ParameterAnnotationEntry[] parameterAnnotationTable, ConstantPool constantPool) PMGClass(int nameIndex, int length, int pmgIndex, int pmgClassIndex, ConstantPool constantPool) (package private)PMGClass(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from input stream.RuntimeInvisibleAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) RuntimeInvisibleParameterAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) RuntimeVisibleAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) RuntimeVisibleParameterAnnotations(int nameIndex, int length, DataInput input, ConstantPool constantPool) Signature(int nameIndex, int length, int signatureIndex, ConstantPool constantPool) (package private)Signature(int nameIndex, int length, DataInput input, ConstantPool constantPool) Constructs object from file stream.SimpleElementValue(int type, int index, ConstantPool cpool) SourceFile(int nameIndex, int length, int sourceFileIndex, ConstantPool constantPool) (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) 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 instance(package private)StackMapEntry(DataInput dataInput, ConstantPool constantPool) Constructs object from input stream.StackMapType(byte type, int index, ConstantPool constantPool) (package private)StackMapType(DataInput file, ConstantPool constantPool) Constructs object from file stream.Synthetic(int nameIndex, int length, byte[] bytes, ConstantPool constantPool) (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 an input stream. -
Uses of ConstantPool in org.apache.bcel.generic
Methods in org.apache.bcel.generic that return ConstantPoolModifier and TypeMethodDescriptionConstantPoolGen.getConstantPool()ConstantPoolGen.getFinalConstantPool()Methods in org.apache.bcel.generic with parameters of type ConstantPoolModifier 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) 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)