Class DetectorOptions
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.regexp.DetectorOptions
Options for a detector.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal class
Class which implements Builder pattern to build DetectorOptions instance. -
Method Summary
Modifier and TypeMethodDescriptionFormat of the regular expression.int
The maximum number of allowed detections.The message to report violations with.int
The minimum number of allowed detections.The pattern to use when matching.The violation reporter to use.The suppressor to use.static DetectorOptions.Builder
Returns new Builder object.
-
Method Details
-
newBuilder
Returns new Builder object.- Returns:
- Builder object.
-
getFormat
Format of the regular expression.- Returns:
- format of the regular expression.
-
getReporter
The violation reporter to use.- Returns:
- the violation reporter to use.
-
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
The suppressor to use.- Returns:
- the suppressor to use.
-
getPattern
The pattern to use when matching.- Returns:
- the pattern to use when matching.
-