public class SwitchNode extends ConditionalNode implements ISwitchNode
conditionalNode
contentsNode
emptyNodeArray, parent
UNKNOWN
Constructor and Description |
---|
SwitchNode(IASToken keyword)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IConditionalNode[] |
getCaseNodes()
Returns an in-order array of case statements that are branches of this
switch statement
|
IExpressionNode |
getConditionalExpressionNode()
Returns the
IExpressionNode that contains the conditional
expression within this conditional |
ITerminalNode |
getDefaultNode()
Returns the default clause of this switch statement
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
getChild, getChildCount, getConditionalNode, setConditionalExpression
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, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public SwitchNode(IASToken keyword)
keyword
- The token representing the switch
keyword.public ASTNodeID getNodeID()
IASNode
getNodeID
in interface IASNode
getNodeID
in class ConditionalNode
public IExpressionNode getConditionalExpressionNode()
IConditionalNode
IExpressionNode
that contains the conditional
expression within this conditionalgetConditionalExpressionNode
in interface IConditionalNode
getConditionalExpressionNode
in class ConditionalNode
IExpressionNode
or nullpublic IConditionalNode[] getCaseNodes()
ISwitchNode
getCaseNodes
in interface ISwitchNode
IConditionalNode
elementspublic ITerminalNode getDefaultNode()
ISwitchNode
getDefaultNode
in interface ISwitchNode
ITerminalNode
or nullCopyright © 2016 The Apache Software Foundation. All rights reserved.