public class LeafNode extends AbstractNode implements ILeafNode
| Constructor and Description |
|---|
LeafNode() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
basicSetTotalLength(int length) |
protected void |
basicSetTotalOffset(int offset) |
Iterable<ILeafNode> |
getLeafNodes()
Returns an iterable for all contained leaf nodes.
|
int |
getLength()
Returns the length of this node excluding hidden tokens.
|
int |
getOffset()
Returns the offset of this node excluding hidden tokens.
|
int |
getTotalLength()
Returns the length of this node including hidden tokens.
|
int |
getTotalOffset()
Returns the offset of this node including hidden tokens.
|
boolean |
isHidden()
Returns
true if the node was produced by a hidden token. |
basicGetGrammarElement, basicGetLineOfOffset, basicGetNextSibling, basicGetParent, basicGetPreviousSibling, basicGetSemanticElement, basicHasNextSibling, basicHasPreviousSibling, basicHasSiblings, basicIterator, basicSetGrammarElement, basicSetNextSibling, basicSetParent, basicSetPreviousSibling, getAsTreeIterable, getEndLine, getEndOffset, getGrammarElement, getNextSibling, getParent, getPreviousSibling, getRootNode, getSemanticElement, getStartLine, getSyntaxErrorMessage, getText, getTextRegion, getTextRegionWithLineInformation, getTextRegionWithLineInformation, getTotalEndLine, getTotalEndOffset, getTotalStartLine, getTotalTextRegion, getTotalTextRegionWithLineInformation, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings, iterator, reverseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsTreeIterable, getEndLine, getEndOffset, getGrammarElement, getNextSibling, getParent, getPreviousSibling, getRootNode, getSemanticElement, getStartLine, getSyntaxErrorMessage, getText, getTextRegion, getTextRegionWithLineInformation, getTotalEndLine, getTotalEndOffset, getTotalStartLine, getTotalTextRegion, getTotalTextRegionWithLineInformation, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblingspublic boolean isHidden()
ILeafNodetrue if the node was produced by a hidden token.public int getTotalOffset()
INodegetTotalOffset in interface INodepublic int getTotalLength()
INodegetTotalLength in interface INodepublic int getOffset()
INodegetOffset in interface INodegetOffset in class AbstractNodepublic int getLength()
INodegetLength in interface INodegetLength in class AbstractNodeprotected void basicSetTotalOffset(int offset)
protected void basicSetTotalLength(int length)
public Iterable<ILeafNode> getLeafNodes()
INodenull.getLeafNodes in interface INodegetLeafNodes in class AbstractNodenull.Copyright © 2015. All Rights Reserved.