java.util.regex
Class Pattern.Dollar
java.lang.Object
java.util.regex.Pattern.Node
java.util.regex.Pattern.Dollar
- Enclosing class:
- Pattern
- static final class Pattern.Dollar
- extends Pattern.Node
Node to anchor at the end of a line or the end of input based on the
multiline mode.
When not in multiline mode, the $ can only match at the very end
of the input, unless the input ends in a line terminator in which
it matches right before the last line terminator.
Note that \r\n is considered an atomic line terminator.
Like ^ the $ operator matches at a position, it does not match the
line terminators themselves.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
multiline
boolean multiline
next
Pattern.Node next
Pattern.Dollar
Pattern.Dollar(boolean mul)
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)