-
- All Superinterfaces:
ConditionalLoopTree
,LoopTree
,StatementTree
,Tree
public interface DoWhileLoopTree extends ConditionalLoopTree
A tree node for a 'do' statement. For example:do statement while ( expression );
- Since:
- 9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressionTree
getCondition()
Returns the condition expression of this do-while statement.StatementTree
getStatement()
The statement contained within this do-while statement.-
Methods inherited from interface jdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
-
-
-
Method Detail
-
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
-
-