Class DetectorOptions
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions
-
public final class DetectorOptions extends java.lang.ObjectOptions for a detector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDetectorOptions.BuilderClass which implements Builder pattern to build DetectorOptions instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFormat()Format of the regular expression.intgetMaximum()The maximum number of allowed detections.java.lang.StringgetMessage()The message to report violations with.intgetMinimum()The minimum number of allowed detections.java.util.regex.PatterngetPattern()The pattern to use when matching.AbstractViolationReportergetReporter()The violation reporter to use.MatchSuppressorgetSuppressor()The suppressor to use.static DetectorOptions.BuildernewBuilder()Returns new Builder object.
-
-
-
Method Detail
-
newBuilder
public static DetectorOptions.Builder newBuilder()
Returns new Builder object.- Returns:
- Builder object.
-
getFormat
public java.lang.String getFormat()
Format of the regular expression.- Returns:
- format of the regular expression.
-
getReporter
public AbstractViolationReporter getReporter()
The violation reporter to use.- Returns:
- the violation reporter to use.
-
getMessage
public java.lang.String getMessage()
The message to report violations with.- Returns:
- the message to report violations with.
-
getMinimum
public int getMinimum()
The minimum number of allowed detections.- Returns:
- the minimum number of allowed detections.
-
getMaximum
public int getMaximum()
The maximum number of allowed detections.- Returns:
- the maximum number of allowed detections.
-
getSuppressor
public MatchSuppressor getSuppressor()
The suppressor to use.- Returns:
- the suppressor to use.
-
getPattern
public java.util.regex.Pattern getPattern()
The pattern to use when matching.- Returns:
- the pattern to use when matching.
-
-