Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.AbstractOption
com.puppycrawl.tools.checkstyle.checks.LineSeparatorOption
public final class LineSeparatorOption
extends AbstractOption
NewlineAtEndOfFileCheck
Field Summary | |
static LineSeparatorOption |
|
static LineSeparatorOption |
|
static LineSeparatorOption |
|
static LineSeparatorOption |
|
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractOption | |
decode , getStrToOpt , readResolve , toString |
protected Map getStrToOpt()
- Overrides:
- getStrToOpt in interface AbstractOption
- See Also:
AbstractOption
public int length()
- Returns:
- the length of the file separator, e.g. 1 for CR, 2 for CRLF, ...
public boolean matches(byte[] aBytes)
- Parameters:
aBytes
- a bytes array to check
- Returns:
- if aBytes is equal to the byte representation of this line separator
Back to the Checkstyle Home Page |