StatementTree
, Tree
public interface IfTree extends StatementTree
if ( condition ) thenStatement if ( condition ) thenStatement else elseStatement
Modifier and Type | Method | Description |
---|---|---|
ExpressionTree |
getCondition() |
Returns the condition expression of this 'if' statement.
|
StatementTree |
getElseStatement() |
Returns the then statement of this 'if' statement.
|
StatementTree |
getThenStatement() |
Returns the 'then' statement of this 'if' statement.
|
accept, getEndPosition, getKind, getStartPosition
ExpressionTree getCondition()
StatementTree getThenStatement()
StatementTree getElseStatement()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2014, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b153-1