public interface SyntaxTree extends Tree
Modifier and Type | Method and Description |
---|---|
Interval |
getSourceInterval()
Return an
Interval indicating the index in the
TokenStream of the first and last token associated with this
subtree. |
getChild, getChildCount, getParent, getPayload, toStringTree
@NotNull Interval getSourceInterval()
Interval
indicating the index in the
TokenStream
of the first and last token associated with this
subtree. If this node is a leaf, then the interval represents a single
token.
If source interval is unknown, this returns Interval.INVALID
.Copyright © 1992-2013 ANTLR. All Rights Reserved.