java.util.regex
Class Pattern.Branch
java.lang.Object
java.util.regex.Pattern.Node
java.util.regex.Pattern.Branch
- Enclosing class:
- Pattern
- static final class Pattern.Branch
- extends Pattern.Node
Handles the branching of alternations. Note this is also used for
the ? quantifier to branch between the case where it matches once
and where it does not occur.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prev
Pattern.Node prev
next
Pattern.Node next
Pattern.Branch
Pattern.Branch(Pattern.Node lhs,
Pattern.Node rhs)
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)