public class TerminalNode extends BaseStatementNode implements ITerminalNode
ITerminalNode.TerminalKind
Modifier and Type | Field and Description |
---|---|
protected ITerminalNode.TerminalKind |
kind
The type of terminal node this represents.
|
contentsNode
emptyNodeArray, parent
UNKNOWN
Constructor and Description |
---|
TerminalNode(IASToken token)
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
|
ITerminalNode.TerminalKind |
getKind()
Represents the kind of the terminal condition
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
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 ITerminalNode.TerminalKind kind
public TerminalNode(IASToken token)
token
- The token representing the else
,
default
, or finally
keyword.public ASTNodeID getNodeID()
IASNode
public int getChildCount()
IASNode
getChildCount
in interface IASNode
getChildCount
in class NodeBase
public IASNode getChild(int i)
IASNode
public ITerminalNode.TerminalKind getKind()
ITerminalNode
getKind
in interface ITerminalNode
ITerminalNode.TerminalKind
Copyright © 2016 The Apache Software Foundation. All rights reserved.