T - the type of the option.AbstractCheck instead.@Deprecated public abstract class AbstractOptionCheck<T extends 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 |
|---|---|
protected static String |
SEMICOLON
Deprecated.
Semicolon literal.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOptionCheck(T literalDefault,
Class<T> optionClass)
Deprecated.
Creates a new
AbstractOptionCheck instance. |
| Modifier and Type | Method and Description |
|---|---|
T |
getAbstractOption()
Deprecated.
Gets AbstractOption set.
|
void |
setOption(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 String SEMICOLON
protected AbstractOptionCheck(T literalDefault, Class<T> optionClass)
AbstractOptionCheck instance.literalDefault - the default option.optionClass - the class for the option. Required due to a quirk
in the Java language.public void setOption(String optionStr)
optionStr - string to decode option fromIllegalArgumentException - if unable to decodepublic T getAbstractOption()
AbstractOption setCopyright © 2001-2017. All Rights Reserved.