| Modifier and Type | Method and Description |
|---|---|
Matcher |
Matcher.appendReplacement(StringBuffer sb,
CaptureReplacer replacer)
Implements a non-terminal append-and-replace step.
|
Matcher |
Matcher.appendReplacement(StringBuffer sb,
java.util.function.Function<Matcher,String> evaluator) |
Matcher |
Matcher.appendReplacement(StringBuffer sb,
String replacement)
Implements a non-terminal append-and-replace step.
|
Matcher |
Pattern.matcher(CharSequence input)
Creates a matcher that will match the given input against this pattern.
|
Matcher |
Matcher.region(int start,
int end)
Sets the limits of this matcher's region.
|
Matcher |
Matcher.reset()
Resets this matcher.
|
Matcher |
Matcher.reset(CharSequence input)
Resets this matcher with a new input sequence.
|
Matcher |
Matcher.useAnchoringBounds(boolean b)
Sets the anchoring of region bounds for this matcher.
|
Matcher |
Matcher.usePattern(Pattern newPattern)
Changes the Pattern that this Matcher uses to find matches
with.
|
Matcher |
Matcher.useTransparentBounds(boolean b)
Sets the transparency of region bounds for this matcher.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
Pattern.CustomNode.match(Matcher matcher,
int i,
CharSequence seq)
Matches the input character sequence against this node's pattern.
|
protected boolean |
Pattern.CustomNode.matchNext(Matcher matcher,
int i,
CharSequence seq) |
protected Object |
Pattern.CustomNode.retrieveData(Matcher matcher)
Retrieves the data stored in matcher.
|
protected void |
Pattern.CustomNode.storeData(Matcher matcher,
Object data)
Stores some search data in matcher.
|
| Modifier and Type | Method and Description |
|---|---|
Matcher |
Matcher.appendReplacement(StringBuffer sb,
java.util.function.Function<Matcher,String> evaluator) |
String |
Matcher.replaceAll(java.util.function.Function<Matcher,String> evaluator)
Replaces every subsequence of the input sequence that matches the pattern
with the replacement string computed with the given Match Evaluator.
|
String |
Matcher.replaceFirst(java.util.function.Function<Matcher,String> evaluator) |
Copyright © 2019. All rights reserved.