|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.tree.Annotation
xtc.tree.Formatting
public abstract class Formatting
An annotation capturing source code formatting.
| Method Summary | |
|---|---|
static Formatting |
after1(Node node,
java.lang.Object after)
Create a formatting annotation. |
static Formatting |
before1(java.lang.Object before,
Node node)
Create a formatting annotation. |
boolean |
hasTraversal()
Determine whether this node supports generic traversal of its children. |
static Formatting |
round1(java.lang.Object before,
Node node,
java.lang.Object after)
Create a formatting annotation. |
static Formatting |
variable()
Create a formatting annotation. |
| Methods inherited from class xtc.tree.Annotation |
|---|
getNode, getTokenText, innerMost, isAnnotation, setNode, strip, toAnnotation |
| Methods inherited from class xtc.tree.Node |
|---|
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, hasLocation, hasName, hasProperty, hasVariable, indexOf, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, toList, toString, toToken, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean hasTraversal()
Nodefalse.
hasTraversal in class Nodetrue if this node supports generic traversal
of its children.
public static Formatting before1(java.lang.Object before,
Node node)
before - The object before the node.node - The annotated node.
public static Formatting after1(Node node,
java.lang.Object after)
node - The annotated node.after - The object after the node.
public static Formatting round1(java.lang.Object before,
Node node,
java.lang.Object after)
before - The object before the node.node - The annotated node.after - The object after the node.
public static Formatting variable()
Node.addNode(Node) or Annotation.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||