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()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 Environment getEnvironment()
          Returns the value of the 'Environment' containment reference.
 MnemonicName getEnvironmentName()
          Returns the value of the 'Environment Name' reference.
 void setEnvironment(Environment value)
          Sets the value of the 'Environment' containment reference.
 void setEnvironmentName(MnemonicName value)
          Sets the value of the 'Environment Name' reference.
 
Methods inherited from interface com.ibm.etools.cobol.application.model.cobol.AcceptStmt
getRef, setRef
 
Methods inherited from interface com.ibm.etools.cobol.application.model.cobol.ASTNode
getBeginColumn, getBeginFile, getBeginLine, getEndColumn, getEndFile, getEndLine, getParent, getTag, setBeginColumn, setBeginFile, setBeginLine, setEndColumn, setEndFile, setEndLine, setParent, setTag
 
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
 

Field Detail

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
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()

setEnvironmentName

void setEnvironmentName(MnemonicName value)
Sets the value of the 'Environment Name' reference.

Parameters:
value - the new value of the 'Environment Name' reference.
See Also:
getEnvironmentName()

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()