public interface Matcher extends MatchResult
Matcher.| Modifier and Type | Method and Description |
|---|---|
Matcher |
appendReplacement(Appendable appendable,
String replacement) |
<T extends Appendable> |
appendTail(T appendable) |
int |
end() |
int |
end(int group) |
int |
end(String name) |
boolean |
find() |
boolean |
find(int start) |
String |
group() |
String |
group(int group) |
String |
group(String name) |
int |
groupCount() |
boolean |
hasAnchoringBounds() |
boolean |
hasTransparentBounds() |
boolean |
hitEnd() |
boolean |
lookingAt() |
boolean |
matches() |
Pattern |
pattern() |
String |
quoteReplacement(String s) |
Matcher |
region(int start,
int end) |
int |
regionEnd() |
int |
regionStart() |
String |
replaceAll(String replacement) |
String |
replaceFirst(String replacement) |
boolean |
requireEnd() |
Matcher |
reset() |
Matcher |
reset(CharSequence input) |
int |
start() |
int |
start(int group) |
int |
start(String name) |
MatchResult |
toMatchResult() |
String |
toString() |
Matcher |
useAnchoringBounds(boolean b) |
Matcher |
usePattern(Pattern newPattern) |
Matcher |
useTransparentBounds(boolean b) |
Pattern pattern()
Matcher.pattern()MatchResult toMatchResult()
Matcher.toMatchResult()Matcher reset()
Matcher.reset()Matcher reset(CharSequence input)
Matcher.reset(CharSequence)int start()
start in interface MatchResultMatchResult.start(),
Matcher.start()int start(String name)
Matcher.start(String)int start(int group)
start in interface MatchResultMatchResult.start(int),
Matcher.start(int)int end()
end in interface MatchResultMatchResult.end(),
Matcher.end()int end(int group)
end in interface MatchResultMatchResult.end(int),
Matcher.end(int)int end(String name)
Matcher.end(String)@Nullable String group()
group in interface MatchResultMatchResult.group(),
Matcher.group()@Nullable String group(int group)
group in interface MatchResultMatchResult.group(int),
Matcher.group(int)@Nullable String group(String name)
NullPointerException - name is nullMatcher.group(String)int groupCount()
groupCount in interface MatchResultMatchResult.groupCount(),
Matcher.groupCount()boolean matches()
Matcher.matches()boolean find()
Matcher.find()boolean find(int start)
Matcher.find(int)boolean lookingAt()
Matcher.lookingAt()String quoteReplacement(String s)
Matcher.quoteReplacement(String)Matcher appendReplacement(Appendable appendable, String replacement)
appendable - Must not throw any IOExceptionsMatcher.appendReplacement(StringBuffer, String)<T extends Appendable> T appendTail(T appendable)
appendable - Must not throw any IOExceptionsMatcher.appendTail(StringBuffer)String replaceAll(String replacement)
Matcher.replaceAll(String)String replaceFirst(String replacement)
Matcher.replaceFirst(String)Matcher region(int start, int end)
Matcher.region(int, int)int regionStart()
Matcher.regionStart()int regionEnd()
Matcher.regionEnd()boolean hasTransparentBounds()
Matcher.hasTransparentBounds()Matcher useTransparentBounds(boolean b)
Matcher.useTransparentBounds(boolean)boolean hasAnchoringBounds()
Matcher.hasAnchoringBounds()Matcher useAnchoringBounds(boolean b)
Matcher.useAnchoringBounds(boolean)String toString()
toString in class ObjectMatcher.toString()boolean hitEnd()
Matcher.hitEnd()boolean requireEnd()
Matcher.requireEnd()Copyright © 2022 Arno Unkrig. All rights reserved.