| Access | Constructor and Description |
|---|---|
| public | |
| public | RewriteRuleNodeStream(TreeAdaptor adaptor, String elementDescription, Object oneElement)
Create a stream with one element |
| public | RewriteRuleNodeStream(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 | |
| protected Object | toTree(Object el)
Overrides org. |
| RewriteRuleNodeStream | back to summary |
|---|---|
| public RewriteRuleNodeStream(TreeAdaptor adaptor, String elementDescription) | |
| RewriteRuleNodeStream | back to summary |
|---|---|
| public RewriteRuleNodeStream(TreeAdaptor adaptor, String elementDescription, Object oneElement) Create a stream with one element | |
| RewriteRuleNodeStream | back to summary |
|---|---|
| public RewriteRuleNodeStream(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() | |
| toTree | back to summary |
|---|---|
| protected Object toTree(Object el) Overrides org. Doc from org. Ensure stream emits trees; tokens must be converted to AST nodes. AST nodes can be passed through unmolested.
| |