java.util.regex
Class Pattern.Caret

java.lang.Object
  extended byjava.util.regex.Pattern.Node
      extended byjava.util.regex.Pattern.Caret
Enclosing class:
Pattern

static final class Pattern.Caret
extends Pattern.Node

Node to anchor at the beginning of a line. This is essentially the object to match for the multiline ^.


Field Summary
(package private)  Pattern.Node next
           
 
Constructor Summary
(package private) Pattern.Caret()
           
 
Method Summary
(package private)  Pattern.Node dup(boolean not)
           
(package private)  boolean match(Matcher matcher, int i, CharSequence seq)
          This method implements the classic accept node.
(package private)  boolean study(Pattern.TreeInfo info)
          This method is good for all zero length assertions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

Pattern.Node next
Constructor Detail

Pattern.Caret

Pattern.Caret()
Method Detail

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

dup

Pattern.Node dup(boolean not)

study

boolean study(Pattern.TreeInfo info)
This method is good for all zero length assertions.