com.puppycrawl.tools.checkstyle.checks
public final class LineSeparatorOption extends AbstractOption
See Also: NewlineAtEndOfFileCheck
Field Summary | |
---|---|
static LineSeparatorOption | CR Mac-style line separators. |
static LineSeparatorOption | CRLF Windows-style line separators. |
static LineSeparatorOption | LF Unix-style line separators. |
static LineSeparatorOption | SYSTEM System default line separators. |
Method Summary | |
---|---|
protected Map | getStrToOpt() {@inheritDoc} |
int | length() |
boolean | matches(byte[] aBytes) |
Returns: the length of the file separator, e.g. 1 for CR, 2 for CRLF, ...
Parameters: aBytes a bytes array to check
Returns: if aBytes is equal to the byte representation of this line separator