com.puppycrawl.tools.checkstyle.checks
public abstract class AbstractOption extends Object implements Serializable
| Constructor Summary | |
|---|---|
| protected | AbstractOption(String aStrRep)
Creates a new AbstractOption instance. |
| Method Summary | |
|---|---|
| AbstractOption | decode(String aStrRep)
Returns the option specified by a string representation. |
| protected abstract Map | getStrToOpt()
Returns the map from string representations to options. |
| protected Object | readResolve()
Ensures that we don't get multiple instances of one AbstractOption
during deserialization. |
| String | toString()
{@inheritDoc }
|
AbstractOption instance.Parameters: aStrRep the string representation
Parameters: aStrRep the String representation to parse
Returns: the AbstractOption value represented by
aStrRep, or null if none exists.
Returns: Map from strings to options.
Returns: the serialization replacement object
Throws: ObjectStreamException if a deserialization error occurs