public class ForLoopNode extends FixedChildrenNode implements IForLoopNode
IForLoopNode.ForLoopKind
Modifier and Type | Field and Description |
---|---|
protected ContainerNode |
conditionsStatementsNode
The statements in the loop header
|
protected BlockNode |
contentsNode
The contents of this loop
|
emptyNodeArray, parent
UNKNOWN
Constructor and Description |
---|
ForLoopNode(IASToken forKeyword)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
analyze(EnumSet<PostProcessStep> set,
ASScope scope,
Collection<ICompilerProblem> problems) |
IASNode |
getChild(int i)
Get a particular child of this node
|
int |
getChildCount()
Get the number of children
|
IExpressionNode[] |
getConditionalExpressionNodes()
Returns an array containing the conditional expression(s)
for the
for statement. |
ContainerNode |
getConditionalsContainerNode()
Returns the container node containing the conditional expression(s)
for the
for statement. |
BlockNode |
getContentsNode() |
IForLoopNode.ForLoopKind |
getKind()
Returns the kind of the
for statement. |
ASTNodeID |
getNodeID()
Get the opcode of this node
|
IASNode |
getStatementContentsNode()
returns the contents contained with the statement
|
isTerminal
buildInnerString, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getASScope, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTransparent, looselyContains, normalize, replaceChild, runPostProcess, setChildren, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, swapChildren, toString, tryGetOffsetLookup, verify
getColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, span
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, getAncestorOfType, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
protected ContainerNode conditionsStatementsNode
protected BlockNode contentsNode
public ForLoopNode(IASToken forKeyword)
public ASTNodeID getNodeID()
IASNode
public int getChildCount()
IASNode
getChildCount
in interface IASNode
getChildCount
in class NodeBase
public IASNode getChild(int i)
IASNode
protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
public IASNode getStatementContentsNode()
IStatementNode
getStatementContentsNode
in interface IStatementNode
IScopedNode
public IForLoopNode.ForLoopKind getKind()
IForLoopNode
for
statement.getKind
in interface IForLoopNode
IForLoopNode.ForLoopKind
public IExpressionNode[] getConditionalExpressionNodes()
IForLoopNode
for
statement.getConditionalExpressionNodes
in interface IForLoopNode
IExpressionNode
objects, or null
.public ContainerNode getConditionalsContainerNode()
IForLoopNode
for
statement.getConditionalsContainerNode
in interface IForLoopNode
IContainerNode
containing the conditional expressions,
or null
.public BlockNode getContentsNode()
Copyright © 2016 The Apache Software Foundation. All rights reserved.