public class ReaderMatcher extends Object implements MatchResult
MatchResult that uses ReaderCharSequence as
a text - it takes care of exceptions that are thrown by it.| Constructor and Description |
|---|
ReaderMatcher(Pattern pattern,
CharSequence text) |
| Modifier and Type | Method and Description |
|---|---|
ReaderMatcher |
appendReplacement(StringBuffer sb,
String replacement) |
StringBuffer |
appendTail(StringBuffer sb) |
int |
end() |
int |
end(int group) |
boolean |
find() |
boolean |
find(int start) |
String |
group() |
String |
group(int group) |
int |
groupCount() |
boolean |
hasAnchoringBounds() |
boolean |
hasTransparentBounds() |
boolean |
hitEnd() |
boolean |
lookingAt() |
boolean |
matches() |
Pattern |
pattern() |
ReaderMatcher |
region(int start,
int end) |
int |
regionEnd() |
int |
regionStart() |
String |
replaceAll(String replacement) |
String |
replaceFirst(String replacement) |
boolean |
requireEnd() |
ReaderMatcher |
reset() |
ReaderMatcher |
reset(CharSequence input) |
int |
start() |
int |
start(int group) |
MatchResult |
toMatchResult() |
String |
toString() |
ReaderMatcher |
useAnchoringBounds(boolean b) |
ReaderMatcher |
usePattern(Pattern newPattern) |
ReaderMatcher |
useTransparentBounds(boolean b) |
public ReaderMatcher(Pattern pattern, CharSequence text)
public ReaderMatcher appendReplacement(StringBuffer sb, String replacement)
public StringBuffer appendTail(StringBuffer sb)
public int end()
end in interface MatchResultpublic int end(int group)
end in interface MatchResultpublic boolean find()
public boolean find(int start)
public String group()
group in interface MatchResultpublic String group(int group)
group in interface MatchResultpublic int groupCount()
groupCount in interface MatchResultpublic boolean hasAnchoringBounds()
public boolean hasTransparentBounds()
public boolean hitEnd()
public boolean lookingAt()
public boolean matches()
public Pattern pattern()
public ReaderMatcher region(int start, int end)
public int regionEnd()
public int regionStart()
public boolean requireEnd()
public ReaderMatcher reset()
public ReaderMatcher reset(CharSequence input)
public int start()
start in interface MatchResultpublic int start(int group)
start in interface MatchResultpublic MatchResult toMatchResult()
public ReaderMatcher useAnchoringBounds(boolean b)
public ReaderMatcher usePattern(Pattern newPattern)
public ReaderMatcher useTransparentBounds(boolean b)
Copyright © 2018. All Rights Reserved.