final class RETokenRepeated extends REToken
Modifier and Type | Field and Description |
---|---|
private int |
max |
private int |
min |
private boolean |
stingy |
private REToken |
token |
Constructor and Description |
---|
RETokenRepeated(int subIndex,
REToken token,
int min,
int max) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
dump(StringBuffer os) |
(package private) int |
getMinimumLength()
The minimum length of a repeated token is the minimum length
of the token multiplied by the minimum number of times it must
match.
|
(package private) boolean |
isStingy()
Queries if this token has minimal matching enabled.
|
(package private) void |
makeStingy()
Sets the minimal matching mode to true.
|
(package private) boolean |
match(CharIndexed input,
REMatch mymatch)
Returns true if the match succeeded, false if it failed.
|
private REMatch |
matchRest(CharIndexed input,
REMatch newMatch) |
RETokenRepeated(int subIndex, REToken token, int min, int max)
void makeStingy()
boolean isStingy()
int getMinimumLength()
getMinimumLength
in class REToken
boolean match(CharIndexed input, REMatch mymatch)
REToken
private REMatch matchRest(CharIndexed input, REMatch newMatch)
void dump(StringBuffer os)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses