src/jdk.compiler/share/classes/com/sun/source/tree/WhileLoopTree.java

Print this page




  24  */
  25 
  26 package com.sun.source.tree;
  27 
  28 /**
  29  * A tree node for a {@code while} loop statement.
  30  *
  31  * For example:
  32  * <pre>
  33  *   while ( <em>condition</em> )
  34  *     <em>statement</em>
  35  * </pre>
  36  *
  37  *
  38  * @jls section 14.12
  39  *
  40  * @author Peter von der Ah&eacute;
  41  * @author Jonathan Gibbons
  42  * @since 1.6
  43  */
  44 @jdk.Exported
  45 public interface WhileLoopTree extends StatementTree {
  46     /**
  47      * Returns the condition of the loop.
  48      * @return the condition
  49      */
  50     ExpressionTree getCondition();
  51 
  52     /**
  53      * Returns the body of the loop.
  54      * @return the body of the loop
  55      */
  56     StatementTree getStatement();
  57 }


  24  */
  25 
  26 package com.sun.source.tree;
  27 
  28 /**
  29  * A tree node for a {@code while} loop statement.
  30  *
  31  * For example:
  32  * <pre>
  33  *   while ( <em>condition</em> )
  34  *     <em>statement</em>
  35  * </pre>
  36  *
  37  *
  38  * @jls section 14.12
  39  *
  40  * @author Peter von der Ah&eacute;
  41  * @author Jonathan Gibbons
  42  * @since 1.6
  43  */

  44 public interface WhileLoopTree extends StatementTree {
  45     /**
  46      * Returns the condition of the loop.
  47      * @return the condition
  48      */
  49     ExpressionTree getCondition();
  50 
  51     /**
  52      * Returns the body of the loop.
  53      * @return the body of the loop
  54      */
  55     StatementTree getStatement();
  56 }