public enum LeftCurlyOption extends Enum<LeftCurlyOption>
'{'
.列挙型定数と説明 |
---|
EOL
Represents the policy for placing the brace at the end of line.
|
NL
Represents the policy that the brace must always be on a new line.
|
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. |
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) { ...
public static LeftCurlyOption[] values()
for(LeftCurlyOption c: LeftCurlyOption.values()) System.out.println(c);
public static LeftCurlyOption valueOf(String name)
name返される列挙型定数の名前
- IllegalArgumentException指定された名前を持つ定数を
- この列挙型が持っていない場合NullPointerException引数がnullの場合
Copyright © 2001-2013. All Rights Reserved.