public abstract class SimpleGlobPattern extends Object
* wildcard.
Crucially, this implementation:
| Modifier and Type | Method and Description |
|---|---|
static SimpleGlobPattern |
compile(String patternString) |
boolean |
matches(String candidate) |
protected abstract boolean |
matches(String candidate,
int startIndex) |
protected abstract int |
minLength() |
SimpleGlobPattern |
prependLiteral(String literal) |
SimpleGlobPattern |
prependMany() |
Optional<String> |
toLiteral() |
abstract String |
toPatternString() |
public static SimpleGlobPattern compile(String patternString)
public boolean matches(String candidate)
public SimpleGlobPattern prependLiteral(String literal)
public SimpleGlobPattern prependMany()
public abstract String toPatternString()
protected abstract int minLength()
protected abstract boolean matches(String candidate, int startIndex)
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.