java.util.regex
Class Pattern.Range

java.lang.Object
  extended byjava.util.regex.Pattern.Node
      extended byjava.util.regex.Pattern.Range
Direct Known Subclasses:
Pattern.CIRange
Enclosing class:
Pattern

static class Pattern.Range
extends Pattern.Node

Node class for matching characters within an explicit value range.


Field Summary
(package private)  int lower
           
(package private)  Pattern.Node next
           
(package private)  int upper
           
 
Constructor Summary
(package private) Pattern.Range()
           
(package private) Pattern.Range(int n)
           
 
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

lower

int lower

upper

int upper

next

Pattern.Node next
Constructor Detail

Pattern.Range

Pattern.Range()

Pattern.Range

Pattern.Range(int n)
Method Detail

dup

Pattern.Node dup(boolean not)
Overrides:
dup in class Pattern.Node

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

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