public class SwitchNode extends ConditionalNode implements ISwitchNode
conditionalNodecontentsNodeemptyNodeArray, parentUNKNOWN| 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, setConditionalExpressiongetContentsNode, getStatementContentsNode, initBlockNodeisTerminalanalyze, 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, 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, waitgetStatementContentsNodecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic SwitchNode(IASToken keyword)
keyword - The token representing the switch keyword.public ASTNodeID getNodeID()
IASNodegetNodeID in interface IASNodegetNodeID in class ConditionalNodepublic IExpressionNode getConditionalExpressionNode()
IConditionalNodeIExpressionNode that contains the conditional
expression within this conditionalgetConditionalExpressionNode in interface IConditionalNodegetConditionalExpressionNode in class ConditionalNodeIExpressionNode or nullpublic IConditionalNode[] getCaseNodes()
ISwitchNodegetCaseNodes in interface ISwitchNodeIConditionalNode elementspublic ITerminalNode getDefaultNode()
ISwitchNodegetDefaultNode in interface ISwitchNodeITerminalNode or nullCopyright © 2016 The Apache Software Foundation. All rights reserved.