Package de.unkrig.ref4j
Interface Matcher
- All Superinterfaces:
MatchResult
- All Known Subinterfaces:
Matcher
A wrapper for
Matcher
.-
Method Summary
Modifier and TypeMethodDescriptionappendReplacement
(Appendable appendable, String replacement) <T extends Appendable>
TappendTail
(T appendable) int
end()
int
end
(int group) int
boolean
find()
boolean
find
(int start) group()
group
(int group) int
boolean
boolean
boolean
hitEnd()
boolean
boolean
matches()
pattern()
region
(int start, int end) int
int
replaceAll
(String replacement) replaceAll
(Function<MatchResult, String> replacer) replaceFirst
(String replacement) replaceFirst
(Function<MatchResult, String> replacer) boolean
reset()
reset
(CharSequence input) results()
int
start()
int
start
(int group) int
toString()
useAnchoringBounds
(boolean b) usePattern
(Pattern newPattern) useTransparentBounds
(boolean b)
-
Method Details
-
pattern
Pattern pattern()- See Also:
-
toMatchResult
MatchResult toMatchResult()- See Also:
-
usePattern
-
reset
Matcher reset()- See Also:
-
reset
- See Also:
-
start
int start()- Specified by:
start
in interfaceMatchResult
- See Also:
-
start
- See Also:
-
start
int start(int group) - Specified by:
start
in interfaceMatchResult
- See Also:
-
end
int end()- Specified by:
end
in interfaceMatchResult
- See Also:
-
end
int end(int group) - Specified by:
end
in interfaceMatchResult
- See Also:
-
end
- See Also:
-
group
- Specified by:
group
in interfaceMatchResult
- See Also:
-
group
- Specified by:
group
in interfaceMatchResult
- See Also:
-
group
- Throws:
NullPointerException
- name isnull
- See Also:
-
groupCount
int groupCount()- Specified by:
groupCount
in interfaceMatchResult
- See Also:
-
matches
boolean matches()- See Also:
-
find
boolean find()- See Also:
-
find
boolean find(int start) - See Also:
-
lookingAt
boolean lookingAt()- See Also:
-
quoteReplacement
- See Also:
-
appendReplacement
- Parameters:
appendable
- Must not throw anyIOException
s- See Also:
-
appendTail
- Parameters:
appendable
- Must not throw anyIOException
s- See Also:
-
replaceAll
- See Also:
-
replaceAll
- See Also:
-
results
Stream<MatchResult> results()- See Also:
-
replaceFirst
- See Also:
-
replaceFirst
- See Also:
-
region
- See Also:
-
regionStart
int regionStart()- See Also:
-
regionEnd
int regionEnd()- See Also:
-
hasTransparentBounds
boolean hasTransparentBounds()- See Also:
-
useTransparentBounds
- See Also:
-
hasAnchoringBounds
boolean hasAnchoringBounds()- See Also:
-
useAnchoringBounds
- See Also:
-
toString
String toString() -
hitEnd
boolean hitEnd()- See Also:
-
requireEnd
boolean requireEnd()- See Also:
-