public final class FTWildcard extends Object
Constructor and Description |
---|
FTWildcard(byte[] query)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
match(byte[] t)
Checks if the wildcard can match a sub-string in a string.
|
int |
max()
Returns the maximum length of a potential match.
|
boolean |
parse()
Parses and constructs a new wildcard expression.
|
byte[] |
prefix()
Returns the wildcard prefix, which is the same for all matches.
|
public boolean parse()
public int max()
true
if a match is foundpublic byte[] prefix()
public boolean match(byte[] t)
t
- token to search for matchtrue
if a match is foundCopyright © 2005–2015 BaseX Team. All rights reserved.