public final class DetectorOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DetectorOptions |
build()
Returns new DetectorOptions instance.
|
DetectorOptions.Builder |
compileFlags(int val)
Specifies the compile flags to compile a regular expression with
and returns Builder object.
|
DetectorOptions.Builder |
format(String val)
Specifies the format to use when matching lines and returns Builder object.
|
DetectorOptions.Builder |
ignoreCase(boolean val)
Specifies whether to ignore case when matching and returns Builder object.
|
DetectorOptions.Builder |
maximum(int val)
Specifies the maximum allowed number of detections and returns Builder object.
|
DetectorOptions.Builder |
message(String val)
Specifies message to use when reporting a match and returns Builder object.
|
DetectorOptions.Builder |
minimum(int val)
Specifies the minimum allowed number of detections and returns Builder object.
|
DetectorOptions.Builder |
reporter(AbstractViolationReporter val)
Specifies the violation reporter and returns Builder object.
|
DetectorOptions.Builder |
suppressor(MatchSuppressor val)
Specifies the suppressor to use and returns Builder object.
|
public Builder()
public DetectorOptions.Builder reporter(AbstractViolationReporter val)
val
- for reporting violations.public DetectorOptions.Builder compileFlags(int val)
val
- the format to use when matching lines.public DetectorOptions.Builder format(String val)
val
- the format to use when matching lines.public DetectorOptions.Builder message(String val)
val
- message to use when reporting a match.public DetectorOptions.Builder minimum(int val)
val
- the minimum allowed number of detections.public DetectorOptions.Builder maximum(int val)
val
- the maximum allowed number of detections.public DetectorOptions.Builder ignoreCase(boolean val)
val
- whether to ignore case when matching.public DetectorOptions.Builder suppressor(MatchSuppressor val)
val
- the suppressor to use.public DetectorOptions build()
Copyright © 2001–2018. All rights reserved.