Uses of Class
org.apache.bcel.classfile.ConstantPool
-
Packages that use ConstantPool Package Description org.apache.bcel.classfile Classes that describe the structure of a Java class file and a class file parser.org.apache.bcel.generic Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects and byte code instructions.org.apache.bcel.util 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 timeorg.apache.bcel.verifier.statics 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 Description protected 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 ConstantPoolAnnotationEntry. constantPoolprivate ConstantPoolClassParser. constantPoolprivate ConstantPoolElementValuePair. constantPoolprivate ConstantPoolJavaClass. constantPoolprivate ConstantPoolLocalVariable. constantPoolprivate 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 ConstantPool Modifier and Type Method Description ConstantPoolConstantPool. copy()Creates a deep copy of this constant pool.ConstantPoolAnnotationEntry. getConstantPool()Gets the constant pool.ConstantPoolAttribute. getConstantPool()Gets the constant pool used by this object.(package private) ConstantPoolElementValue. getConstantPool()Gets the constant pool.ConstantPoolFieldOrMethod. getConstantPool()Gets the constant pool used by this object.ConstantPoolJavaClass. getConstantPool()Gets the constant pool.ConstantPoolLocalVariable. getConstantPool()Gets the constant pool used by this object.ConstantPoolRecordComponentInfo. getConstantPool()Gets the constant pool.ConstantPoolStackMapEntry. getConstantPool()ConstantPoolStackMapType. getConstantPool()Methods in org.apache.bcel.classfile with parameters of type ConstantPool Modifier and Type Method Description static java.lang.StringUtility. codeToString(byte[] code, ConstantPool constantPool, int index, int length)static java.lang.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 java.lang.StringUtility. codeToString(ByteSequence bytes, ConstantPool constantPool)static java.lang.StringUtility. codeToString(ByteSequence bytes, ConstantPool constantPool, boolean verbose)Disassemble a stream of byte codes and return the string representation.AttributeAnnotationDefault. copy(ConstantPool constantPool)AttributeAnnotations. copy(ConstantPool constantPool)abstract AttributeAttribute. copy(ConstantPool constantPool)Creates a deep copy of this attribute.BootstrapMethodsBootstrapMethods. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeCode. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeConstantValue. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeDeprecated. copy(ConstantPool constantPool)AttributeEnclosingMethod. copy(ConstantPool constantPool)AttributeExceptionTable. copy(ConstantPool constantPool)Creates a deep copy of this attribute.FieldField. copy(ConstantPool constantPool)Creates a deep copy of this field.AttributeInnerClasses. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeLineNumberTable. copy(ConstantPool constantPool)AttributeLocalVariableTable. copy(ConstantPool constantPool)AttributeLocalVariableTypeTable. copy(ConstantPool constantPool)MethodMethod. copy(ConstantPool constantPool)Creates a deep copy of this method.AttributeMethodParameters. copy(ConstantPool constantPool)AttributeModule. copy(ConstantPool constantPool)AttributeModuleMainClass. copy(ConstantPool constantPool)AttributeModulePackages. copy(ConstantPool constantPool)AttributeNestHost. copy(ConstantPool constantPool)AttributeNestMembers. copy(ConstantPool constantPool)AttributeParameterAnnotations. copy(ConstantPool constantPool)AttributePMGClass. copy(ConstantPool constantPool)AttributeRecord. copy(ConstantPool constantPool)Copies this instance and its components.AttributeRuntimeInvisibleAnnotations. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeRuntimeVisibleAnnotations. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeSignature. copy(ConstantPool constantPool)AttributeSourceFile. copy(ConstantPool constantPool)AttributeStackMap. copy(ConstantPool constantPool)AttributeSynthetic. copy(ConstantPool constantPool)AttributeUnknown. copy(ConstantPool constantPool)protected FieldOrMethodFieldOrMethod. copy_(ConstantPool constantPool)Creates a deep copy of this field.AttributeAttributeReader. createAttribute(int nameIndex, int length, java.io.DataInputStream file, ConstantPool constantPool)Deprecated.When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.AttributeUnknownAttributeReader. createAttribute(int nameIndex, int length, java.io.DataInput file, ConstantPool constantPool)When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.java.lang.StringConstantClass. getBytes(ConstantPool cp)Gets the dereferenced string.java.lang.StringConstantModule. getBytes(ConstantPool cp)Gets the dereferenced string.java.lang.StringConstantPackage. getBytes(ConstantPool cp)Gets the dereferenced string.java.lang.StringConstantString. getBytes(ConstantPool cp)Gets the dereferenced string.java.lang.StringConstantCP. getClass(ConstantPool cp)Gets the class this field belongs to.private static java.lang.StringModule. getClassNameAtIndex(ConstantPool cp, int index, boolean compactClassName)java.lang.ObjectConstantClass. getConstantValue(ConstantPool cp)Gets the String object.java.lang.ObjectConstantDouble. getConstantValue(ConstantPool cp)Gets the Double object.java.lang.ObjectConstantFloat. getConstantValue(ConstantPool cp)Gets the Float object.java.lang.ObjectConstantInteger. getConstantValue(ConstantPool cp)Gets the Integer object.java.lang.ObjectConstantLong. getConstantValue(ConstantPool cp)Gets the Long object.java.lang.ObjectConstantModule. getConstantValue(ConstantPool cp)Gets the String object.java.lang.ObjectConstantObject. getConstantValue(ConstantPool constantPool)Gets the object representing the constant, for example, Long for ConstantLong.java.lang.ObjectConstantPackage. getConstantValue(ConstantPool cp)Gets the String object.java.lang.ObjectConstantString. getConstantValue(ConstantPool cp)Gets the String object.private static java.lang.StringModuleProvides. getImplementationClassNameAtIndex(ConstantPool constantPool, int index, boolean compactClassName)java.lang.String[]ModuleProvides. getImplementationClassNames(ConstantPool constantPool, boolean compactClassName)Gets the array of implementation class names for this ModuleProvides.java.lang.StringModuleProvides. getInterfaceName(ConstantPool constantPool)Gets the interface name for this ModuleProvides.java.lang.StringModule. getModuleName(ConstantPool cp)Gets module name.java.lang.StringModuleRequires. getModuleName(ConstantPool constantPool)Gets the module name from the constant pool.java.lang.StringConstantNameAndType. getName(ConstantPool cp)Gets the name.java.lang.StringModuleExports. getPackageName(ConstantPool constantPool)Gets the exported package name.java.lang.StringModuleOpens. getPackageName(ConstantPool constantPool)Gets the opened package name.java.lang.StringMethodParameter. getParameterName(ConstantPool constantPool)Gets the name of the parameter.java.lang.StringConstantNameAndType. getSignature(ConstantPool cp)Gets the signature.private static java.lang.StringModuleExports. getToModuleNameAtIndex(ConstantPool constantPool, int index)private static java.lang.StringModuleOpens. getToModuleNameAtIndex(ConstantPool constantPool, int index)java.lang.String[]ModuleExports. getToModuleNames(ConstantPool constantPool)Gets an array of module names for this ModuleExports.java.lang.String[]ModuleOpens. getToModuleNames(ConstantPool constantPool)Gets an array of module names for this ModuleOpens.java.lang.String[]Module. getUsedClassNames(ConstantPool constantPool, boolean compactClassName)Gets the array of class names for this module's uses.java.lang.StringModule. getVersion(ConstantPool cp)Gets version for this module.java.lang.StringModuleRequires. getVersion(ConstantPool constantPool)Gets the required version from the constant pool.static AnnotationEntryAnnotationEntry. read(java.io.DataInput input, ConstantPool constantPool, boolean isRuntimeVisible)Factory method to create an AnnotionEntry from a DataInput.static AttributeAttribute. readAttribute(java.io.DataInput dataInput, ConstantPool constantPool)Class method reads one attribute from the input data stream.static AttributeAttribute. readAttribute(java.io.DataInputStream dataInputStream, ConstantPool constantPool)Class method reads one attribute from the input data stream.private static RecordComponentInfo[]Record. readComponents(java.io.DataInput input, ConstantPool constantPool)static ElementValueElementValue. readElementValue(java.io.DataInput input, ConstantPool cpool)Reads anelement_valueas anElementValue.static ElementValueElementValue. readElementValue(java.io.DataInput input, ConstantPool cpool, int arrayNesting)Reads anelement_valueas anElementValue.voidAttribute. setConstantPool(ConstantPool constantPool)Sets the constant pool to be used for this object.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)java.lang.StringBootstrapMethod. toString(ConstantPool constantPool)Gets a resolved string representation.java.lang.StringCodeException. toString(ConstantPool cp)Gets a string representation with constant pool.java.lang.StringCodeException. toString(ConstantPool cp, boolean verbose)Gets a string representation with constant pool.java.lang.StringInnerClass. toString(ConstantPool constantPool)Gets the resolved string representation.java.lang.StringModuleExports. toString(ConstantPool constantPool)java.lang.StringModuleOpens. toString(ConstantPool constantPool)java.lang.StringModuleProvides. toString(ConstantPool constantPool)java.lang.StringModuleRequires. 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 ConstantPool Constructor Description AnnotationDefault(int nameIndex, int length, java.io.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.Annotations(byte annotationType, int nameIndex, int length, java.io.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.Attribute(byte tag, int nameIndex, int length, ConstantPool constantPool)Constructs an instance.BootstrapMethods(int nameIndex, int length, java.io.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.Code(int nameIndex, int length, java.io.DataInput dataInput, ConstantPool constantPool)Constructs a Code attribute object from a DataInput.ConstantValue(int nameIndex, int length, int constantValueIndex, ConstantPool constantPool)Constructs a ConstantValue.ConstantValue(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.Deprecated(int nameIndex, int length, byte[] bytes, ConstantPool constantPool)Constructs a Deprecated attribute.Deprecated(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.ElementValue(int type, ConstantPool cpool)Constructs an ElementValue.ElementValuePair(int elementNameIndex, ElementValue elementValue, ConstantPool constantPool)Constructs an ElementValuePair.EnclosingMethod(int nameIndex, int len, int classIndex, int methodIndex, ConstantPool cpool)EnclosingMethod(int nameIndex, int len, java.io.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.ExceptionTable(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.Field(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool)Constructs a Field.Field(java.io.DataInput file, ConstantPool constantPool)Constructs object from file stream.FieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool)Constructs a FieldOrMethod.FieldOrMethod(java.io.DataInput file, ConstantPool constantPool)Constructs object from file stream.FieldOrMethod(java.io.DataInputStream file, ConstantPool constantPool)Deprecated.(6.0) UseFieldOrMethod(java.io.DataInput, ConstantPool)instead.InnerClasses(int nameIndex, int length, java.io.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, java.lang.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, java.lang.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, java.io.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.LocalVariable(java.io.DataInput file, ConstantPool constantPool)Constructs object from file stream.LocalVariableTable(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.LocalVariableTable(int nameIndex, int length, LocalVariable[] localVariableTable, ConstantPool constantPool)LocalVariableTypeTable(int nameIdx, int len, java.io.DataInput input, ConstantPool cpool)LocalVariableTypeTable(int nameIndex, int length, LocalVariable[] localVariableTypeTable, ConstantPool constantPool)Method(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool)Constructs a Method.Method(java.io.DataInput file, ConstantPool constantPool)Constructs object from file stream.MethodParameters(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Module(int nameIndex, int length, java.io.DataInput dataInput, ConstantPool constantPool)Constructs object from input stream.ModuleMainClass(int nameIndex, int length, int mainClassIndex, ConstantPool constantPool)ModuleMainClass(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.ModulePackages(int nameIndex, int length, int[] packageIndexTable, ConstantPool constantPool)ModulePackages(int nameIndex, int length, java.io.DataInput dataInput, ConstantPool constantPool)Constructs object from input stream.NestHost(int nameIndex, int length, int hostClassIndex, ConstantPool constantPool)NestHost(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.NestMembers(int nameIndex, int length, int[] classes, ConstantPool constantPool)NestMembers(int nameIndex, int length, java.io.DataInput dataInput, ConstantPool constantPool)Constructs object from input stream.ParameterAnnotationEntry(java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.ParameterAnnotations(byte parameterAnnotationType, int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs a new instance.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)PMGClass(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.Record(int nameIndex, int length, java.io.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(java.io.DataInput input, ConstantPool constantPool)Constructs a new instance from an input stream.RuntimeInvisibleAnnotations(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs a new instance.RuntimeInvisibleParameterAnnotations(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs a new instance.RuntimeVisibleAnnotations(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs a new instance.RuntimeVisibleParameterAnnotations(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs a new instance.Signature(int nameIndex, int length, int signatureIndex, ConstantPool constantPool)Signature(int nameIndex, int length, java.io.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)SourceFile(int nameIndex, int length, java.io.DataInput input, ConstantPool constantPool)Constructs object from input stream.StackMap(int nameIndex, int length, java.io.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)instead.StackMapEntry(int tag, int byteCodeOffset, StackMapType[] typesOfLocals, StackMapType[] typesOfStackItems, ConstantPool constantPool)Create an instanceStackMapEntry(java.io.DataInput dataInput, ConstantPool constantPool)Constructs object from input stream.StackMapType(byte type, int index, ConstantPool constantPool)StackMapType(java.io.DataInput file, ConstantPool constantPool)Constructs object from file stream.Synthetic(int nameIndex, int length, byte[] bytes, ConstantPool constantPool)Synthetic(int nameIndex, int length, java.io.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.Unknown(int nameIndex, int length, java.io.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 ConstantPool Modifier and Type Method Description ConstantPoolConstantPoolGen. getConstantPool()Gets the intermediate constant pool.ConstantPoolConstantPoolGen. getFinalConstantPool()Gets the constant pool with proper length.Methods in org.apache.bcel.generic with parameters of type ConstantPool Modifier and Type Method Description java.lang.StringCPInstruction. toString(ConstantPool cp)java.lang.StringFieldInstruction. toString(ConstantPool cp)java.lang.StringInstruction. toString(ConstantPool cp)Gets the mnemonic for instruction with symbolic references resolved.java.lang.StringInvokeInstruction. toString(ConstantPool cp)java.lang.StringINVOKEINTERFACE. toString(ConstantPool cp)java.lang.StringMULTIANEWARRAY. toString(ConstantPool cp)Constructors in org.apache.bcel.generic with parameters of type ConstantPool Constructor Description ConstantPoolGen(ConstantPool cp)Constructs a new instance with the given constant pool. -
Uses of ConstantPool in org.apache.bcel.util
Fields in org.apache.bcel.util declared as ConstantPool Modifier and Type Field Description private ConstantPoolAttributeHTML. constantPoolprivate static ConstantPoolClass2HTML. constantPoolprivate ConstantPoolCodeHTML. constantPoolprivate ConstantPoolConstantHTML. constantPoolConstructors in org.apache.bcel.util with parameters of type ConstantPool Constructor Description AttributeHTML(java.lang.String dir, java.lang.String className, ConstantPool constantPool, ConstantHTML constantHtml, java.nio.charset.Charset charset)CodeHTML(java.lang.String dir, java.lang.String className, Method[] methods, ConstantPool constantPool, ConstantHTML constantHtml, java.nio.charset.Charset charset)ConstantHTML(java.lang.String dir, java.lang.String className, java.lang.String classPackage, Method[] methods, ConstantPool constantPool, java.nio.charset.Charset charset) -
Uses of ConstantPool in org.apache.bcel.verifier.statics
Fields in org.apache.bcel.verifier.statics declared as ConstantPool Modifier and Type Field Description private ConstantPoolPass2Verifier.CPESSC_Visitor. cpprivate ConstantPoolPass2Verifier.FAMRAV_Visitor. cpprivate ConstantPoolPass2Verifier.InnerClassDetector. cpMethods in org.apache.bcel.verifier.statics with parameters of type ConstantPool Modifier and Type Method Description voidPass2Verifier.CPESSC_Visitor. visitConstantPool(ConstantPool obj)voidStringRepresentation. visitConstantPool(ConstantPool obj)
-