public enum CommentStyle extends Enum<CommentStyle>
Enum Constant and Description |
---|
DASH |
DOUBLE_DASH |
DOUBLE_QUOTE |
DOUBLE_SLASH |
DOUBLE_TILDE |
JAVA |
JAVADOC |
JSP |
XML |
Modifier and Type | Method and Description |
---|---|
String |
decorate(Iterable<String> lines) |
String |
decorate(Iterable<String> lines,
String preprend) |
String |
decorate(String line,
String prepend) |
static CommentStyle |
fromFilename(String filename) |
String |
getEnd() |
List<String> |
getExtensions() |
String |
getStart() |
String |
getStartLine() |
void |
setEnd(String end) |
void |
setExtensions(List<String> extensions) |
void |
setStart(String start) |
void |
setStartLine(String startLine) |
static CommentStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommentStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommentStyle JAVA
public static final CommentStyle JAVADOC
public static final CommentStyle JSP
public static final CommentStyle XML
public static final CommentStyle DOUBLE_DASH
public static final CommentStyle DASH
public static final CommentStyle DOUBLE_QUOTE
public static final CommentStyle DOUBLE_TILDE
public static final CommentStyle DOUBLE_SLASH
public static CommentStyle[] values()
for (CommentStyle c : CommentStyle.values()) System.out.println(c);
public static CommentStyle 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 CommentStyle fromFilename(String filename)
public String getStart()
public void setStart(String start)
public String getStartLine()
public void setStartLine(String startLine)
public String getEnd()
public void setEnd(String end)
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.