Package net.loomchild.segment.srx.legacy
Class ReaderMatcher
java.lang.Object
net.loomchild.segment.srx.legacy.ReaderMatcher
- All Implemented Interfaces:
MatchResult
Represents
MatchResult that uses ReaderCharSequence as
a text - it takes care of exceptions that are thrown by it.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendReplacement(StringBuffer sb, String replacement) intend()intend(int group) booleanfind()booleanfind(int start) private intgetEnd()group()group(int group) intbooleanbooleanbooleanhitEnd()private booleanbooleanbooleanmatches()pattern()region(int start, int end) intintreplaceAll(String replacement) replaceFirst(String replacement) booleanreset()reset(CharSequence input) intstart()intstart(int group) toString()useAnchoringBounds(boolean b) usePattern(Pattern newPattern) useTransparentBounds(boolean b)
-
Field Details
-
matcher
-
text
-
oldLength
private int oldLength
-
-
Constructor Details
-
ReaderMatcher
-
-
Method Details
-
appendReplacement
-
appendTail
-
end
public int end()- Specified by:
endin interfaceMatchResult
-
end
public int end(int group) - Specified by:
endin interfaceMatchResult
-
find
public boolean find() -
find
public boolean find(int start) -
group
- Specified by:
groupin interfaceMatchResult
-
group
- Specified by:
groupin interfaceMatchResult
-
groupCount
public int groupCount()- Specified by:
groupCountin interfaceMatchResult
-
hasAnchoringBounds
public boolean hasAnchoringBounds() -
hasTransparentBounds
public boolean hasTransparentBounds() -
hitEnd
public boolean hitEnd() -
lookingAt
public boolean lookingAt() -
matches
public boolean matches() -
pattern
-
region
-
regionEnd
public int regionEnd() -
regionStart
public int regionStart() -
replaceAll
-
replaceFirst
-
requireEnd
public boolean requireEnd() -
reset
-
reset
-
start
public int start()- Specified by:
startin interfaceMatchResult
-
start
public int start(int group) - Specified by:
startin interfaceMatchResult
-
toMatchResult
-
toString
-
useAnchoringBounds
-
usePattern
-
useTransparentBounds
-
getEnd
private int getEnd() -
lengthChanged
private boolean lengthChanged()
-