org.lightwolf
Class MethodFrame

java.lang.Object
  extended by org.lightwolf.MethodFrame
All Implemented Interfaces:
Serializable

public final class MethodFrame
extends Object
implements Serializable

An internal class invoked by enhanced flow-methods. This class saves the values of local variables and parameters of a stack frame. It is created for internal use and its interface may change dramatically in future versions.

Author:
Fernando Colombo
See Also:
Serialized Form

Field Summary
static int ACTIVE
           
static int DEAD
           
static int INVOKING
           
static int LEAVING_METHOD
           
static int LEAVING_THREAD
           
static int RESTORING
           
 
Method Summary
static MethodFrame enter(Object owner, String name, String desc)
           
 void exit()
           
 void exit(Throwable e)
           
 boolean getBoolean(int vIndex)
           
 byte getByte(int vIndex)
           
 char getChar(int vIndex)
           
 double getDouble(int vIndex)
           
 float getFloat(int vIndex)
           
 Flow getFlow()
           
 int getInt(int vIndex)
           
 long getLong(int vIndex)
           
 String getMethodDesc()
           
 String getMethodName()
           
 Class<?>[] getMethodParameterTypes()
           
 Class<?> getMethodReturnType()
           
 Object getObject(int objIndex)
           
 int getObjectCount()
           
 int getPrimitiveCount()
           
 MethodFrame getPrior()
           
 boolean getResultBoolean()
           
 byte getResultByte()
           
 char getResultChar()
           
 double getResultDouble()
           
 float getResultFloat()
           
 int getResultInt()
           
 long getResultLong()
           
 Object getResultObject()
           
 short getResultShort()
           
 MethodFrame getRoot()
           
 short getShort(int vIndex)
           
 Class<?> getTargetClass()
           
 boolean isLeaving()
           
 void monitorEnter(Object o)
           
 void monitorExit(Object o)
           
 MethodFrame notifyInvoke(int point, int varCount, int objVarCount)
           
 MethodFrame prepare(int varTop, int objVarTop)
           
 boolean restoreBoolean()
           
 byte restoreByte()
           
 char restoreChar()
           
 double restoreDouble()
           
 float restoreFloat()
           
 int restoreInt()
           
 long restoreLong()
           
 Object restoreObject()
           
 short restoreShort()
           
 int resumePoint()
           
 MethodFrame save(boolean z)
           
 MethodFrame save(byte b)
           
 MethodFrame save(char c)
           
 MethodFrame save(double d)
           
 MethodFrame save(float f)
           
 MethodFrame save(int i)
           
 MethodFrame save(long l)
           
 MethodFrame save(Object o)
           
 MethodFrame save(short s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTIVE

public static final int ACTIVE
See Also:
Constant Field Values

INVOKING

public static final int INVOKING
See Also:
Constant Field Values

RESTORING

public static final int RESTORING
See Also:
Constant Field Values

DEAD

public static final int DEAD
See Also:
Constant Field Values

LEAVING_METHOD

public static final int LEAVING_METHOD
See Also:
Constant Field Values

LEAVING_THREAD

public static final int LEAVING_THREAD
See Also:
Constant Field Values
Method Detail

enter

public static MethodFrame enter(Object owner,
                                String name,
                                String desc)

toString

public String toString()
Overrides:
toString in class Object

exit

public void exit()

exit

public void exit(Throwable e)
          throws Throwable
Throws:
Throwable

isLeaving

public boolean isLeaving()

monitorEnter

public void monitorEnter(Object o)

monitorExit

public void monitorExit(Object o)

getPrimitiveCount

public int getPrimitiveCount()

getObjectCount

public int getObjectCount()

getPrior

public MethodFrame getPrior()

getRoot

public MethodFrame getRoot()

save

public MethodFrame save(char c)

save

public MethodFrame save(boolean z)

save

public MethodFrame save(byte b)

save

public MethodFrame save(short s)

save

public MethodFrame save(int i)

save

public MethodFrame save(long l)

save

public MethodFrame save(float f)

save

public MethodFrame save(double d)

save

public MethodFrame save(Object o)

getChar

public char getChar(int vIndex)

getBoolean

public boolean getBoolean(int vIndex)

getByte

public byte getByte(int vIndex)

getShort

public short getShort(int vIndex)

getInt

public int getInt(int vIndex)

getLong

public long getLong(int vIndex)

getFloat

public float getFloat(int vIndex)

getDouble

public double getDouble(int vIndex)

getObject

public Object getObject(int objIndex)

restoreChar

public char restoreChar()

restoreBoolean

public boolean restoreBoolean()

restoreByte

public byte restoreByte()

restoreShort

public short restoreShort()

restoreInt

public int restoreInt()

restoreLong

public long restoreLong()

restoreFloat

public float restoreFloat()

restoreDouble

public double restoreDouble()

restoreObject

public Object restoreObject()

getResultChar

public char getResultChar()

getResultBoolean

public boolean getResultBoolean()

getResultByte

public byte getResultByte()

getResultShort

public short getResultShort()

getResultInt

public int getResultInt()

getResultLong

public long getResultLong()

getResultFloat

public float getResultFloat()

getResultDouble

public double getResultDouble()

getResultObject

public Object getResultObject()

notifyInvoke

public MethodFrame notifyInvoke(int point,
                                int varCount,
                                int objVarCount)

resumePoint

public int resumePoint()

prepare

public MethodFrame prepare(int varTop,
                           int objVarTop)

getFlow

public Flow getFlow()

getTargetClass

public Class<?> getTargetClass()

getMethodName

public String getMethodName()

getMethodDesc

public String getMethodDesc()

getMethodParameterTypes

public Class<?>[] getMethodParameterTypes()
                                   throws ClassNotFoundException
Throws:
ClassNotFoundException

getMethodReturnType

public Class<?> getMethodReturnType()
                             throws ClassNotFoundException
Throws:
ClassNotFoundException