Package | Description |
---|---|
org.apache.bcel.classfile |
This package contains the classes that describe the structure of a
Java class file and a class file parser.
|
org.apache.bcel.generic |
This package contains the "generic" part of the
Byte Code Engineering
Library, i.e., classes to dynamically modify class objects and
byte code instructions.
|
org.apache.bcel.verifier.statics |
Provides PassVerifier classes used internally by JustIce.
|
Modifier and Type | Field and Description |
---|---|
protected ConstantPool |
FieldOrMethod.constant_pool
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
protected ConstantPool |
Attribute.constant_pool
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
protected ConstantPool |
ElementValue.cpool
Deprecated.
(since 6.0) will be made private and final; do not access directly, use getter
|
Modifier and Type | Method and Description |
---|---|
ConstantPool |
ConstantPool.copy() |
ConstantPool |
LocalVariable.getConstantPool() |
ConstantPool |
AnnotationEntry.getConstantPool() |
ConstantPool |
JavaClass.getConstantPool() |
ConstantPool |
StackMapType.getConstantPool() |
ConstantPool |
FieldOrMethod.getConstantPool() |
ConstantPool |
StackMapEntry.getConstantPool() |
ConstantPool |
Attribute.getConstantPool() |
Modifier and Type | Method and Description |
---|---|
static 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.
|
protected FieldOrMethod |
FieldOrMethod.copy_(ConstantPool constantPool) |
Attribute |
ModuleMainClass.copy(ConstantPool constantPool) |
Attribute |
MethodParameters.copy(ConstantPool constantPool) |
Attribute |
AnnotationDefault.copy(ConstantPool constantPool) |
Attribute |
InnerClasses.copy(ConstantPool constantPool) |
Attribute |
Code.copy(ConstantPool constantPool) |
Method |
Method.copy(ConstantPool constantPool) |
Attribute |
Synthetic.copy(ConstantPool constantPool) |
Attribute |
ConstantValue.copy(ConstantPool constantPool) |
Attribute |
StackMap.copy(ConstantPool constantPool) |
Attribute |
PMGClass.copy(ConstantPool constantPool) |
Attribute |
ParameterAnnotations.copy(ConstantPool constantPool) |
Attribute |
LocalVariableTable.copy(ConstantPool constantPool) |
Attribute |
Signature.copy(ConstantPool constantPool) |
Attribute |
Deprecated.copy(ConstantPool constantPool) |
Attribute |
RuntimeInvisibleAnnotations.copy(ConstantPool constantPool) |
Attribute |
NestHost.copy(ConstantPool constantPool) |
Attribute |
LineNumberTable.copy(ConstantPool constantPool) |
Attribute |
NestMembers.copy(ConstantPool constantPool) |
Field |
Field.copy(ConstantPool constantPool) |
Attribute |
LocalVariableTypeTable.copy(ConstantPool constantPool) |
Attribute |
Unknown.copy(ConstantPool constantPool) |
Attribute |
Annotations.copy(ConstantPool constantPool) |
Attribute |
Module.copy(ConstantPool constantPool) |
BootstrapMethods |
BootstrapMethods.copy(ConstantPool constantPool) |
Attribute |
ModulePackages.copy(ConstantPool constantPool) |
Attribute |
RuntimeVisibleAnnotations.copy(ConstantPool constantPool) |
Attribute |
ExceptionTable.copy(ConstantPool constantPool) |
Attribute |
EnclosingMethod.copy(ConstantPool constantPool) |
Attribute |
SourceFile.copy(ConstantPool constantPool) |
abstract Attribute |
Attribute.copy(ConstantPool constantPool) |
Attribute |
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.
|
Attribute |
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.
|
String |
ConstantPackage.getBytes(ConstantPool cp) |
String |
ConstantClass.getBytes(ConstantPool cp) |
String |
ConstantModule.getBytes(ConstantPool cp) |
String |
ConstantString.getBytes(ConstantPool cp) |
String |
ConstantCP.getClass(ConstantPool cp) |
Object |
ConstantObject.getConstantValue(ConstantPool cp) |
Object |
ConstantPackage.getConstantValue(ConstantPool cp) |
Object |
ConstantDouble.getConstantValue(ConstantPool cp) |
Object |
ConstantLong.getConstantValue(ConstantPool cp) |
Object |
ConstantClass.getConstantValue(ConstantPool cp) |
Object |
ConstantInteger.getConstantValue(ConstantPool cp) |
Object |
ConstantModule.getConstantValue(ConstantPool cp) |
Object |
ConstantString.getConstantValue(ConstantPool cp) |
Object |
ConstantFloat.getConstantValue(ConstantPool cp) |
String |
ConstantNameAndType.getName(ConstantPool cp) |
String |
MethodParameter.getParameterName(ConstantPool constantPool)
Returns the name of the parameter.
|
String |
ConstantNameAndType.getSignature(ConstantPool cp) |
static AnnotationEntry |
AnnotationEntry.read(DataInput input,
ConstantPool constantPool,
boolean isRuntimeVisible)
Factory method to create an AnnotionEntry from a DataInput
|
static 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 an
element_value as an ElementValue . |
static ElementValue |
ElementValue.readElementValue(DataInput input,
ConstantPool cpool,
int arrayNesting)
Reads an
element_value as an ElementValue . |
void |
LocalVariable.setConstantPool(ConstantPool constantPool) |
void |
JavaClass.setConstantPool(ConstantPool constantPool) |
void |
StackMapType.setConstantPool(ConstantPool constantPool) |
void |
FieldOrMethod.setConstantPool(ConstantPool constantPool) |
void |
StackMapEntry.setConstantPool(ConstantPool constantPool) |
void |
Attribute.setConstantPool(ConstantPool constantPool) |
String |
InnerClass.toString(ConstantPool constantPool) |
String |
ModuleProvides.toString(ConstantPool constantPool) |
String |
ModuleExports.toString(ConstantPool constantPool) |
String |
CodeException.toString(ConstantPool cp) |
String |
ModuleRequires.toString(ConstantPool constantPool) |
String |
BootstrapMethod.toString(ConstantPool constantPool) |
String |
ModuleOpens.toString(ConstantPool constantPool) |
String |
CodeException.toString(ConstantPool cp,
boolean verbose) |
void |
EmptyVisitor.visitConstantPool(ConstantPool obj) |
void |
Visitor.visitConstantPool(ConstantPool obj) |
void |
DescendingVisitor.visitConstantPool(ConstantPool cp) |
Constructor and Description |
---|
AnnotationDefault(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[] datums,
ConstantPool cpool) |
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) |
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) |
FieldOrMethod(DataInput file,
ConstantPool constantPool)
Construct object from file stream.
|
FieldOrMethod(DataInputStream file,
ConstantPool constantPool)
Deprecated.
(6.0) Use
FieldOrMethod(java.io.DataInput, ConstantPool) instead. |
FieldOrMethod(int accessFlags,
int nameIndex,
int signatureIndex,
Attribute[] attributes,
ConstantPool constantPool) |
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) |
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) |
PMGClass(int nameIndex,
int length,
int pmgIndex,
int pmgClassIndex,
ConstantPool constantPool) |
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) |
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, use
StackMapEntry(int, int, StackMapType[], StackMapType[], ConstantPool) instead |
StackMapEntry(int tag,
int byteCodeOffset,
StackMapType[] typesOfLocals,
StackMapType[] typesOfStackItems,
ConstantPool constantPool)
Create an instance
|
StackMapType(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.
|
Modifier and Type | Method and Description |
---|---|
ConstantPool |
ConstantPoolGen.getConstantPool() |
ConstantPool |
ConstantPoolGen.getFinalConstantPool() |
Modifier and Type | Method and Description |
---|---|
String |
MULTIANEWARRAY.toString(ConstantPool cp) |
String |
Instruction.toString(ConstantPool cp) |
String |
InvokeInstruction.toString(ConstantPool cp) |
String |
CPInstruction.toString(ConstantPool cp) |
String |
FieldInstruction.toString(ConstantPool cp) |
String |
INVOKEINTERFACE.toString(ConstantPool cp) |
Constructor and Description |
---|
ConstantPoolGen(ConstantPool cp)
Constructs a new instance with the given constant pool.
|
Modifier and Type | Method and Description |
---|---|
void |
StringRepresentation.visitConstantPool(ConstantPool obj) |
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.