public enum AnnotationPosition extends Enum<AnnotationPosition>
| Enum Constant and Description |
|---|
Aligned
Like
Inline, but all aligned to the same column. |
Indented
Annotations are printed on the next line, but moved to the left as far as possible, while continuing the tree
structure to the left of the annotation.
|
Inline
The node annotation is displayed on the same line as the node text, e.g.
node text (annotation). |
InlineRight
Annotations are placed to the right of the node text (like
Inline), but all lines of a multi-line
annotation are aligned to begin on the same column. |
NextLine
The node annotation is positioned in a new line following the node text.
|
None
Annotations are not printed even if present.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStartsOnNewLine() |
static AnnotationPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnotationPosition Aligned
Inline, but all aligned to the same column.
sample tree ├─── node (annotation) ├─── another node (annotation) ╰─── last node (annotation)
public static final AnnotationPosition Indented
sample tree
│ (annotation)
├─── node
│ (annotation)
╰─── last node
(annotation)public static final AnnotationPosition Inline
node text (annotation).
sample tree ├─── node (annotation) ├─── another node (annotation) ╰─── last node
public static final AnnotationPosition InlineRight
Inline), but all lines of a multi-line
annotation are aligned to begin on the same column. The tree structure is continued to the left of the
annotation. Indent defined by the tree style is preserved.
root (annotation line 1) │ (annotation line 2) ├─── n1 (annotation line 1) │ (annotation line 2) ├─── another node (annotation line 1) │ (annotation line 2) ╰─── last node
public static final AnnotationPosition NextLine
sample tree ├─── node │ (annotation) ├─── another node │ (annotation) ╰─── last node
public static final AnnotationPosition None
public boolean isStartsOnNewLine()
public static AnnotationPosition valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static AnnotationPosition[] values()
for (AnnotationPosition c : AnnotationPosition.values()) System.out.println(c);