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

Interface AcceptDataTransferStmt

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


    public interface AcceptDataTransferStmt
    extends AcceptStmt
    A representation of an ACCEPT data transfer statement.

    For an ACCEPT statement for data transfer, if the value following FROM in the source code is a mnemonic-name-1, then the method getEnvironment() returns null. To get the environment type in this situation use the method getEnvironmentName().getEnvironmentType().

    The following features are supported:

    See Also:
    COBOLPackage.getAcceptDataTransferStmt()
    • Method Detail

      • getEnvironmentName

        MnemonicName getEnvironmentName()
        Returns the value of the 'Environment Name' reference.

        The value is the mnemonic name specified after the FROM keyword; if an environment name is specified after the FROM keyword, this method returns null.

        Returns:
        the value of the 'Environment Name' reference.
        See Also:
        setEnvironmentName(MnemonicName), COBOLPackage.getAcceptDataTransferStmt_EnvironmentName()
      • getEnvironment

        Environment getEnvironment()
        Returns the value of the 'Environment' containment reference.

        The value is the environment corresponding to the environment name specified after the FROM keyword. If a mnemonic name is specified after the FROM keyword, this method returns null.

        Returns:
        the value of the 'Environment' containment reference.
        See Also:
        setEnvironment(Environment), COBOLPackage.getAcceptDataTransferStmt_Environment()
      • setEnvironment

        void setEnvironment(Environment value)
        Sets the value of the 'Environment' containment reference.
        Parameters:
        value - the new value of the 'Environment' containment reference.
        See Also:
        getEnvironment()