public class ConditionalNode extends BaseStatementNode implements IConditionalNode
Modifier and Type | Field and Description |
---|---|
protected ExpressionNodeBase |
conditionalNode
The conditional node of this statement
|
contentsNode
emptyNodeArray, parent
UNKNOWN
Constructor and Description |
---|
ConditionalNode(IASToken keyword)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IASNode |
getChild(int i)
Get a particular child of this node
|
int |
getChildCount()
Get the number of children
|
IExpressionNode |
getConditionalExpressionNode()
Returns the
IExpressionNode that contains the conditional
expression within this conditional |
ExpressionNodeBase |
getConditionalNode() |
ASTNodeID |
getNodeID()
Get the opcode of this node
|
void |
setConditionalExpression(ExpressionNodeBase conditionalNode) |
getContentsNode, getStatementContentsNode, initBlockNode
isTerminal
analyze, 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
getStatementContentsNode
contains, getAncestorOfType, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
protected ExpressionNodeBase conditionalNode
public ConditionalNode(IASToken keyword)
public ASTNodeID getNodeID()
IASNode
public int getChildCount()
IASNode
getChildCount
in interface IASNode
getChildCount
in class NodeBase
public IASNode getChild(int i)
IASNode
public IExpressionNode getConditionalExpressionNode()
IConditionalNode
IExpressionNode
that contains the conditional
expression within this conditionalgetConditionalExpressionNode
in interface IConditionalNode
IExpressionNode
or nullpublic void setConditionalExpression(ExpressionNodeBase conditionalNode)
public ExpressionNodeBase getConditionalNode()
Copyright © 2016 The Apache Software Foundation. All rights reserved.