org.apache.bcel.generic
Class InvokeInstruction
- Cloneable, ExceptionThrower, Node, java.io.Serializable, StackConsumer, StackProducer, TypedInstruction
public abstract class InvokeInstruction
Super class for the INVOKExxx family of instructions.
$Id: InvokeInstruction.java 152690 2001-10-29 19:59:54Z jvanzyl $
copy_, dump, getAttributes, getConstantPool, getName, getNameIndex, getSignature, getSignatureIndex, setAttributes, setConstantPool, setNameIndex, setSignatureIndex |
getAccessFlags, getModifiers, isAbstract, isAbstract, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isTransient, isTransient, isVolatile, isVolatile, setAccessFlags, setModifiers |
InvokeInstruction
protected InvokeInstruction(short opcode,
int index)
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
- 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
- Number of words produced onto stack by this instruction
toString
public String toString(ConstantPool cp)
- mnemonic for instruction with symbolic references resolved