com.puppycrawl.tools.checkstyle.checks
public abstract class AbstractFormatCheck extends Check
Abstract class for checks that verify strings using a
java.util.regex.Pattern regular expression. It
provides support for setting the regular
expression using the property name format.
Version: 1.0
| Constructor Summary | |
|---|---|
| AbstractFormatCheck(String aDefaultFormat)
Creates a new AbstractFormatCheck instance. | |
| AbstractFormatCheck(String aDefaultFormat, int aCompileFlags)
Creates a new AbstractFormatCheck instance. | |
| Method Summary | |
|---|---|
| String | getFormat() |
| Pattern | getRegexp() |
| void | setCompileFlags(int aCompileFlags)
Set the compile flags for the regular expression. |
| void | setFormat(String aFormat)
Set the format to the specified regular expression. |
AbstractFormatCheck instance. Defaults the
compile flag to 0 (the default).Parameters: aDefaultFormat default format
Throws: ConversionException unable to parse aDefaultFormat
AbstractFormatCheck instance.Parameters: aDefaultFormat default format aCompileFlags the Pattern flags to compile the regexp with. See Pattern#compile(java.lang.String, int)
Throws: ConversionException unable to parse aDefaultFormat
Returns: the regexp format
Returns: the regexp to match against
Parameters: aCompileFlags the compile flags to use.
Parameters: aFormat a String value
Throws: ConversionException unable to parse aFormat