java.util.regex
Class Matcher
java.lang.Object
java.util.regex.Matcher
- All Implemented Interfaces:
- MatchResult
- public final class Matcher
- extends Object
- implements MatchResult
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
Matcher
Matcher()
Matcher
Matcher(Pattern,
CharSequence)
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 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.