java.util.regex
Class Pattern.Bound

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

static final class Pattern.Bound
extends Pattern.Node

Handles word boundaries. Includes a field to allow this one class to deal with the different types of word boundaries we can match. The word characters include underscores, letters, and digits.


Field Summary
(package private) static int BOTH
           
(package private) static int LEFT
           
(package private)  Pattern.Node next
           
(package private) static int NONE
           
(package private) static int RIGHT
           
(package private)  int type
           
 
Constructor Summary
(package private) Pattern.Bound(int n)
           
 
Method Summary
(package private)  int check(Matcher matcher, int i, CharSequence seq)
           
(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

LEFT

static int LEFT

RIGHT

static int RIGHT

BOTH

static int BOTH

NONE

static int NONE

type

int type

next

Pattern.Node next
Constructor Detail

Pattern.Bound

Pattern.Bound(int n)
Method Detail

check

int check(Matcher matcher,
          int i,
          CharSequence seq)

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.