JML

java.util.regex
Class Matcher

java.lang.Object
  extended byjava.util.regex.Matcher
All Implemented Interfaces:
MatchResult

public final class Matcher
extends Object
implements MatchResult


Field Summary
(package private)  int acceptMode
           
(package private)  boolean anchoringBounds
           
(package private) static int ENDANCHOR
           
(package private)  int first
           
(package private)  int from
           
(package private)  int[] groups
           
(package private)  boolean hitEnd
           
(package private)  int last
           
(package private)  int lastAppendPosition
           
(package private)  int[] locals
           
(package private)  int lookbehindTo
           
(package private) static int NOANCHOR
           
(package private)  int oldLast
           
(package private)  Pattern parentPattern
           
(package private)  boolean requireEnd
           
(package private)  CharSequence text
           
(package private)  int to
           
(package private)  boolean transparentBounds
           
 
Constructor Summary
(package private) Matcher()
           
(package private) Matcher(Pattern, CharSequence)
           
 
Method Summary
 Matcher appendReplacement(StringBuffer, String)
           
 StringBuffer appendTail(StringBuffer)
           
(package private)  char charAt(int)
           
 int end()
           
 int end(int)
           
 boolean find()
           
 boolean find(int)
           
(package private)  CharSequence getSubSequence(int, int)
           
(package private)  int getTextLength()
           
 String group()
           
 String group(int)
           
 int groupCount()
           
 boolean hasAnchoringBounds()
           
 boolean hasTransparentBounds()
           
 boolean hitEnd()
           
 boolean lookingAt()
           
(package private)  boolean match(int, int)
           
 boolean matches()
           
 Pattern pattern()
           
static String quoteReplacement(String)
           
 Matcher region(int, int)
           
 int regionEnd()
           
 int regionStart()
           
 String replaceAll(String)
           
 String replaceFirst(String)
           
 boolean requireEnd()
           
 Matcher reset()
           
 Matcher reset(CharSequence)
           
(package private)  boolean search(int)
           
 int start()
           
 int start(int)
           
 MatchResult toMatchResult()
           
 String toString()
           
 Matcher useAnchoringBounds(boolean)
           
 Matcher usePattern(Pattern)
           
 Matcher useTransparentBounds(boolean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOANCHOR

static final int NOANCHOR

hitEnd

boolean hitEnd

groups

int[] groups

first

int first

acceptMode

int acceptMode

lastAppendPosition

int lastAppendPosition

oldLast

int oldLast

anchoringBounds

boolean anchoringBounds

from

int from

locals

int[] locals

parentPattern

Pattern parentPattern

text

CharSequence text

last

int last

requireEnd

boolean requireEnd

lookbehindTo

int lookbehindTo

to

int to

transparentBounds

boolean transparentBounds

ENDANCHOR

static final int ENDANCHOR
Constructor Detail

Matcher

Matcher()

Matcher

Matcher(Pattern,
        CharSequence)
Method Detail

pattern

public Pattern pattern()

toMatchResult

public MatchResult toMatchResult()

usePattern

public Matcher usePattern(Pattern)

reset

public Matcher reset()

reset

public Matcher reset(CharSequence)

start

public int start()
Specified by:
start in interface MatchResult

start

public int start(int)
Specified by:
start in interface MatchResult

end

public int end()
Specified by:
end in interface MatchResult

end

public int end(int)
Specified by:
end in interface MatchResult

group

public String group()
Specified by:
group in interface MatchResult

group

public String group(int)
Specified by:
group in interface MatchResult

groupCount

public int groupCount()
Specified by:
groupCount in interface MatchResult

matches

public boolean matches()

find

public boolean find()

find

public boolean find(int)

lookingAt

public boolean lookingAt()

quoteReplacement

public static String quoteReplacement(String)

appendReplacement

public Matcher appendReplacement(StringBuffer,
                                 String)

appendTail

public StringBuffer appendTail(StringBuffer)

replaceAll

public String replaceAll(String)

replaceFirst

public String replaceFirst(String)

region

public Matcher region(int,
                      int)

regionStart

public int regionStart()

regionEnd

public int regionEnd()

hasTransparentBounds

public boolean hasTransparentBounds()

useTransparentBounds

public Matcher useTransparentBounds(boolean)

hasAnchoringBounds

public boolean hasAnchoringBounds()

useAnchoringBounds

public Matcher useAnchoringBounds(boolean)

toString

public String toString()
Overrides:
toString in class Object

hitEnd

public boolean hitEnd()

requireEnd

public boolean requireEnd()

search

boolean search(int)

match

boolean match(int,
              int)

getTextLength

int getTextLength()

getSubSequence

CharSequence getSubSequence(int,
                            int)

charAt

char charAt(int)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.