public static class CopyUtil.ReplaceRegexLiteralStringCopyStrategy extends CopyUtil.AbstractCopyStrategy implements CopyUtil.CopyStrategy
Modifier | Constructor and Description |
---|---|
protected |
ReplaceRegexLiteralStringCopyStrategy() |
|
ReplaceRegexLiteralStringCopyStrategy(Map<String,String> replacements) |
|
ReplaceRegexLiteralStringCopyStrategy(String regex,
String replacement) |
Modifier and Type | Method and Description |
---|---|
LiteralNode |
replaceLiteralNode(LiteralNode literalNode)
Strategies can replace a literal that is being copied.
|
replaceContextNode, replaceRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
replaceContextNode, replaceRelation
public ReplaceRegexLiteralStringCopyStrategy(Map<String,String> replacements)
public ReplaceRegexLiteralStringCopyStrategy(String regex, String replacement)
protected ReplaceRegexLiteralStringCopyStrategy()
public LiteralNode replaceLiteralNode(LiteralNode literalNode)
CopyUtil.AbstractCopyStrategy
replaceLiteralNode
in interface CopyUtil.CopyStrategy
replaceLiteralNode
in class CopyUtil.AbstractCopyStrategy
literalNode
- The original literal node.Copyright © 2017. All rights reserved.