|
|||||||||
| Home >> All >> javax >> ide >> model >> java >> source >> [ tree overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.ide.model.java.source.tree
Interface ForStatementT

- All Superinterfaces:
- BlockElementT, CompoundStatementT, StatementT, Tree
- public interface ForStatementT
- extends CompoundStatementT
A for statement. JLS3 14.14.
| Field Summary |
| Fields inherited from interface javax.ide.model.java.source.tree.StatementT |
EMPTY_ARRAY |
| Method Summary | |
ExpressionT |
getForCollection()
In an enhanced for loop, this is the collection expression. |
ExpressionT |
getForConditional()
In a standard for loop, this is the condition expression. |
ListExpressionT |
getForInitializationList()
In a standard for loop with no variable declarations, this is the list wrapping the initialization terms. |
java.util.List |
getForInitializations()
In a standard for loop with no variable declarations, these are the initialization terms. |
byte |
getForType()
FOR_EXPRESSION: A standard for loop with no variable declarations. |
ListExpressionT |
getForUpdateList()
In a standard for loop, this is the list wrapping the update terms. |
java.util.List |
getForUpdates()
In a standard for loop, these are the update terms. |
LocalVariableDeclT |
getForVariableDeclaration()
In a standard for loop with variable declarations, this is the local variable declaration itself. |
java.util.List |
getForVariables()
In a standard for loop with variable declarations, these are the variables declared in the initialization declaration. |
void |
setForCollection(ExpressionT e)
Attempts to set the collection expression on this for statement. |
void |
setForConditional(ExpressionT e)
Attempts to set the conditional expression on this for statement. |
void |
setForVariableDeclaration(LocalVariableDeclT decl)
Attempts to set the variable declaration on this for statement. |
| Methods inherited from interface javax.ide.model.java.source.tree.CompoundStatementT |
getControlExpression, getEndClause, getPrimaryClause |
| Methods inherited from interface javax.ide.model.java.source.tree.StatementT |
getStatementLabels, getStatementToken |
| Methods inherited from interface javax.ide.model.java.source.tree.Tree |
accept, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
| Method Detail |
getForType
public byte getForType()
- FOR_EXPRESSION: A standard for loop with no variable declarations.
FOR_VARIABLE_D: A standard for loop with variable declarations.
FOR_ENHANCED: An enhanced for loop.
getForVariableDeclaration
public LocalVariableDeclT getForVariableDeclaration()
- In a standard for loop with variable declarations, this is the
local variable declaration itself.
setForVariableDeclaration
public void setForVariableDeclaration(LocalVariableDeclT decl)
- Attempts to set the variable declaration on this for statement.
getForVariables
public java.util.List getForVariables()
- In a standard for loop with variable declarations, these are the
variables declared in the initialization declaration. If there is
a variable declaration, then this is equivalent to calling
getForVariableDeclaration().getVariables().
getForInitializationList
public ListExpressionT getForInitializationList()
- In a standard for loop with no variable declarations, this is the
list wrapping the initialization terms. Unless you need the
actual ListExpression, you should probably use
getForInitializations().
getForInitializations
public java.util.List getForInitializations()
- In a standard for loop with no variable declarations, these are
the initialization terms. If there are initialization terms, this
is equivalent to calling getForInitializationList().getOperands().
getForConditional
public ExpressionT getForConditional()
- In a standard for loop, this is the condition expression.
Syntax is "for( initialization; conditional; update) stmt".
setForConditional
public void setForConditional(ExpressionT e)
- Attempts to set the conditional expression on this for statement.
getForUpdateList
public ListExpressionT getForUpdateList()
- In a standard for loop, this is the list wrapping the update
terms. Syntax is "for( initialization; conditional; update)
stmt". Unless you need the actual ListExpression, you should
probably use getForUpdates().
getForUpdates
public java.util.List getForUpdates()
- In a standard for loop, these are the update terms. Syntax is
"for( initialization; conditional; update) stmt". If there are
update terms, this is equivalent to calling
getForUpdateList().getOperands().
getForCollection
public ExpressionT getForCollection()
- In an enhanced for loop, this is the collection expression.
Syntax is "for ( type name: collection ) stmt".
setForCollection
public void setForCollection(ExpressionT e)
- Attempts to set the collection expression on this for statement.
|
|||||||||
| Home >> All >> javax >> ide >> model >> java >> source >> [ tree overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC