java.util.regex
Class Pattern.Sub

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

static final class Pattern.Sub
extends Pattern.Add

An object added to the tree when a character class has a range or single subtracted from it.


Field Summary
(package private)  Pattern.Node lhs
           
(package private)  Pattern.Node next
           
(package private)  Pattern.Node rhs
           
 
Constructor Summary
(package private) Pattern.Sub(Pattern.Node lhs, Pattern.Node rhs)
           
 
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

lhs

Pattern.Node lhs

rhs

Pattern.Node rhs

next

Pattern.Node next
Constructor Detail

Pattern.Sub

Pattern.Sub(Pattern.Node lhs,
            Pattern.Node rhs)
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.Add

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.Add

dup

Pattern.Node dup(boolean not)