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.AbstractFormatCheck
- All Implemented Interfaces:
- com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable
- Direct Known Subclasses:
- AbstractNameCheck, GenericIllegalRegexpCheck, PackageNameCheck, TodoCommentCheck
- public abstract class AbstractFormatCheck
- extends com.puppycrawl.tools.checkstyle.api.Check
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:
- 1.0
| Fields inherited from class com.puppycrawl.tools.checkstyle.api.Check |
|
| Fields inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
|
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mRegexp
private org.apache.regexp.RE mRegexp
- the regexp to match against
mFormat
private java.lang.String mFormat
- the format string of the regexp
AbstractFormatCheck
public AbstractFormatCheck(java.lang.String aDefaultFormat)
throws org.apache.commons.beanutils.ConversionException
- Creates a new
AbstractFormatCheck instance.
setFormat
public void setFormat(java.lang.String aFormat)
throws org.apache.commons.beanutils.ConversionException
- Set the format to the specified regular expression.
getRegexp
public org.apache.regexp.RE getRegexp()
getFormat
public java.lang.String getFormat()