public class DefaultCaptureReplacer extends Object implements CaptureReplacer
CaptureReplacer.
A CaptureTreeNode is replaced by the replacement strings of all its
children (ignoring those inside lookarounds) and the text in between the
children.
Matcher.replaceAll(CaptureReplacer)| Constructor and Description |
|---|
DefaultCaptureReplacer() |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
getInput()
Returns the whole input sequence
|
String |
replace(CaptureTreeNode node)
A
CaptureTreeNode is replaced by the replacement strings of all
its children (ignoring those inside lookarounds) and the text in between
the children. |
void |
setInput(CharSequence input)
Sets the whole input sequence
|
public CharSequence getInput()
CaptureReplacergetInput in interface CaptureReplacerpublic void setInput(CharSequence input)
CaptureReplacersetInput in interface CaptureReplacerinput - The whole input sequencepublic String replace(CaptureTreeNode node)
CaptureTreeNode is replaced by the replacement strings of all
its children (ignoring those inside lookarounds) and the text in between
the children.replace in interface CaptureReplacernode - The node to be replacedCaptureTreeNodeCopyright © 2019. All rights reserved.