com.puppycrawl.tools.checkstyle.checks
public abstract class AbstractFormatCheck extends Check
Abstract class for checks that verify strings using a
{@link 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. |
Method Summary | |
---|---|
String | getFormat() |
Pattern | getRegexp() |
void | setFormat(String aFormat)
Set the format to the specified regular expression. |
AbstractFormatCheck
instance.Parameters: aDefaultFormat default format
Throws: ConversionException unable to parse aDefaultFormat
Returns: the regexp format
Returns: the regexp to match against
Parameters: aFormat a String
value
Throws: ConversionException unable to parse aFormat