Package | Description |
---|---|
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.structurals |
Provides a PassVerifier class mostly used internally by JustIce, yielding a control flow graph for public use as
a nice side effect.
|
Modifier and Type | Field | Description |
---|---|---|
static ObjectType |
Type.CLASS |
|
static ObjectType |
Type.OBJECT |
|
static ObjectType |
Type.STRING |
|
static ObjectType |
Type.STRINGBUFFER |
|
static ObjectType |
Type.THROWABLE |
Modifier and Type | Method | Description |
---|---|---|
ObjectType |
CodeExceptionGen.getCatchType() |
Gets the type of the Exception to catch, 'null' for ANY.
|
ObjectType |
FieldOrMethod.getClassType(ConstantPoolGen cpg) |
Deprecated.
If the instruction references an array class,
the ObjectType returned will be invalid.
|
ObjectType |
ANEWARRAY.getLoadClassType(ConstantPoolGen cpg) |
|
ObjectType |
CHECKCAST.getLoadClassType(ConstantPoolGen cpg) |
|
ObjectType |
FieldOrMethod.getLoadClassType(ConstantPoolGen cpg) |
|
ObjectType |
INSTANCEOF.getLoadClassType(ConstantPoolGen cpg) |
|
ObjectType |
LoadClass.getLoadClassType(ConstantPoolGen cpg) |
Returns the ObjectType of the referenced class or interface
that may be loaded and resolved.
|
ObjectType |
MULTIANEWARRAY.getLoadClassType(ConstantPoolGen cpg) |
|
ObjectType |
NEW.getLoadClassType(ConstantPoolGen cpg) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
ObjectType.accessibleTo(ObjectType accessor) |
Java Virtual Machine Specification edition 2, § 5.4.4 Access Control
|
int |
ConstantPoolGen.addClass(ObjectType type) |
Add a new Class reference to the ConstantPool for a given type.
|
CodeExceptionGen |
MethodGen.addExceptionHandler(InstructionHandle start_pc,
InstructionHandle end_pc,
InstructionHandle handler_pc,
ObjectType catch_type) |
Add an exception handler, i.e., specify region where a handler is active and an
instruction where the actual handling is done.
|
NEW |
InstructionFactory.createNew(ObjectType t) |
|
void |
CodeExceptionGen.setCatchType(ObjectType catch_type) |
Sets the type of the Exception to catch.
|
boolean |
ObjectType.subclassOf(ObjectType superclass) |
Return true if this type is a subclass of given ObjectType.
|
Constructor | Description |
---|---|
AnnotationEntryGen(ObjectType type,
java.util.List elements,
boolean vis,
ConstantPoolGen cpool) |
|
ClassElementValueGen(ObjectType t,
ConstantPoolGen cpool) |
|
CodeExceptionGen(InstructionHandle start_pc,
InstructionHandle end_pc,
InstructionHandle handler_pc,
ObjectType catch_type) |
Add an exception handler, i.e., specify region where a handler is active and an
instruction where the actual handling is done.
|
EnumElementValueGen(ObjectType t,
java.lang.String value,
ConstantPoolGen cpool) |
Modifier and Type | Method | Description |
---|---|---|
ObjectType |
ExceptionHandler.getExceptionType() |
Returns the type of the exception that's handled.
|
ObjectType |
UninitializedObjectType.getInitialized() |
Returns the ObjectType of the same class as the one of the uninitialized object
represented by this UninitializedObjectType instance.
|
Constructor | Description |
---|---|
OperandStack(int maxStack,
ObjectType obj) |
Creates an otherwise empty stack with a maximum of maxStack slots and
the ObjectType 'obj' at the top.
|
UninitializedObjectType(ObjectType t) |
Creates a new instance.
|