com.puppycrawl.tools.checkstyle.checks

Class AbstractOptionCheck

Implemented Interfaces:
Configurable, Contextualizable
Known Direct Subclasses:
AbstractParenPadCheck, EmptyBlockCheck, EmptyForInitializerPadCheck, EmptyForIteratorPadCheck, LeftCurlyCheck, MethodParamPadCheck, OperatorWrapCheck, RightCurlyCheck

public abstract class AbstractOptionCheck
extends Check

Abstract class for checks with options.

Author:
Rick Giles

Constructor Summary

AbstractOptionCheck(AbstractOption aDefault)
Creates a new AbstractOptionCheck instance.

Method Summary

AbstractOption
getAbstractOption()
void
setOption(String aOption)
Set the option to enforce.

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

getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

configure, contextualize, finishLocalSetup, getConfiguration, setupChild

Constructor Details

AbstractOptionCheck

public AbstractOptionCheck(AbstractOption aDefault)
Creates a new AbstractOptionCheck instance.

Parameters:
aDefault - the default option.

Method Details

getAbstractOption

public AbstractOption getAbstractOption()

Returns:
the AbstractOption set


setOption

public void setOption(String aOption)
            throws ConversionException
Set the option to enforce.

Parameters:
aOption - string to decode option from