T - the type of the option.AbstractCheck instead.@Deprecated public abstract class AbstractOptionCheck<T extends java.lang.Enum<T>> extends AbstractCheck
Enum. The logic to convert from a string
representation to the Enum is to String.trim() the string
and convert using String.toUpperCase() and then look up using
Enum.valueOf(java.lang.Class<T>, java.lang.String).| Modifier and Type | Field and Description |
|---|---|
private T |
abstractOption
Deprecated.
The policy to enforce.
|
private java.lang.Class<T> |
optionClass
Deprecated.
Since I cannot get this by going T.class.
|
protected static java.lang.String |
SEMICOLON
Deprecated.
Semicolon literal.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOptionCheck(T literalDefault,
java.lang.Class<T> optionClass)
Deprecated.
Creates a new
AbstractOptionCheck instance. |
| Modifier and Type | Method and Description |
|---|---|
T |
getAbstractOption()
Deprecated.
Gets AbstractOption set.
|
void |
setOption(java.lang.String optionStr)
Deprecated.
Set the option to enforce.
|
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitTokengetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildprotected static final java.lang.String SEMICOLON
private final java.lang.Class<T extends java.lang.Enum<T>> optionClass
public void setOption(java.lang.String optionStr)
optionStr - string to decode option fromjava.lang.IllegalArgumentException - if unable to decodepublic T getAbstractOption()
AbstractOption set