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, parentUNKNOWN| 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
|
isTerminalbuildInnerString, 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, verifygetColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, getAncestorOfType, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartprotected ContainerNode conditionsStatementsNode
protected BlockNode contentsNode
public ForLoopNode(IASToken forKeyword)
public ASTNodeID getNodeID()
IASNodepublic int getChildCount()
IASNodegetChildCount in interface IASNodegetChildCount in class NodeBasepublic IASNode getChild(int i)
IASNodeprotected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
public IASNode getStatementContentsNode()
IStatementNodegetStatementContentsNode in interface IStatementNodeIScopedNodepublic IForLoopNode.ForLoopKind getKind()
IForLoopNodefor statement.getKind in interface IForLoopNodeIForLoopNode.ForLoopKindpublic IExpressionNode[] getConditionalExpressionNodes()
IForLoopNodefor statement.getConditionalExpressionNodes in interface IForLoopNodeIExpressionNode objects, or null.public ContainerNode getConditionalsContainerNode()
IForLoopNodefor statement.getConditionalsContainerNode in interface IForLoopNodeIContainerNode containing the conditional expressions,
or null.public BlockNode getContentsNode()
Copyright © 2016 The Apache Software Foundation. All rights reserved.