|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LineSeparatorOption>
com.puppycrawl.tools.checkstyle.checks.LineSeparatorOption
public enum LineSeparatorOption
Represents the options for line separator settings.
NewlineAtEndOfFileCheck| Enum Constant Summary | |
|---|---|
CR
Mac-style line separators. |
|
CRLF
Windows-style line separators. |
|
LF
Unix-style line separators. |
|
SYSTEM
System default line separators. |
|
| Method Summary | |
|---|---|
int |
length()
|
boolean |
matches(byte[] aBytes)
|
static LineSeparatorOption |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LineSeparatorOption[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LineSeparatorOption CRLF
public static final LineSeparatorOption CR
public static final LineSeparatorOption LF
public static final LineSeparatorOption SYSTEM
| Method Detail |
|---|
public static LineSeparatorOption[] values()
for (LineSeparatorOption c : LineSeparatorOption.values()) System.out.println(c);
public static LineSeparatorOption valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean matches(byte[] aBytes)
aBytes - a bytes array to check
public int length()
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||