Package gnu.regexp
Class RETokenRepeated
java.lang.Object
gnu.regexp.REToken
gnu.regexp.RETokenRepeated
- All Implemented Interfaces:
Serializable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
dump
(StringBuffer os) (package private) int
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
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.
-
Constructor Details
-
RETokenRepeated
RETokenRepeated(int subIndex, REToken token, int min, int max)
-
-
Method Details
-
makeStingy
void makeStingy()Sets the minimal matching mode to true. -
isStingy
boolean isStingy()Queries if this token has minimal matching enabled. -
getMinimumLength
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.- Overrides:
getMinimumLength
in classREToken
-
match
Description copied from class:REToken
Returns true if the match succeeded, false if it failed. -
dump
-