public interface IfTree extends StatementTree
if
statement.
For example:
if ( condition ) thenStatement if ( condition ) thenStatement else elseStatement
Modifier and Type | Method and 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-internal+0-2016-01-17-105616.buildd.src