if statement.
For example:
if ( condition )
thenStatement
if ( condition )
thenStatement
else
elseStatement
| Modifier and Type | Method and Description |
|---|---|
| public ExpressionTree | |
| public StatementTree | Returns: the statement to be executed if the condition is falseReturns the statement to be executed if the condition is false,
or |
| public StatementTree | Returns: the statement to be executed if the condition is trueReturns the statement to be executed if the condition is true |
| getCondition | back to summary |
|---|---|
| public ExpressionTree getCondition() Returns the condition of the if-statement.
| |
| getElseStatement | back to summary |
|---|---|
| public StatementTree getElseStatement() Returns the statement to be executed if the condition is false,
or
| |
| getThenStatement | back to summary |
|---|---|
| public StatementTree getThenStatement() Returns the statement to be executed if the condition is true
| |