final class RETokenRepeated extends REToken
Constructor and Description |
---|
RETokenRepeated(int subIndex,
REToken token,
int min,
int max) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
dump(java.lang.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.
|
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