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) |
java.lang.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, reverse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsTreeIterable, getEndLine, getEndOffset, getGrammarElement, getNextSibling, getParent, getPreviousSibling, getRootNode, getSemanticElement, getStartLine, getSyntaxErrorMessage, getText, getTextRegion, getTextRegionWithLineInformation, getTotalEndLine, getTotalEndOffset, getTotalStartLine, getTotalTextRegion, getTotalTextRegionWithLineInformation, hasDirectSemanticElement, hasNextSibling, hasPreviousSibling, hasSiblings
public boolean isHidden()
ILeafNode
true
if the node was produced by a hidden token.public int getTotalOffset()
INode
getTotalOffset
in interface INode
public int getTotalLength()
INode
getTotalLength
in interface INode
public int getOffset()
INode
getOffset
in interface INode
getOffset
in class AbstractNode
public int getLength()
INode
getLength
in interface INode
getLength
in class AbstractNode
protected void basicSetTotalOffset(int offset)
protected void basicSetTotalLength(int length)
public java.lang.Iterable<ILeafNode> getLeafNodes()
INode
null
.getLeafNodes
in interface INode
getLeafNodes
in class AbstractNode
null
.