Top Description Methods
com.sun.source.tree

public Interface WhileLoopTree

extends StatementTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCWhileLoop

A tree node for a while loop statement. For example:
  while ( condition )
    statement
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.12 The while Statement

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the condition
getCondition
()

Returns the condition of the loop.

public StatementTree

Returns:

the body of the loop
getStatement
()

Returns the body of the loop.

Method Detail

getConditionback to summary
public ExpressionTree getCondition()

Returns the condition of the loop.

Returns:ExpressionTree

the condition

getStatementback to summary
public StatementTree getStatement()

Returns the body of the loop.

Returns:StatementTree

the body of the loop