public static enum Comments.Position extends Enum<Comments.Position>
Comments.NodeType) to which the comment is attached.| Enum Constant and Description |
|---|
AFTER
Puts the comments after the node.
|
BEFORE
Puts the comments before the node.
|
INLINE
Puts the comments inline with the node.
|
| Modifier and Type | Method and Description |
|---|---|
static Comments.Position |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Comments.Position[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Comments.Position BEFORE
public static final Comments.Position INLINE
Please note this method may de-align comments to other nodes when reloaded; errors might be thrown in some cases. It is advised to never use this position.
public static final Comments.Position AFTER
Please note this method may de-align comments to other nodes when reloaded; errors might be thrown in some cases. It is advised to never use this position.
public static Comments.Position[] values()
for (Comments.Position c : Comments.Position.values()) System.out.println(c);
public static Comments.Position 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 nullCopyright © 2022. All rights reserved.