java.util.regex
Class Pattern.Node

java.lang.Object
  extended byjava.util.regex.Pattern.Node
Direct Known Subclasses:
Pattern.Add, Pattern.All, Pattern.BackRef, Pattern.Begin, Pattern.Behind, Pattern.BitClass, Pattern.BnM, Pattern.Both, Pattern.Bound, Pattern.Branch, Pattern.Caret, Pattern.Category, Pattern.CIBackRef, Pattern.Conditional, Pattern.Ctype, Pattern.Curly, Pattern.Dollar, Pattern.Dot, Pattern.Dummy, Pattern.End, Pattern.First, Pattern.GroupCurly, Pattern.GroupHead, Pattern.GroupRef, Pattern.GroupTail, Pattern.LastMatch, Pattern.LastNode, Pattern.Loop, Pattern.Neg, Pattern.Not, Pattern.NotBehind, Pattern.NotCtype, Pattern.NotRange, Pattern.NotSingle, Pattern.NotSingleA, Pattern.NotSingleU, Pattern.Pos, Pattern.Prolog, Pattern.Ques, Pattern.Range, Pattern.Single, Pattern.SingleA, Pattern.SingleU, Pattern.Slice, Pattern.SliceA, Pattern.SliceU, Pattern.Specials, Pattern.Start, Pattern.UnixCaret, Pattern.UnixDollar, Pattern.UnixDot
Enclosing class:
Pattern

static class Pattern.Node
extends Object

Base class for all node classes. Subclasses should override the match() method as appropriate. This class is an accepting node, so its match() always returns true.


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

next

Pattern.Node next
Constructor Detail

Pattern.Node

Pattern.Node()
Method Detail

dup

Pattern.Node dup(boolean not)

match

boolean match(Matcher matcher,
              int i,
              CharSequence seq)
This method implements the classic accept node.


study

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