public interface ICompositeNode extends INode
Modifier and Type | Method and Description |
---|---|
BidiIterable<INode> |
getChildren()
Returns an iterable that provides access to the children of the composite node.
|
INode |
getFirstChild()
Returns the first child of this node.
|
INode |
getLastChild()
Returns the last child of this node.
|
int |
getLookAhead()
Return the number of tokens that the parser had to peek before it could decide to create this node.
|
boolean |
hasChildren()
Returns
true if this node has any children. |
getAsTreeIterable, getEndLine, getEndOffset, getGrammarElement, getLeafNodes, getLength, getNextSibling, getOffset, getParent, getPreviousSibling, getRootNode, getSemanticElement, getStartLine, getSyntaxErrorMessage, getText, getTextRegion, getTextRegionWithLineInformation, getTotalEndLine, getTotalEndOffset, getTotalLength, getTotalOffset, getTotalStartLine, getTotalTextRegion, getTotalTextRegionWithLineInformation, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings
BidiIterable<INode> getChildren()
null
but may be empty.hasChildren()
,
getFirstChild()
,
getLastChild()
boolean hasChildren()
true
if this node has any children.true
if this node has any children.getChildren()
,
getFirstChild()
,
getLastChild()
INode getFirstChild()
null
or may be the same as the last child
.hasChildren()
,
getChildren()
INode getLastChild()
null
or may be the same as the first child
.hasChildren()
,
getChildren()
int getLookAhead()
getLookAhead()
.