com.puppycrawl.tools.checkstyle
Class RightCurlyOption

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

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

Represents the options for placing the right curly brace '}'.

Version:
$Id: RightCurlyOption.java,v 1.4 2002/06/06 11:45:40 oburn Exp $
Author:
Oliver Burn
See Also:
Serialized Form

Field Summary
static RightCurlyOption ALONE
          represents placing the brace alone on a line
static RightCurlyOption IGNORE
          represents ignoring the placement
static RightCurlyOption SAME
          represents placing the brace on the same line
 
Method Summary
static RightCurlyOption decode(java.lang.String aStrRep)
          Returns the RightCurlyOption 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

ALONE

public static final RightCurlyOption ALONE
represents placing the brace alone on a line


SAME

public static final RightCurlyOption SAME
represents placing the brace on the same line


IGNORE

public static final RightCurlyOption IGNORE
represents ignoring the placement

Method Detail

decode

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

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