StatementTree
, Tree
public interface IfTree extends StatementTree
if
statement.
For example:
if ( condition ) thenStatement if ( condition ) thenStatement else elseStatement
Modifier and Type | Method | Description |
---|---|---|
ExpressionTree |
getCondition() |
Returns the condition of the if-statement.
|
StatementTree |
getElseStatement() |
Returns the statement to be executed if the condition is false,
or
null if there is no such statement. |
StatementTree |
getThenStatement() |
Returns the statement to be executed if the condition is true
|
ExpressionTree getCondition()
StatementTree getThenStatement()
StatementTree getElseStatement()
null
if there is no such statement.
Copyright © 2005, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-Ubuntu+0-9b139-1