|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeNodeStream
A stream of tree nodes, accessing nodes from a tree of some kind
| Method Summary | |
|---|---|
java.lang.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. |
java.lang.Object |
getTreeSource()
Where is this stream pulling nodes from? This is not the name, but the object that provides node objects. |
java.lang.Object |
LT(int k)
Get tree node at current input pointer + i ahead where i=1 is next node. |
void |
replaceChildren(java.lang.Object parent,
int startChildIndex,
int stopChildIndex,
java.lang.Object t)
Replace from start to stop child index of parent with t, which might be a list. |
void |
setUniqueNavigationNodes(boolean uniqueNavigationNodes)
As we flatten the tree, we use UP, DOWN nodes to represent the tree structure. |
java.lang.String |
toString(java.lang.Object start,
java.lang.Object stop)
Return the text of all nodes from start to stop, inclusive. |
| Methods inherited from interface org.antlr.runtime.IntStream |
|---|
consume, getSourceName, index, LA, mark, release, rewind, rewind, seek, size |
| Method Detail |
|---|
java.lang.Object get(int i)
java.lang.Object LT(int k)
java.lang.Object getTreeSource()
TokenStream getTokenStream()
TreeAdaptor getTreeAdaptor()
void setUniqueNavigationNodes(boolean uniqueNavigationNodes)
java.lang.String toString(java.lang.Object start,
java.lang.Object stop)
void replaceChildren(java.lang.Object parent,
int startChildIndex,
int stopChildIndex,
java.lang.Object t)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||