gnu.regexp
Class RETokenRepeated

java.lang.Object
  extended by gnu.regexp.REToken
      extended by gnu.regexp.RETokenRepeated
All Implemented Interfaces:
java.io.Serializable

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(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.
 
Methods inherited from class gnu.regexp.REToken
chain, dumpAll, next, setUncle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getMinimumLength in class REToken

match

boolean match(CharIndexed input,
              REMatch mymatch)
Description copied from class: REToken
Returns true if the match succeeded, false if it failed.

Specified by:
match in class REToken

dump

void dump(java.lang.StringBuffer os)
Specified by:
dump in class REToken