Compiler Tree API

com.sun.source.tree
Interface EnhancedForLoopTree

All Superinterfaces:
StatementTree, Tree

public interface EnhancedForLoopTree
extends StatementTree

A tree node for an "enhanced" 'for' loop statement. For example:

   for ( variable : expression )
       statement
 

Since:
1.6
See Also:
"The Java Language Specification, 3rd ed, section 14.14.2"

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.source.tree.Tree
Tree.Kind
 
Method Summary
 ExpressionTree getExpression()
           
 StatementTree getStatement()
           
 VariableTree getVariable()
           
 
Methods inherited from interface com.sun.source.tree.Tree
accept, getKind
 

Method Detail

getVariable

VariableTree getVariable()

getExpression

ExpressionTree getExpression()

getStatement

StatementTree getStatement()

Compiler Tree API

Submit a bug or feature
Copyright © 2005, 2015, Oracle and/or its affiliates. All rights reserved.