|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICompositeNode
A composite node in the parse tree. A composite node may or may not contain child nodes.
Method Summary | |
---|---|
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. |
Methods inherited from interface org.eclipse.xtext.nodemodel.INode |
---|
getAsTreeIterable, getEndLine, getGrammarElement, getLeafNodes, getLength, getNextSibling, getOffset, getParent, getPreviousSibling, getRootNode, getSemanticElement, getStartLine, getSyntaxErrorMessage, getText, getTotalEndLine, getTotalEndOffset, getTotalLength, getTotalOffset, getTotalStartLine, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings |
Method Detail |
---|
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()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |