com.puppycrawl.tools.checkstyle
Class PadOption

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

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

Represents the options for whitespace around parenthesis.

Version:
1
Author:
Oliver Burn
See Also:
Serialized Form

Field Summary
static PadOption IGNORE
          represents ignoring the spacing
static PadOption NOSPACE
          represents no spacing
static PadOption SPACE
          represents mandatory spacing
 
Method Summary
static PadOption decode(java.lang.String aStrRep)
          Returns the option 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

NOSPACE

public static final PadOption NOSPACE
represents no spacing


IGNORE

public static final PadOption IGNORE
represents ignoring the spacing


SPACE

public static final PadOption SPACE
represents mandatory spacing

Method Detail

decode

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

Parameters:
aStrRep - the String representation to parse
Returns:
the PadOption 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