org.apache.bcel.generic
Class InvokeInstruction
- Cloneable, ExceptionThrower, IndexedInstruction, LoadClass, Serializable, StackConsumer, StackProducer, TypedInstruction
public abstract class InvokeInstruction
Super class for the INVOKExxx family of instructions.
Version:
- M. Dahm
accept , consumeStack , copy , dump , equals , getComparator , getLength , getName , getOpcode , initFromFile , produceStack , readInstruction , setComparator , toString , toString , toString |
InvokeInstruction
protected InvokeInstruction(short opcode,
int index)
index
- to constant pool
consumeStack
public int consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
- consumeStack in interface StackConsumer
- consumeStack in interface Instruction
- Number of words consumed from stack by this instruction
getArgumentTypes
public Type[] getArgumentTypes(ConstantPoolGen cpg)
- argument types of referenced method.
getMethodName
public String getMethodName(ConstantPoolGen cpg)
- name of referenced method.
produceStack
public int produceStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
- produceStack in interface StackProducer
- produceStack in interface Instruction
- Number of words produced onto stack by this instruction
toString
public String toString(ConstantPool cp)
- toString in interface CPInstruction
- mnemonic for instruction with symbolic references resolved