|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.checks.AbstractOption com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyOption
Represents the options for placing the left curly brace '{'
.
Field Summary | |
static LeftCurlyOption |
EOL
Represents the policy for placing the brace at the end of line. |
static LeftCurlyOption |
NL
Represents the policy that the brace must always be on a new line. |
static LeftCurlyOption |
NLOW
Represents the policy that if the brace will fit on the first line of the statement, taking into account maximum line length, then apply EOL rule. |
Method Summary | |
protected java.util.Map |
getStrToOpt()
Returns the map from string representations to options. |
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractOption |
decode, readResolve, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final LeftCurlyOption EOL
if (condition) { ...
public static final LeftCurlyOption NLOW
EOL
rule. Otherwise apply the NL
rule. NLOW
is a mnemonic for "new line on wrap".
For the example above Checkstyle will enforce:
if (condition) { ...But for a statement spanning multiple lines, Checkstyle will enforce:
if (condition1 && condition2 && condition3 && condition4) { ...
public static final LeftCurlyOption NL
if (condition) { ...
Method Detail |
protected java.util.Map getStrToOpt()
AbstractOption
getStrToOpt
in class AbstractOption
Map
from strings to options.AbstractOption
|
Back to the Checkstyle Home Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |