java.util.regex
Class Pattern.GroupTail

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

static final class Pattern.GroupTail
extends Pattern.Node

The GroupTail handles the setting of group beginning and ending locations when groups are successfully matched. It must also be able to unset groups that have to be backed off of. The GroupTail node is also used when a previous group is referenced, and in that case no group information needs to be set.


Field Summary
(package private)  int groupIndex
           
(package private)  int localIndex
           
(package private)  Pattern.Node next
           
 
Constructor Summary
(package private) Pattern.GroupTail(int localCount, int groupCount)
           
 
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 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

localIndex

int localIndex

groupIndex

int groupIndex

next

Pattern.Node next
Constructor Detail

Pattern.GroupTail

Pattern.GroupTail(int localCount,
                  int groupCount)
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

dup

Pattern.Node dup(boolean not)

study

boolean study(Pattern.TreeInfo info)
This method is good for all zero length assertions.