java.util.regex
Class Pattern.Node
java.lang.Object
java.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
next
Pattern.Node next
Pattern.Node
Pattern.Node()
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.