gnu.regexp

Class RETokenRepeated

Implemented Interfaces:
Serializable

(package private) final class RETokenRepeated
extends REToken

Field Summary

Fields inherited from class gnu.regexp.REToken

next, subIndex, uncle

Constructor Summary

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

Method Summary

(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)

Methods inherited from class gnu.regexp.REToken

chain, dump, dumpAll, getMinimumLength, match, next, setUncle

Constructor Details

RETokenRepeated

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

Method Details

dump

(package private)  void dump(StringBuffer os)
Overrides:
dump in interface REToken


getMinimumLength

(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.
Overrides:
getMinimumLength in interface REToken


isStingy

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


makeStingy

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


match

(package private)  boolean match(CharIndexed input,
                                 REMatch mymatch)
Overrides:
match in interface REToken