- All Superinterfaces:
ConditionalLoopTree
,LoopTree
,StatementTree
,Tree
A tree node for a 'do' statement.
For example:
do statement while ( expression );
- Since:
- 9
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the condition expression of this do-while statement.The statement contained within this do-while statement.Methods inherited from interface org.openjdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
Method Details
-
getCondition
ExpressionTree getCondition()Returns the condition expression of this do-while statement.- Specified by:
getCondition
in interfaceConditionalLoopTree
- Returns:
- the condition expression
-
getStatement
StatementTree getStatement()The statement contained within this do-while statement.- Specified by:
getStatement
in interfaceLoopTree
- Returns:
- the statement
-