com.puppycrawl.tools.checkstyle.checks
Class AbstractFormatCheck
- Configurable, Contextualizable
public abstract class AbstractFormatCheck
Abstract class for checks that verify strings using a
regular expression. It provides support for setting the regular
expression using the property name
format.
Version:
- Oliver Burn
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity |
AbstractFormatCheck
public AbstractFormatCheck(String aDefaultFormat)
throws ConversionException Creates a new AbstractFormatCheck instance.
aDefaultFormat - default format
getFormat
public String getFormat()
- the regexp format
getRegexp
public RE getRegexp()
- the regexp to match against
setFormat
public void setFormat(String aFormat)
throws ConversionException Set the format to the specified regular expression.
aFormat - a String value