public class PrefixMatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.mule.tools.api.packager.filter.prefix.PrefixTree |
prefixTree |
| Constructor and Description |
|---|
PrefixMatcher() |
PrefixMatcher(Collection<String> prefixes)
Collection of prefixes that are going to be matched against.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPrefix(String prefix)
Adds a prefix to the collections of prefixes in the PrefixMatcher instance.
|
boolean |
anyMatches(List<String> input)
Checks whether any of the strings in the start with one of the defined prefixes.
|
boolean |
matches(String input)
Checks whether starts with one of the prefixes defined in the current matcher instance.
|
public PrefixMatcher(Collection<String> prefixes)
prefixes - public PrefixMatcher()
public void addPrefix(String prefix)
prefix - public boolean matches(String input)
input - string to be testedCopyright © 2018 MuleSoft Inc. All rights reserved.