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) intend()intend(int group) intbooleanfind()booleanfind(int start) group()group(int group) intbooleanbooleanbooleanhitEnd()booleanbooleanmatches()pattern()region(int start, int end) intintreplaceAll(String replacement) replaceAll(Function<MatchResult, String> replacer) replaceFirst(String replacement) replaceFirst(Function<MatchResult, String> replacer) booleanreset()reset(CharSequence input) results()intstart()intstart(int group) inttoString()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:
startin interfaceMatchResult- See Also:
-
start
- See Also:
-
start
int start(int group) - Specified by:
startin interfaceMatchResult- See Also:
-
end
int end()- Specified by:
endin interfaceMatchResult- See Also:
-
end
int end(int group) - Specified by:
endin interfaceMatchResult- See Also:
-
end
- See Also:
-
group
- Specified by:
groupin interfaceMatchResult- See Also:
-
group
- Specified by:
groupin interfaceMatchResult- See Also:
-
group
- Throws:
NullPointerException- name isnull- See Also:
-
groupCount
int groupCount()- Specified by:
groupCountin 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 anyIOExceptions- See Also:
-
appendTail
- Parameters:
appendable- Must not throw anyIOExceptions- 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:
-