|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> [ checks overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.puppycrawl.tools.checkstyle.checks
Class AbstractOption

java.lang.Objectcom.puppycrawl.tools.checkstyle.checks.AbstractOption
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BlockOption, LeftCurlyOption, LineSeparatorOption, OperatorWrapOption, PadOption, RightCurlyOption
- public abstract class AbstractOption
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Abstract class that represents options.
| Field Summary | |
private java.lang.String |
mStrRep
the string representation of the option |
| Constructor Summary | |
protected |
AbstractOption(java.lang.String aStrRep)
Creates a new AbstractOption instance. |
| Method Summary | |
AbstractOption |
decode(java.lang.String aStrRep)
Returns the option specified by a string representation. |
protected abstract java.util.Map |
getStrToOpt()
Returns the map from string representations to options. |
protected java.lang.Object |
readResolve()
Ensures that we don't get multiple instances of one AbstractOption during deserialization. |
java.lang.String |
toString()
Returns the string representation of this AbstractOption. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
mStrRep
private final java.lang.String mStrRep
- the string representation of the option
| Constructor Detail |
AbstractOption
protected AbstractOption(java.lang.String aStrRep)
- Creates a new
AbstractOptioninstance.
| Method Detail |
getStrToOpt
protected abstract java.util.Map getStrToOpt()
- Returns the map from string representations to options.
decode
public AbstractOption decode(java.lang.String aStrRep)
- Returns the option specified by a string representation. If no
option exists then null is returned.
toString
public java.lang.String toString()
- Returns the string representation of this AbstractOption.
readResolve
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
- Ensures that we don't get multiple instances of one AbstractOption
during deserialization. See Section 3.6 of the Java Object
Serialization Specification for details.
|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> [ checks overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.puppycrawl.tools.checkstyle.checks.AbstractOption