StatementTree
, Tree
public interface EnhancedForLoopTree extends StatementTree
for
loop statement.
For example:
for ( variable : expression ) statement
Modifier and Type | Method | Description |
---|---|---|
ExpressionTree |
getExpression() |
Returns the expression yielding the values for the control variable.
|
StatementTree |
getStatement() |
Returns the body of the loop.
|
VariableTree |
getVariable() |
Returns the control variable for the loop.
|
VariableTree getVariable()
ExpressionTree getExpression()
StatementTree getStatement()
Copyright © 2005, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-Ubuntu+0-9b144-1ubuntu1