All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.generic.InvokeInstruction

java.lang.Object
   |
   +----de.fub.bytecode.generic.Instruction
           |
           +----de.fub.bytecode.generic.CPInstruction
                   |
                   +----de.fub.bytecode.generic.FieldOrMethod
                           |
                           +----de.fub.bytecode.generic.InvokeInstruction

public abstract class InvokeInstruction
extends FieldOrMethod
implements ExceptionThrower
Super class for the INVOKExxx family of instructions.

Version:
$Id: InvokeInstruction.java,v 1.8 1999/09/22 13:00:11 dahm Exp $
Author:
M. Dahm

Constructor Index

 o InvokeInstruction(short, int)

Method Index

 o consumeStack(ConstantPoolGen)
Also works for instructions whose stack effect depends on the constant pool entry they reference.
 o getArgumentTypes(ConstantPoolGen)
 o getExceptions()
 o getMethodName(ConstantPoolGen)
 o getReturnType(ConstantPoolGen)
 o getType(ConstantPoolGen)
 o produceStack(ConstantPoolGen)
Also works for instructions whose stack effect depends on the constant pool entry they reference.
 o toString(ConstantPool)

Constructors

 o InvokeInstruction
 protected InvokeInstruction(short tag,
                             int index)
Parameters:
index - to constant pool

Methods

 o toString
 public String toString(ConstantPool cp)
Returns:
mnemonic for instruction with symbolic references resolved
Overrides:
toString in class CPInstruction
 o consumeStack
 public int consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the constant pool entry they reference.

Returns:
Number of words consumed from stack by this instruction
Overrides:
consumeStack in class Instruction
 o produceStack
 public int produceStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the constant pool entry they reference.

Returns:
Number of words produced onto stack by this instruction
Overrides:
produceStack in class Instruction
 o getType
 public Type getType(ConstantPoolGen cpg)
Returns:
return type of referenced method.
Overrides:
getType in class CPInstruction
 o getMethodName
 public String getMethodName(ConstantPoolGen cpg)
Returns:
name of referenced method.
 o getReturnType
 public Type getReturnType(ConstantPoolGen cpg)
Returns:
return type of referenced method.
 o getArgumentTypes
 public Type[] getArgumentTypes(ConstantPoolGen cpg)
Returns:
argument types of referenced method.

All Packages  Class Hierarchy  This Package  Previous  Next  Index