java.util.regex
Class Pattern.Curly

java.lang.Object
  extended byjava.util.regex.Pattern.Node
      extended byjava.util.regex.Pattern.Curly
Enclosing class:
Pattern

static final class Pattern.Curly
extends Pattern.Node

Handles the curly-brace style repetition with a specified minimum and maximum occurrences. The * quantifier is handled as a special case. This class handles the three types.


Field Summary
(package private)  Pattern.Node atom
           
(package private)  int cmax
           
(package private)  int cmin
           
(package private)  Pattern.Node next
           
(package private)  int type
           
 
Constructor Summary
(package private) Pattern.Curly(Pattern.Node node, int cmin, int cmax, int type)
           
 
Method Summary
(package private)  Pattern.Node dup(boolean not)
           
(package private)  boolean match(Matcher matcher, int i, CharSequence seq)
          This method implements the classic accept node.
(package private)  boolean match0(Matcher matcher, int i, int j, CharSequence seq)
           
(package private)  boolean match1(Matcher matcher, int i, int j, CharSequence seq)
           
(package private)  boolean match2(Matcher matcher, int i, int j, CharSequence seq)
           
(package private)  boolean study(Pattern.TreeInfo info)
          This method is good for all zero length assertions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

atom

Pattern.Node atom

type

int type

cmin

int cmin

cmax

int cmax

next

Pattern.Node next
Constructor Detail

Pattern.Curly

Pattern.Curly(Pattern.Node node,
              int cmin,
              int cmax,
              int type)
Method Detail

match

boolean match(Matcher matcher,
              int i,
              CharSequence seq)
Description copied from class: Pattern.Node
This method implements the classic accept node.

Overrides:
match in class Pattern.Node

match0

boolean match0(Matcher matcher,
               int i,
               int j,
               CharSequence seq)

match1

boolean match1(Matcher matcher,
               int i,
               int j,
               CharSequence seq)

match2

boolean match2(Matcher matcher,
               int i,
               int j,
               CharSequence seq)

study

boolean study(Pattern.TreeInfo info)
Description copied from class: Pattern.Node
This method is good for all zero length assertions.

Overrides:
study in class Pattern.Node

dup

Pattern.Node dup(boolean not)