public enum CommentPolicy extends Enum<CommentPolicy>
This enum lives in pp2.zone per plan §6; it is referenced by
Pp2FormatOptions from S2. Slice S9
(Protected Zone Detection) wires this policy into the assembler.
| Enum Constant and Description |
|---|
PRESERVE
Keep every comment exactly where it was in the source.
|
REANCHOR
Re-anchor each comment to the nearest preserved token.
|
REFLOW
Reflow comments according to layout decisions (lexical fallback only).
|
| Modifier and Type | Method and Description |
|---|---|
static CommentPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommentPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommentPolicy PRESERVE
public static final CommentPolicy REANCHOR
public static final CommentPolicy REFLOW
public static CommentPolicy[] values()
for (CommentPolicy c : CommentPolicy.values()) System.out.println(c);
public static CommentPolicy 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 null