APIdia Launch Partner
Top Description Methods
com.sun.source.tree

public Interface DoWhileLoopTree

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

A tree node for a do statement. For example:
  do
      statement
  while ( expression );
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.13 The do 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