| java.lang.Object xtc.tree.Node xtc.tree.Annotation xtc.tree.Formatting
Formatting | abstract public class Formatting extends Annotation (Code) | | An annotation capturing source code formatting.
author: Robert Grimm version: $Revision: 1.2 $ |
Inner Class :static class Before1 extends Formatting | |
Inner Class :static class After1 extends Formatting | |
Inner Class :static class Round1 extends Formatting | |
Inner Class :static class RoundN extends Formatting | |
Constructor Summary | |
| Formatting() Create a new, empty formatting annotation. | | Formatting(Node node) Create a new formatting annotation for the specified node. |
Formatting | Formatting()(Code) | | Create a new, empty formatting annotation.
|
Formatting | Formatting(Node node)(Code) | | Create a new formatting annotation for the specified node.
Parameters: node - The node. |
after1 | public static Formatting after1(Node node, Object after)(Code) | | Create a formatting annotation. This method returns an
annotation supporting generic traversal.
Parameters: node - The annotated node. Parameters: after - The object after the node. The formatting annotation. |
before1 | public static Formatting before1(Object before, Node node)(Code) | | Create a formatting annotation. This method returns an
annotation supporting generic traversal.
Parameters: before - The object before the node. Parameters: node - The annotated node. The formatting annotation. |
hasTraversal | public boolean hasTraversal()(Code) | | |
round1 | public static Formatting round1(Object before, Node node, Object after)(Code) | | Create a formatting annotation. This method returns an
annotation supporting generic traversal.
Parameters: before - The object before the node. Parameters: node - The annotated node. Parameters: after - The object after the node. The formatting annotation. |
variable | public static Formatting variable()(Code) | | Create a formatting annotation. This method returns an
annotation supporting generic traversal and adding/removing
children. All children added before a call to
Formatting.addNode(Node) or
Formatting.setNode(Node) are treated as nodes
preceding the annotated node, and all children added after such a
call are treated as nodes succeeding the annotated node.
The formatting annotation. |
|
|