-
- All Superinterfaces:
ConditionalLoopTree
,LoopTree
,StatementTree
,Tree
public interface WhileLoopTree extends ConditionalLoopTree
A tree node for a 'while' loop statement. For example:while ( condition ) statement
- Since:
- 9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressionTree
getCondition()
The condition expression of this 'while' statement.StatementTree
getStatement()
The statement contained in this 'while' statement.-
Methods inherited from interface jdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
-
-
-
Method Detail
-
getCondition
ExpressionTree getCondition()
The condition expression of this 'while' statement.- Specified by:
getCondition
in interfaceConditionalLoopTree
- Returns:
- the condition expression
-
getStatement
StatementTree getStatement()
The statement contained in this 'while' statement.- Specified by:
getStatement
in interfaceLoopTree
- Returns:
- the statement contained
-
-