org.objectweb.fractal.aokell.lib.asm
Class SPObject

java.lang.Object
  extended by org.objectweb.fractal.aokell.lib.asm.SPObject
All Implemented Interfaces:
ISignatureParameter

public class SPObject
extends Object
implements ISignatureParameter

This class represents a Object type in a signature string. All instances of this class are equivalent. Hence this class can not be instantiated and provides only a singleton instance of itself.

Author:
Lionel Seinturier

Field Summary
static SPObject singleton
           
 
Method Summary
 int getLoadOpCode()
          Return the LOAD opcode that corresponds to this type.
 int getReturnOpCode()
          Return the RETURN opcode that corresponds to this type.
 int stackSize()
          Return the size occupied by this opcode on the stack.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

singleton

public static final SPObject singleton
Method Detail

getLoadOpCode

public int getLoadOpCode()
Description copied from interface: ISignatureParameter
Return the LOAD opcode that corresponds to this type.

Specified by:
getLoadOpCode in interface ISignatureParameter

getReturnOpCode

public int getReturnOpCode()
Description copied from interface: ISignatureParameter
Return the RETURN opcode that corresponds to this type.

Specified by:
getReturnOpCode in interface ISignatureParameter

stackSize

public int stackSize()
Description copied from interface: ISignatureParameter
Return the size occupied by this opcode on the stack.

Specified by:
stackSize in interface ISignatureParameter

toString

public String toString()
Overrides:
toString in class Object