java.util.regex
Class Pattern.GroupHead
java.lang.Object
java.util.regex.Pattern.Node
java.util.regex.Pattern.GroupHead
- Enclosing class:
- Pattern
- static final class Pattern.GroupHead
- extends Pattern.Node
The GroupHead saves the location where the group begins in the locals
and restores them when the match is done.
The matchRef is used when a reference to this group is accessed later
in the expression. The locals will have a negative value in them to
indicate that we do not want to unset the group if the reference
doesn't match.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localIndex
int localIndex
next
Pattern.Node next
Pattern.GroupHead
Pattern.GroupHead(int localCount)
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
matchRef
boolean matchRef(Matcher matcher,
int i,
CharSequence seq)
dup
Pattern.Node dup(boolean not)
study
boolean study(Pattern.TreeInfo info)
- This method is good for all zero length assertions.