enum CommentIndentation extends java.lang.Enum<CommentIndentation> implements Indent
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
text |
Modifier and Type | Method and Description |
---|---|
void |
addIndent(Indent next,
FormatPreferences preferences,
java.lang.StringBuilder lineBuffer) |
void |
escape(Indent next,
java.lang.StringBuilder b,
int idx) |
(package private) java.lang.String |
getText() |
void |
unescaped(Indent next,
java.lang.StringBuilder b,
int idx) |
static CommentIndentation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommentIndentation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommentIndentation LINE
public static final CommentIndentation BLOCK
public static CommentIndentation[] values()
for (CommentIndentation c : CommentIndentation.values()) System.out.println(c);
public static CommentIndentation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nulljava.lang.String getText()
public void addIndent(Indent next, FormatPreferences preferences, java.lang.StringBuilder lineBuffer)
public void escape(Indent next, java.lang.StringBuilder b, int idx)