Top Description Fields Constructors Methods
org.aspectj.apache.bcel.generic

public Class InvokeInstruction

extends FieldOrMethod
Class Inheritance
Known Direct Subclasses
org.aspectj.apache.bcel.generic.INVOKEINTERFACE, org.aspectj.apache.bcel.generic.InvokeDynamic
Imports
java.util.StringTokenizer, org.aspectj.apache.bcel.Constants, org.aspectj.apache.bcel.classfile.Constant, .ConstantPool

Super class for the INVOKExxx family of instructions.
Author
M. Dahm
Version
$Id: InvokeInstruction.java,v 1.6 2009/10/05 17:35:36 aclement Exp $

Field Summary

Inherited from org.aspectj.apache.bcel.generic.FieldOrMethod:
namesignature

Constructor Summary

AccessConstructor and Description
public
InvokeInstruction(short opcode, int
to constant pool
index
)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

Number of words consumed from stack by this instruction
consumeStack
(ConstantPool cpg)

Overrides org.aspectj.apache.bcel.generic.Instruction.consumeStack.

Also works for instructions whose stack effect depends on the constant pool entry they reference.
public Type[]

Returns:

argument types of referenced method.
getArgumentTypes
(ConstantPool cpg)

public String

Returns:

name of referenced method.
getMethodName
(ConstantPool cpg)

public Type

Returns:

return type of referenced method.
getReturnType
(ConstantPool cpg)

public Type

Returns:

return type of referenced method.
getType
(ConstantPool cpg)

Overrides org.aspectj.apache.bcel.generic.InstructionCP.getType.

public int

Returns:

Number of words produced onto stack by this instruction
produceStack
(ConstantPool cpg)

Overrides org.aspectj.apache.bcel.generic.Instruction.produceStack.

Also works for instructions whose stack effect depends on the constant pool entry they reference.
public String

Returns:

mnemonic for instruction with symbolic references resolved
toString
(ConstantPool cp)

Overrides org.aspectj.apache.bcel.generic.InstructionCP.toString.

Inherited from org.aspectj.apache.bcel.generic.FieldOrMethod:
getClassNamegetClassTypegetLoadClassTypegetNamegetSignature

Constructor Detail

InvokeInstructionback to summary
public InvokeInstruction(short opcode, int index)
Parameters
index:int

to constant pool

Method Detail

consumeStackback to summary
public int consumeStack(ConstantPool cpg)

Overrides org.aspectj.apache.bcel.generic.Instruction.consumeStack.

Also works for instructions whose stack effect depends on the constant pool entry they reference.

Returns:int

Number of words consumed from stack by this instruction

getArgumentTypesback to summary
public Type[] getArgumentTypes(ConstantPool cpg)
Returns:Type[]

argument types of referenced method.

getMethodNameback to summary
public String getMethodName(ConstantPool cpg)
Returns:String

name of referenced method.

getReturnTypeback to summary
public Type getReturnType(ConstantPool cpg)
Returns:Type

return type of referenced method.

getTypeback to summary
public Type getType(ConstantPool cpg)

Overrides org.aspectj.apache.bcel.generic.InstructionCP.getType.

Returns:Type

return type of referenced method.

produceStackback to summary
public int produceStack(ConstantPool cpg)

Overrides org.aspectj.apache.bcel.generic.Instruction.produceStack.

Also works for instructions whose stack effect depends on the constant pool entry they reference.

Returns:int

Number of words produced onto stack by this instruction

toStringback to summary
public String toString(ConstantPool cp)

Overrides org.aspectj.apache.bcel.generic.InstructionCP.toString.

Returns:String

mnemonic for instruction with symbolic references resolved