| Package | Description |
|---|---|
| xtc.tree |
| Modifier and Type | Class and Description |
|---|---|
class |
Annotation
The superclass of all annotations.
|
class |
Formatting
An annotation capturing source code formatting.
|
class |
GNode
A generic node in an abstract syntax tree.
|
class |
Token
A token.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Node.add(int index,
java.lang.Object o)
Add the specified object as a child at the specified index.
|
Node |
Node.add(java.lang.Object o)
Add the specified object as a child.
|
Node |
Node.addAll(java.util.Collection<?> c)
Add all values in the specified collection as children.
|
Node |
Node.addAll(int index,
java.util.Collection<?> c)
Add all values in the specified collection as children at the
specified index.
|
Node |
Node.addAll(int index,
Pair<?> p)
Add all values in the list starting with the specified pair as
children at the specified index.
|
Node |
Node.addAll(Pair<?> p)
Add all values in the list starting with the specified pair as
children.
|
Node |
Node.addNode(Node node)
Add the specified node as a child.
|
Node |
Annotation.getNode()
Get the annotated node.
|
Node |
Node.getNode(int index)
Get the node child at the specified index.
|
Node |
Annotation.strip() |
Node |
Node.strip()
Strip any annotations.
|
| Modifier and Type | Method and Description |
|---|---|
static Pair<Node> |
Node.toList(java.lang.Object o)
Convert the specified object to a list of nodes.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Node.addNode(Node node)
Add the specified node as a child.
|
static Formatting |
Formatting.after1(Node node,
java.lang.Object after)
Create a formatting annotation.
|
static Formatting |
Formatting.before1(java.lang.Object before,
Node node)
Create a formatting annotation.
|
static Formatting |
Formatting.round1(java.lang.Object before,
Node node,
java.lang.Object after)
Create a formatting annotation.
|
void |
Annotation.setNode(Node node)
Set the annotated node.
|
| Constructor and Description |
|---|
Annotation(Node node)
Create a new annotation for the specified node.
|
Copyright © 2012. All Rights Reserved.