com.puppycrawl.tools.checkstyle.checks.blocks

Class BlockOption

public final class BlockOption extends AbstractOption

Represents the policy for checking block statements.

Author: Rick Giles

See Also: EmptyBlockCheck

Field Summary
static BlockOptionSTMT
Represents the policy that there is a statement in the block.
static BlockOptionTEXT
Represents the policy that there is some text in the block.
Method Summary
protected MapgetStrToOpt()

Field Detail

STMT

public static final BlockOption STMT
Represents the policy that there is a statement in the block. For example:
 finally {
     lock.release();
 }
 

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
 }
 

Method Detail

getStrToOpt

protected Map getStrToOpt()
{@inheritDoc }