alt.jiapi.reflect.instruction
Class Invocation

java.lang.Object
  extended by alt.jiapi.reflect.Instruction
      extended by alt.jiapi.reflect.instruction.CPInstruction
          extended by alt.jiapi.reflect.instruction.ReferencingInstruction
              extended by alt.jiapi.reflect.instruction.Invocation
All Implemented Interfaces:
java.lang.Cloneable

public class Invocation
extends ReferencingInstruction

This class represents a method invocation instruction.

Version:
$Revision: 1.17 $ $Date: 2006/01/31 11:11:42 $
Author:
Mika Riekkinen, Joni Suominen

Field Summary
 
Fields inherited from class alt.jiapi.reflect.instruction.CPInstruction
cp
 
Constructor Summary
Invocation(byte[] bytes, ConstantPool cp)
           
 
Method Summary
 java.lang.String getMethodName()
          Get the name of the target method.
 java.lang.String[] getParameterTypes()
          Gets names of each parameter types.
 java.lang.String getReturnType()
          Gets the return type.
 short stackConsumption()
          Get the stack consumption of this Invocation.
 short stackUsage()
          Count stack usage of this invocation.
 java.lang.String toString()
           
 
Methods inherited from class alt.jiapi.reflect.instruction.ReferencingInstruction
getClassName, getDescriptor, getInternalName, getName, getReferencedTypeName
 
Methods inherited from class alt.jiapi.reflect.instruction.CPInstruction
getConstantPool, getEntry, getIndex, replaceConstantPool
 
Methods inherited from class alt.jiapi.reflect.Instruction
getAttribute, getBytes, getOffset, getOpcode, length, setAttribute, setAttribute, setBytes, setOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Invocation

public Invocation(byte[] bytes,
                  ConstantPool cp)
Method Detail

getMethodName

public java.lang.String getMethodName()
Get the name of the target method.


getParameterTypes

public java.lang.String[] getParameterTypes()
Gets names of each parameter types.


getReturnType

public java.lang.String getReturnType()
Gets the return type.


stackConsumption

public short stackConsumption()
Get the stack consumption of this Invocation.

Overrides:
stackConsumption in class Instruction
Returns:
Stack consumption

stackUsage

public short stackUsage()
Count stack usage of this invocation.

Overrides:
stackUsage in class Instruction
Returns:
Stack usage

toString

public java.lang.String toString()
Overrides:
toString in class CPInstruction


Copyright © 2001. Documenation generated August 26 2011.