public enum AnnotationPosition extends Enum<AnnotationPosition>
| Enum Constant and Description |
|---|
Aligned
Like
Inline, but all aligned to the same column. |
Inline
The node annotation is displayed on the same line as the node text, e.g.
node text (annotation). |
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 |
|---|---|
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.public static final AnnotationPosition Inline
node text (annotation).public static final AnnotationPosition NextLine
public static final AnnotationPosition None
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);