Module xl.vmx

Class RoutineBase

java.lang.Object
de.grogra.xl.vmx.RoutineBase
All Implemented Interfaces:
Routine

public abstract class RoutineBase extends Object implements Routine
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RoutineBase(int id, boolean javaParams, int paramSize, int jframeSize, int frameSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.grogra.xl.vmx.Routine

    execute
  • 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 interface Routine
      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 interface Routine
      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 interface Routine
      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 interface Routine
      Returns:
      the size of the frame in terms of stack elements