| Access | Constructor and Description |
|---|---|
| public | |
| public | RewriteRuleTokenStream(TreeAdaptor adaptor, String elementDescription, Object oneElement)
Create a stream with one element |
| public | RewriteRuleTokenStream(TreeAdaptor adaptor, String elementDescription, List<Object> elements)
Create a stream, but feed off an existing list |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | dup(Object el)
Implements abstract org. |
| public Object | |
| public Token | |
| protected Object | toTree(Object el)
Overrides org. |
| RewriteRuleTokenStream | back to summary |
|---|---|
| public RewriteRuleTokenStream(TreeAdaptor adaptor, String elementDescription) | |
| RewriteRuleTokenStream | back to summary |
|---|---|
| public RewriteRuleTokenStream(TreeAdaptor adaptor, String elementDescription, Object oneElement) Create a stream with one element | |
| RewriteRuleTokenStream | back to summary |
|---|---|
| public RewriteRuleTokenStream(TreeAdaptor adaptor, String elementDescription, List<Object> elements) Create a stream, but feed off an existing list | |
| dup | back to summary |
|---|---|
| protected Object dup(Object el) Implements abstract org. Doc from org. When constructing trees, sometimes we need to dup a token or AST subtree. Dup'ing a token means just creating another AST node around it. For trees, you must call the adaptor.dupTree() unless the element is for a tree root; then it must be a node dup.
| |
| nextNode | back to summary |
|---|---|
| public Object nextNode() Get next token from stream and make a node for it | |
| nextToken | back to summary |
|---|---|
| public Token nextToken() | |
| toTree | back to summary |
|---|---|
| protected Object toTree(Object el) Overrides org. Don't convert to a tree unless they explicitly call nextTree. This way we can do hetero tree nodes in rewrite.
| |