com.puppycrawl.tools.checkstyle
Class LeftCurlyOption

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

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

Represents the options for placing the left curly brace '{'.

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

Field Summary
static LeftCurlyOption EOL
          represents placing the brace at the end of line
static LeftCurlyOption IGNORE
          represents ignoring the placement
static LeftCurlyOption NL
          represents placing on a new line
static LeftCurlyOption NLOW
          represents placing on the end of the line if it fits on the first line, otherwise placing on a new line.
 
Method Summary
static LeftCurlyOption decode(java.lang.String aStrRep)
          Returns the LeftCurlyOption 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

EOL

public static final LeftCurlyOption EOL
represents placing the brace at the end of line


IGNORE

public static final LeftCurlyOption IGNORE
represents ignoring the placement


NLOW

public static final LeftCurlyOption NLOW
represents placing on the end of the line if it fits on the first line, otherwise placing on a new line.


NL

public static final LeftCurlyOption NL
represents placing on a new line

Method Detail

decode

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

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