public class Replacer
extends java.lang.Object
Constructor and Description |
---|
Replacer(Project project,
ReplaceOptions options) |
Modifier and Type | Method and Description |
---|---|
ReplacementInfo |
buildReplacement(MatchResult result) |
static void |
checkReplacementPattern(Project project,
ReplaceOptions options) |
static void |
handleComments(PsiElement el,
PsiElement replacement,
ReplacementInfo replacementInfo) |
static int |
insertSubstitution(java.lang.StringBuilder result,
int offset,
ParameterInfo info,
java.lang.String image) |
void |
replace(ReplacementInfo info) |
void |
replaceAll(java.util.List<? extends ReplacementInfo> infos) |
static java.lang.String |
stripTypedVariableDecoration(java.lang.String type) |
static java.lang.String |
testReplace(java.lang.String in,
java.lang.String what,
java.lang.String by,
ReplaceOptions options,
Project project) |
static java.lang.String |
testReplace(java.lang.String in,
java.lang.String what,
java.lang.String by,
ReplaceOptions options,
Project project,
boolean sourceIsFile) |
static java.lang.String |
testReplace(java.lang.String in,
java.lang.String what,
java.lang.String by,
ReplaceOptions replaceOptions,
Project project,
boolean sourceIsFile,
boolean createPhysicalFile,
LanguageFileType sourceFileType,
Language sourceDialect) |
public Replacer(Project project, ReplaceOptions options)
public static java.lang.String stripTypedVariableDecoration(java.lang.String type)
public static int insertSubstitution(java.lang.StringBuilder result, int offset, ParameterInfo info, java.lang.String image)
public static java.lang.String testReplace(java.lang.String in, java.lang.String what, java.lang.String by, ReplaceOptions options, Project project)
public static java.lang.String testReplace(java.lang.String in, java.lang.String what, java.lang.String by, ReplaceOptions options, Project project, boolean sourceIsFile)
public static java.lang.String testReplace(java.lang.String in, java.lang.String what, java.lang.String by, ReplaceOptions replaceOptions, Project project, boolean sourceIsFile, boolean createPhysicalFile, LanguageFileType sourceFileType, Language sourceDialect)
public void replaceAll(java.util.List<? extends ReplacementInfo> infos)
public void replace(ReplacementInfo info)
public static void handleComments(PsiElement el, PsiElement replacement, ReplacementInfo replacementInfo)
public static void checkReplacementPattern(Project project, ReplaceOptions options)
public ReplacementInfo buildReplacement(MatchResult result)