java.lang.Object
de.grogra.xl.vmx.RoutineBase
- All Implemented Interfaces:
Routine
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRoutineBase(int id, boolean javaParams, int paramSize, int jframeSize, int frameSize) -
Method Summary
Modifier and TypeMethodDescriptionintComputes the number of VMXState stack elements for the frame of this routine.intComputes the number of VMXState stack elements for the Java frame of this routine.intComputes the number of VMXState stack elements for the parameters of this routine.booleanDetermines whether this routine expects its parameters on the Java frame or the normal frame.
-
Field Details
-
id
protected final int id
-
-
Constructor Details
-
RoutineBase
public RoutineBase(int id, boolean javaParams, int paramSize, int jframeSize, int frameSize)
-
-
Method Details
-
hasJavaParameters
public boolean hasJavaParameters()Description copied from interface:RoutineDetermines whether this routine expects its parameters on the Java frame or the normal frame.- Specified by:
hasJavaParametersin interfaceRoutine- Returns:
trueiff parameters are expected on the Java frame
-
getParameterSize
public int getParameterSize()Description copied from interface:RoutineComputes the number of VMXState stack elements for the parameters of this routine.- Specified by:
getParameterSizein interfaceRoutine- Returns:
- the number of stack elements for parameters
-
getJavaFrameSize
public int getJavaFrameSize()Description copied from interface:RoutineComputes the number of VMXState stack elements for the Java frame of this routine. This includes the parameters, if any.- Specified by:
getJavaFrameSizein interfaceRoutine- Returns:
- the size of the Java frame in terms of stack elements
-
getFrameSize
public int getFrameSize()Description copied from interface:RoutineComputes the number of VMXState stack elements for the frame of this routine. This includes the parameters, if any.- Specified by:
getFrameSizein interfaceRoutine- Returns:
- the size of the frame in terms of stack elements
-