|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> [ checks overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.puppycrawl.tools.checkstyle.checks
Class BlockOption

java.lang.Objectcom.puppycrawl.tools.checkstyle.checks.AbstractOption
com.puppycrawl.tools.checkstyle.checks.BlockOption
- All Implemented Interfaces:
- java.io.Serializable
- public final class BlockOption
- extends AbstractOption
Represents the policy for checking block statements.
| Field Summary | |
static BlockOption |
STMT
Represents the policy that there is a statement in the block. |
private static java.util.Map |
STR_TO_OPT
maps from a string representation to an option |
static BlockOption |
TEXT
Represents the policy that there is some text in the block. |
| Fields inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractOption |
|
| Constructor Summary | |
private |
BlockOption(java.lang.String aStrRep)
Creates a new BlockOption instance. |
| 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 |
STR_TO_OPT
private static final java.util.Map STR_TO_OPT
- maps from a string representation to an option
TEXT
public static final BlockOption TEXT
- Represents the policy that there is some text in the block. For example:
catch (Exception ex) { // This is a bad coding practice }
STMT
public static final BlockOption STMT
- Represents the policy that there is a statement in the block. For
example:
finally { lock.release(); }
| Constructor Detail |
BlockOption
private BlockOption(java.lang.String aStrRep)
- Creates a new
BlockOptioninstance.
| Method Detail |
getStrToOpt
protected java.util.Map getStrToOpt()
- Description copied from class:
AbstractOption - Returns the map from string representations to options.
- Specified by:
getStrToOptin classAbstractOption
|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> [ checks overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC