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) int
end()
int
end
(int group) boolean
find()
boolean
find
(int start) private int
getEnd()
group()
group
(int group) int
boolean
boolean
boolean
hitEnd()
private boolean
boolean
boolean
matches()
pattern()
region
(int start, int end) int
int
replaceAll
(String replacement) replaceFirst
(String replacement) boolean
reset()
reset
(CharSequence input) int
start()
int
start
(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:
end
in interfaceMatchResult
-
end
public int end(int group) - Specified by:
end
in interfaceMatchResult
-
find
public boolean find() -
find
public boolean find(int start) -
group
- Specified by:
group
in interfaceMatchResult
-
group
- Specified by:
group
in interfaceMatchResult
-
groupCount
public int groupCount()- Specified by:
groupCount
in 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:
start
in interfaceMatchResult
-
start
public int start(int group) - Specified by:
start
in interfaceMatchResult
-
toMatchResult
-
toString
-
useAnchoringBounds
-
usePattern
-
useTransparentBounds
-
getEnd
private int getEnd() -
lengthChanged
private boolean lengthChanged()
-