Class PatternsFilter.Builder
java.lang.Object
com.ibm.wala.util.config.PatternsFilter.Builder
- Enclosing class:
PatternsFilter
Helper for collecting regular expressions to form a
PatternsFilter.-
Method Summary
Modifier and TypeMethodDescriptionAdds the given regular expression to the collection to be used for an eventualPatternsFilter.addAll(InputStream input) Adds the given regular expressions to the collection to be used for an eventualPatternsFilter.build()Creates aPatternsFilterwith the accumulated regular expressions.
-
Method Details
-
add
Adds the given regular expression to the collection to be used for an eventualPatternsFilter.- Parameters:
regexp- the regular expression to addAll- Returns:
this, to allow method chaining
-
addAll
Adds the given regular expressions to the collection to be used for an eventualPatternsFilter.Any line that starts with
"#"is discarded as a comment.- Parameters:
input- the regular expressions to addAll, one per line- Returns:
this, to allow method chaining
-
build
Creates aPatternsFilterwith the accumulated regular expressions.- Returns:
- a new
PatternsFilterinstance
-