Interface WhileLoopTree
- All Superinterfaces:
ConditionalLoopTree, LoopTree, StatementTree, Tree
A tree node for a 'while' loop statement.
For example:
while ( condition )
statement
- Since:
- 9
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe condition expression of this 'while' statement.The statement contained in this 'while' statement.Methods inherited from interface Tree
accept, getEndPosition, getKind, getStartPosition
-
Method Details
-
getCondition
ExpressionTree getCondition()The condition expression of this 'while' statement.- Specified by:
getConditionin interfaceConditionalLoopTree- Returns:
- the condition expression
-
getStatement
StatementTree getStatement()The statement contained in this 'while' statement.- Specified by:
getStatementin interfaceLoopTree- Returns:
- the statement contained
-