|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.puppycrawl.tools.checkstyle.checks.AbstractOption
Abstract class that represents options.
| 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 |
| Constructor Detail |
protected AbstractOption(java.lang.String aStrRep)
AbstractOption instance.
aStrRep - the string representation| Method Detail |
protected abstract java.util.Map getStrToOpt()
Map from strings to options.public AbstractOption decode(java.lang.String aStrRep)
aStrRep - the String representation to parse
AbstractOption value represented by
aStrRep, or null if none exists.public java.lang.String toString()
Object
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - if a deserialization error occurs
|
Back to the Checkstyle Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||