|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.nodemodel.impl.AbstractNode
org.eclipse.xtext.nodemodel.impl.CompositeNode
public class CompositeNode
| Constructor Summary | |
|---|---|
CompositeNode()
|
|
| Method Summary | |
|---|---|
BidiIterable<AbstractNode> |
basicGetChildren()
|
protected AbstractNode |
basicGetFirstChild()
|
protected AbstractNode |
basicGetLastChild()
|
protected void |
basicSetFirstChild(AbstractNode firstChild)
|
protected void |
basicSetLookAhead(int lookAhead)
|
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. |
org.eclipse.emf.ecore.EObject |
getGrammarElement()
Returns the grammar element that created 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. |
int |
getTotalLength()
Returns the length of this node including hidden tokens. |
int |
getTotalOffset()
Returns the offset of this node including hidden tokens. |
boolean |
hasChildren()
Returns true if this node has any children. |
protected boolean |
isFolded()
|
protected boolean |
isFolded(java.lang.Object grammarElementOrArray)
|
ICompositeNode |
resolveAsParent()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.xtext.nodemodel.INode |
|---|
getAsTreeIterable, getEndLine, getLeafNodes, getLength, getNextSibling, getOffset, getParent, getPreviousSibling, getRootNode, getSemanticElement, getStartLine, getSyntaxErrorMessage, getText, getTotalEndLine, getTotalEndOffset, getTotalStartLine, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings |
| Constructor Detail |
|---|
public CompositeNode()
| Method Detail |
|---|
public BidiIterable<INode> getChildren()
ICompositeNodenull but may be empty.
getChildren in interface ICompositeNodeICompositeNode.hasChildren(),
ICompositeNode.getFirstChild(),
ICompositeNode.getLastChild()public BidiIterable<AbstractNode> basicGetChildren()
public boolean hasChildren()
ICompositeNodetrue if this node has any children.
hasChildren in interface ICompositeNodetrue if this node has any children.ICompositeNode.getChildren(),
ICompositeNode.getFirstChild(),
ICompositeNode.getLastChild()public int getLookAhead()
ICompositeNodeICompositeNode.getLookAhead().
getLookAhead in interface ICompositeNodepublic int getTotalLength()
INode
getTotalLength in interface INodepublic int getTotalOffset()
INode
getTotalOffset in interface INodeprotected void basicSetLookAhead(int lookAhead)
public INode getFirstChild()
ICompositeNodenull or may be the same as the last child.
getFirstChild in interface ICompositeNodeICompositeNode.hasChildren(),
ICompositeNode.getChildren()protected AbstractNode basicGetFirstChild()
protected void basicSetFirstChild(AbstractNode firstChild)
public INode getLastChild()
ICompositeNodenull or may be the same as the first child.
getLastChild in interface ICompositeNodeICompositeNode.hasChildren(),
ICompositeNode.getChildren()protected AbstractNode basicGetLastChild()
protected boolean isFolded()
protected boolean isFolded(java.lang.Object grammarElementOrArray)
public ICompositeNode resolveAsParent()
public org.eclipse.emf.ecore.EObject getGrammarElement()
INodenull in case of unrecoverable syntax
errors. This happens usually when a keyword occurred at an unexpected offset.
getGrammarElement in interface INodegetGrammarElement in class AbstractNodenull.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||