Package org.eclipse.jface.text
Interface MultiStringMatcher.Builder
- Enclosing class:
- MultiStringMatcher
public static interface MultiStringMatcher.Builder
A Builder for creating a 
MultiStringMatcher.- 
Method SummaryModifier and TypeMethodDescriptionAdds search strings to be looked for.build()Returns theMultiStringMatcherbuilt by this builder.
- 
Method Details- 
addAdds search strings to be looked for.nulland empty strings in the arguments are ignored.- Parameters:
- searchStrings- to add to be looked for by the matcher.
- Returns:
- this
- Throws:
- IllegalStateException- if the- MultiStringMatcherwas already built.
 
- 
buildMultiStringMatcher build()Returns theMultiStringMatcherbuilt by this builder.Note that a MultiStringMatcher.Builderinstance can build only oneMultiStringMatcherinstance. This is by design; otherwise the builder would have to store all the searchStrings somewhere, which may be rather memory intensive if a lot of search strings are added.- Returns:
- the MultiStringMatcher
- Throws:
- IllegalStateException- if the- MultiStringMatcherwas already built.
 
 
-