gnu.regexp

Class RETokenRepeated

final class RETokenRepeated extends REToken

Constructor Summary
RETokenRepeated(int subIndex, REToken token, int min, int max)
Method Summary
voiddump(StringBuffer os)
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.
booleanisStingy()
Queries if this token has minimal matching enabled.
voidmakeStingy()
Sets the minimal matching mode to true.
booleanmatch(CharIndexed input, REMatch mymatch)

Constructor Detail

RETokenRepeated

RETokenRepeated(int subIndex, REToken token, int min, int max)

Method Detail

dump

void dump(StringBuffer os)

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.

isStingy

boolean isStingy()
Queries if this token has minimal matching enabled.

makeStingy

void makeStingy()
Sets the minimal matching mode to true.

match

boolean match(CharIndexed input, REMatch mymatch)