Package gnu.regexp
Class RETokenRepeated
- java.lang.Object
-
- gnu.regexp.REToken
-
- gnu.regexp.RETokenRepeated
-
- All Implemented Interfaces:
java.io.Serializable
final class RETokenRepeated extends REToken
-
-
Constructor Summary
Constructors Constructor Description RETokenRepeated(int subIndex, REToken token, int min, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voiddump(java.lang.StringBuffer os)(package private) intgetMinimumLength()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) booleanisStingy()Queries if this token has minimal matching enabled.(package private) voidmakeStingy()Sets the minimal matching mode to true.(package private) booleanmatch(CharIndexed input, REMatch mymatch)Returns true if the match succeeded, false if it failed.
-
-
-
Constructor Detail
-
RETokenRepeated
RETokenRepeated(int subIndex, REToken token, int min, int max)
-
-
Method Detail
-
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:
getMinimumLengthin classREToken
-
match
boolean match(CharIndexed input, REMatch mymatch)
Description copied from class:RETokenReturns true if the match succeeded, false if it failed.
-
-