com.ibm.etools.cobol.application.model.cobol

Interface ComputeStmt

  • All Superinterfaces:
    ArithStmt, ASTNode, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, Stmt


    public interface ComputeStmt
    extends ArithStmt
    A representation of a COMPUTE statement in the PROCEDURE division.

    The following features are supported:

    See Also:
    COBOLPackage.getComputeStmt()
    • Method Detail

      • getDestinations

        java.util.List getDestinations()
        Returns the value of the 'Destinations' containment reference list. The list contents are of type ArithOperand.

        The list contains the data items specified before the equals sign.

        Returns:
        the value of the 'Destinations' containment reference list.
        See Also:
        COBOLPackage.getComputeStmt_Destinations()
      • getExpr

        Expr getExpr()
        Returns the value of the 'Expr' containment reference.

        The value is the expression specified after the equals sign.

        Returns:
        the value of the 'Expr' containment reference.
        See Also:
        setExpr(Expr), COBOLPackage.getComputeStmt_Expr()
      • setExpr

        void setExpr(Expr value)
        Sets the value of the 'Expr' containment reference.
        Parameters:
        value - the new value of the 'Expr' containment reference.
        See Also:
        getExpr()
      • isEndComputeUsed

        boolean isEndComputeUsed()
        Returns the value of the 'End Compute Used' attribute.

        The value is true if END-COMPUTE is present; false otherwise.

        Returns:
        the value of the 'End Compute Used' attribute.
        See Also:
        setEndComputeUsed(boolean), COBOLPackage.getComputeStmt_EndComputeUsed()
      • setEndComputeUsed

        void setEndComputeUsed(boolean value)
        Sets the value of the 'End Compute Used' attribute.
        Parameters:
        value - the new value of the 'End Compute Used' attribute.
        See Also:
        isEndComputeUsed()