com.ibm.etools.cobol.application.model.cobol
Interface IfThenElseStmt

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

public interface IfThenElseStmt
extends Stmt

A representation of an IF statement in the PROCEDURE division. The END-IF keyword is not represented in the model.

The following features are supported:

See Also:
COBOLPackage.getIfThenElseStmt()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 ExprConditional getCondition()
          Returns the value of the 'Condition' containment reference.
 Branch getElse()
          Returns the value of the 'Else' containment reference.
 Branch getThen()
          Returns the value of the 'Then' containment reference.
 boolean isEndIfUsed()
          Returns the value of the 'End If Used' attribute.
 void setCondition(ExprConditional value)
          Sets the value of the 'Condition' containment reference.
 void setElse(Branch value)
          Sets the value of the 'Else' containment reference.
 void setEndIfUsed(boolean value)
          Sets the value of the 'End If Used' attribute.
 void setThen(Branch value)
          Sets the value of the 'Then' containment reference.
 
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

getCondition

ExprConditional getCondition()
Returns the value of the 'Condition' containment reference.

The value is the conditional expression following the IF keyword.

Returns:
the value of the 'Condition' containment reference.
See Also:
setCondition(ExprConditional), COBOLPackage.getIfThenElseStmt_Condition()

setCondition

void setCondition(ExprConditional value)
Sets the value of the 'Condition' containment reference.

Parameters:
value - the new value of the 'Condition' containment reference.
See Also:
getCondition()

getThen

Branch getThen()
Returns the value of the 'Then' containment reference.

The value is a representation of the statements in the THEN clause, or NEXT SENTENCE.

Returns:
the value of the 'Then' containment reference.
See Also:
setThen(Branch), COBOLPackage.getIfThenElseStmt_Then()

setThen

void setThen(Branch value)
Sets the value of the 'Then' containment reference.

Parameters:
value - the new value of the 'Then' containment reference.
See Also:
getThen()

getElse

Branch getElse()
Returns the value of the 'Else' containment reference.

The value is a representation of the statements in the ELSE clause, or NEXT SENTENCE.

Returns:
the value of the 'Else' containment reference.
See Also:
setElse(Branch), COBOLPackage.getIfThenElseStmt_Else()

setElse

void setElse(Branch value)
Sets the value of the 'Else' containment reference.

Parameters:
value - the new value of the 'Else' containment reference.
See Also:
getElse()

isEndIfUsed

boolean isEndIfUsed()
Returns the value of the 'End If Used' attribute.

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

Returns:
the value of the 'End If Used' attribute.
See Also:
setEndIfUsed(boolean), COBOLPackage.getIfThenElseStmt_EndIfUsed()

setEndIfUsed

void setEndIfUsed(boolean value)
Sets the value of the 'End If Used' attribute.

Parameters:
value - the new value of the 'End If Used' attribute.
See Also:
isEndIfUsed()