public final class DetectorOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
DetectorOptions.Builder
Class which implements Builder pattern to build DetectorOptions instance.
|
Modifier and Type | Field and Description |
---|---|
private int |
compileFlags
Flags to compile a regular expression with.
|
private java.lang.String |
format
Format of the regular expression to check for.
|
private boolean |
ignoreCase
Whether to ignore case when matching.
|
private int |
maximum
Maximum number of times regular expression should occur in a file.
|
private java.lang.String |
message
The message to report on detection.
|
private int |
minimum
Minimum number of times regular expression should occur in a file.
|
private java.util.regex.Pattern |
pattern
Pattern created from format.
|
private AbstractViolationReporter |
reporter
Used for reporting violations.
|
private MatchSuppressor |
suppressor
Used to determine whether to suppress a detected match.
|
Modifier | Constructor and Description |
---|---|
private |
DetectorOptions()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormat()
Format of the regular expression.
|
int |
getMaximum()
The maximum number of allowed detections.
|
java.lang.String |
getMessage()
The message to report errors with.
|
int |
getMinimum()
The minimum number of allowed detections.
|
java.util.regex.Pattern |
getPattern()
The pattern to use when matching.
|
AbstractViolationReporter |
getReporter()
The violation reporter to use.
|
MatchSuppressor |
getSuppressor()
The suppressor to use.
|
static DetectorOptions.Builder |
newBuilder()
Returns new Builder object.
|
private int compileFlags
Pattern.flags()
.private AbstractViolationReporter reporter
private java.lang.String format
private java.lang.String message
private int minimum
private int maximum
private boolean ignoreCase
private MatchSuppressor suppressor
private java.util.regex.Pattern pattern
public static DetectorOptions.Builder newBuilder()
public java.lang.String getFormat()
public AbstractViolationReporter getReporter()
public java.lang.String getMessage()
public int getMinimum()
public int getMaximum()
public MatchSuppressor getSuppressor()
public java.util.regex.Pattern getPattern()