| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.bcel.generic.Instructionorg.apache.bcel.generic.CPInstructionorg.apache.bcel.generic.FieldOrMethodorg.apache.bcel.generic.InvokeInstructionpublic abstract class InvokeInstructionextends FieldOrMethodimplements ExceptionThrower, TypedInstruction, StackConsumer, StackProducerField Summary |
Fields inherited from class org.apache.bcel.generic.CPInstruction | |
index | |
Fields inherited from class org.apache.bcel.generic.Instruction | |
cmp, length, opcode | |
Constructor Summary | |
| |
| |
Method Summary | |
int |
|
Type[] | |
String | |
Type | |
Type |
|
int |
|
String |
|
Methods inherited from class org.apache.bcel.generic.FieldOrMethod | |
getClassName, getClassType, getLoadClassType, getName, getReferenceType, getSignature | |
Methods inherited from class org.apache.bcel.generic.CPInstruction | |
dump, getIndex, getType, initFromFile, setIndex, toString, toString | |
Methods inherited from class org.apache.bcel.generic.Instruction | |
accept, className, consumeStack, copy, dispose, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, setOpcode, toString, toString, toString | |
(package private) InvokeInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.
protected InvokeInstruction(short opcode,
int index)
- Parameters:
index- to constant pool
public int consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the constant pool entry they reference.
- Specified by:
- consumeStack in interface StackConsumer
- Overrides:
- consumeStack in interface Instruction
- Returns:
- Number of words consumed from stack by this instruction
public Type[] getArgumentTypes(ConstantPoolGen cpg)
- Returns:
- argument types of referenced method.
public Type getReturnType(ConstantPoolGen cpg)
- Returns:
- return type of referenced method.
public Type getType(ConstantPoolGen cpg)
- Specified by:
- getType in interface TypedInstruction
- getType in interface LoadClass
- Overrides:
- getType in interface CPInstruction
- Returns:
- return type of referenced method.
public int produceStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the constant pool entry they reference.
- Specified by:
- produceStack in interface StackProducer
- Overrides:
- produceStack in interface Instruction
- Returns:
- Number of words produced onto stack by this instruction
public String toString(ConstantPool cp)
- Overrides:
- toString in interface CPInstruction
- Returns:
- mnemonic for instruction with symbolic references resolved