Module xl.vmx

Class RoutineBase

  • All Implemented Interfaces:
    Routine

    public abstract class RoutineBase
    extends Object
    implements Routine
    • Field Detail

      • id

        protected final int id
    • Constructor Detail

      • RoutineBase

        public RoutineBase​(int id,
                           boolean javaParams,
                           int paramSize,
                           int jframeSize,
                           int frameSize)
    • Method Detail

      • 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