public interface IfThenElseStmt extends Stmt
The following features are supported:
COBOLPackage.getIfThenElseStmt()| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
copyright |
| Modifier and Type | Method and Description |
|---|---|
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. |
getBeginColumn, getBeginFile, getBeginLine, getEndColumn, getEndFile, getEndLine, getParent, getTag, setBeginColumn, setBeginFile, setBeginLine, setEndColumn, setEndFile, setEndLine, setParent, setTagstatic final java.lang.String copyright
ExprConditional getCondition()
The value is the conditional expression following the IF keyword.
setCondition(ExprConditional),
COBOLPackage.getIfThenElseStmt_Condition()void setCondition(ExprConditional value)
Condition' containment reference.
value - the new value of the 'Condition' containment reference.getCondition()Branch getThen()
The value is a representation of the statements in the THEN clause, or NEXT SENTENCE.
setThen(Branch),
COBOLPackage.getIfThenElseStmt_Then()void setThen(Branch value)
Then' containment reference.
value - the new value of the 'Then' containment reference.getThen()Branch getElse()
The value is a representation of the statements in the ELSE clause, or NEXT SENTENCE.
setElse(Branch),
COBOLPackage.getIfThenElseStmt_Else()void setElse(Branch value)
Else' containment reference.
value - the new value of the 'Else' containment reference.getElse()boolean isEndIfUsed()
The value is true if END-IF is present; false otherwise.
setEndIfUsed(boolean),
COBOLPackage.getIfThenElseStmt_EndIfUsed()void setEndIfUsed(boolean value)
End If Used' attribute.
value - the new value of the 'End If Used' attribute.isEndIfUsed()