com.puppycrawl.tools.checkstyle.checks
Class AbstractOptionCheck
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.Check
com.puppycrawl.tools.checkstyle.checks.AbstractOptionCheck
- All Implemented Interfaces:
- Configurable, Contextualizable
- Direct Known Subclasses:
- com.puppycrawl.tools.checkstyle.checks.whitespace.AbstractParenPadCheck, EmptyBlockCheck, EmptyForInitializerPadCheck, EmptyForIteratorPadCheck, LeftCurlyCheck, MethodParamPadCheck, OperatorWrapCheck, RightCurlyCheck
- public abstract class AbstractOptionCheck
- extends Check
Abstract class for checks with options.
- Author:
- Rick Giles
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, setId, setSeverity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractOptionCheck
public AbstractOptionCheck(AbstractOption aDefault)
- Creates a new
AbstractOptionCheck
instance.
- Parameters:
aDefault
- the default option.
setOption
public void setOption(String aOption)
throws ConversionException
- Set the option to enforce.
- Parameters:
aOption
- string to decode option from
- Throws:
ConversionException
- if unable to decode
getAbstractOption
public AbstractOption getAbstractOption()
- Returns:
- the
AbstractOption
set