com.puppycrawl.tools.checkstyle
Class BlockOption

java.lang.Object
  |
  +--com.puppycrawl.tools.checkstyle.BlockOption
All Implemented Interfaces:
java.io.Serializable

public final class BlockOption
extends java.lang.Object
implements java.io.Serializable

Represents the options for a block.

Author:
Oliver Burn
See Also:
Serialized Form

Field Summary
static BlockOption IGNORE
          represents ignoring blocks
static BlockOption STMT
          represents requiring a statement in the block
static BlockOption TEXT
          represents requiring some text in the block
 
Method Summary
static BlockOption decode(java.lang.String aStrRep)
          Returns the BlockOption specified by a string representation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IGNORE

public static final BlockOption IGNORE
represents ignoring blocks


TEXT

public static final BlockOption TEXT
represents requiring some text in the block


STMT

public static final BlockOption STMT
represents requiring a statement in the block

Method Detail

decode

public static BlockOption decode(java.lang.String aStrRep)
Returns the BlockOption specified by a string representation. If no option exists then null is returned.

Parameters:
aStrRep - the String representation to parse
Returns:
the BlockOption value represented by aStrRep, or null if none exists.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object