java.util.regex
Class Pattern.First
java.lang.Object
java.util.regex.Pattern.Node
java.util.regex.Pattern.First
- Enclosing class:
- Pattern
- static final class Pattern.First
- extends Pattern.Node
Searches until the next instance of its atom. This is useful for
finding the atom efficiently without passing an instance of it
(greedy problem) and without a lot of wasted search time (reluctant
problem).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
atom
Pattern.Node atom
next
Pattern.Node next
Pattern.First
Pattern.First(Pattern.Node 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
dup
Pattern.Node dup(boolean not)