public interface TreeNodeStream extends IntStream
Modifier and Type | Method and Description |
---|---|
Object |
get(int i)
Get a tree node at an absolute index i; 0..n-1.
|
TokenStream |
getTokenStream()
If the tree associated with this stream was created from a TokenStream,
you can specify it here.
|
TreeAdaptor |
getTreeAdaptor()
What adaptor can tell me how to interpret/navigate nodes and
trees.
|
Object |
getTreeSource()
Where is this stream pulling nodes from? This is not the name, but
the object that provides node objects.
|
Object |
LT(int k)
Get tree node at current input pointer + i ahead where i=1 is next node.
|
void |
replaceChildren(Object parent,
int startChildIndex,
int stopChildIndex,
Object t)
Replace from start to stop child index of parent with t, which might
be a list.
|
void |
reset()
Reset the tree node stream in such a way that it acts like
a freshly constructed stream.
|
void |
setUniqueNavigationNodes(boolean uniqueNavigationNodes)
As we flatten the tree, we use UP, DOWN nodes to represent
the tree structure.
|
String |
toString(Object start,
Object stop)
Return the text of all nodes from start to stop, inclusive.
|
Object get(int i)
Object LT(int k)
Object getTreeSource()
TokenStream getTokenStream()
TreeAdaptor getTreeAdaptor()
void setUniqueNavigationNodes(boolean uniqueNavigationNodes)
void reset()
String toString(Object start, Object stop)
void replaceChildren(Object parent, int startChildIndex, int stopChildIndex, Object t)
Copyright © 2020. All rights reserved.