Interface Instruction

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      LineNumber getLineNumber()
      Returns the value of the 'Line Number' reference.
      Opcode getOpcode()
      Returns the value of the 'Opcode' attribute.
      CodeBlock getOwningBlock()
      Returns the value of the 'Owning Block' container reference.
      int getStackConsumption()
      Returns the value of the 'Stack Consumption' attribute.
      int getStackLevel()
      Returns the value of the 'Stack Level' attribute.
      int getStackProduction()
      Returns the value of the 'Stack Production' attribute.
      void setLineNumber​(LineNumber value)
      Sets the value of the 'Line Number' reference.
      void setOwningBlock​(CodeBlock value)
      Sets the value of the 'Owning Block' container reference.
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
    • Method Detail

      • setOwningBlock

        void setOwningBlock​(CodeBlock value)
        Sets the value of the 'Owning Block' container reference.
        Parameters:
        value - the new value of the 'Owning Block' container reference.
        See Also:
        getOwningBlock()
      • getOpcode

        Opcode getOpcode()
        Returns the value of the 'Opcode' attribute. The default value is "PUSH". The literals are from the enumeration Opcode.

        If the meaning of the 'Opcode' attribute isn't clear, there really should be more of a description here...

        Returns:
        the value of the 'Opcode' attribute.
        See Also:
        Opcode, EmftvmPackage.getInstruction_Opcode()
      • getStackProduction

        int getStackProduction()
        Returns the value of the 'Stack Production' attribute. The default value is "0".

        If the meaning of the 'Stack Production' attribute isn't clear, there really should be more of a description here...

        Returns:
        the value of the 'Stack Production' attribute.
        See Also:
        EmftvmPackage.getInstruction_StackProduction()
      • getStackConsumption

        int getStackConsumption()
        Returns the value of the 'Stack Consumption' attribute. The default value is "0".

        If the meaning of the 'Stack Consumption' attribute isn't clear, there really should be more of a description here...

        Returns:
        the value of the 'Stack Consumption' attribute.
        See Also:
        EmftvmPackage.getInstruction_StackConsumption()
      • getStackLevel

        int getStackLevel()
        Returns the value of the 'Stack Level' attribute. The default value is "0".

        Calculates the amount of elements on the stack after executing this instruction, also taking into account the execution of previous instructions in the code block.

        Returns:
        the value of the 'Stack Level' attribute.
        See Also:
        EmftvmPackage.getInstruction_StackLevel()
      • setLineNumber

        void setLineNumber​(LineNumber value)
        Sets the value of the 'Line Number' reference.
        Parameters:
        value - the new value of the 'Line Number' reference.
        See Also:
        getLineNumber()