java.lang.Object
de.grogra.xl.vmx.RoutineBase
- All Implemented Interfaces:
Routine
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRoutineBase
(int id, boolean javaParams, int paramSize, int jframeSize, int frameSize) -
Method Summary
Modifier and TypeMethodDescriptionint
Computes the number of VMXState stack elements for the frame of this routine.int
Computes the number of VMXState stack elements for the Java frame of this routine.int
Computes the number of VMXState stack elements for the parameters of this routine.boolean
Determines 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:Routine
Determines whether this routine expects its parameters on the Java frame or the normal frame.- Specified by:
hasJavaParameters
in interfaceRoutine
- Returns:
true
iff parameters are expected on the Java frame
-
getParameterSize
public int getParameterSize()Description copied from interface:Routine
Computes the number of VMXState stack elements for the parameters of this routine.- Specified by:
getParameterSize
in interfaceRoutine
- Returns:
- the number of stack elements for parameters
-
getJavaFrameSize
public int getJavaFrameSize()Description copied from interface:Routine
Computes the number of VMXState stack elements for the Java frame of this routine. This includes the parameters, if any.- Specified by:
getJavaFrameSize
in interfaceRoutine
- Returns:
- the size of the Java frame in terms of stack elements
-
getFrameSize
public int getFrameSize()Description copied from interface:Routine
Computes the number of VMXState stack elements for the frame of this routine. This includes the parameters, if any.- Specified by:
getFrameSize
in interfaceRoutine
- Returns:
- the size of the frame in terms of stack elements
-