public class MutationUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
replaceExpression(java.lang.String newExpression,
PsiExpression exp) |
static void |
replaceExpressionIfValid(java.lang.String newExpression,
PsiExpression exp) |
static void |
replaceReference(java.lang.String className,
PsiJavaCodeReferenceElement ref) |
static void |
replaceStatement(java.lang.String newStatement,
PsiStatement statement) |
static void |
replaceType(java.lang.String newTypeText,
PsiTypeElement typeElement) |
public static void replaceType(java.lang.String newTypeText, PsiTypeElement typeElement) throws IncorrectOperationException
IncorrectOperationException
public static void replaceExpression(java.lang.String newExpression, PsiExpression exp) throws IncorrectOperationException
IncorrectOperationException
public static void replaceExpressionIfValid(java.lang.String newExpression, PsiExpression exp) throws IncorrectOperationException
IncorrectOperationException
public static void replaceReference(java.lang.String className, PsiJavaCodeReferenceElement ref) throws IncorrectOperationException
IncorrectOperationException
public static void replaceStatement(java.lang.String newStatement, PsiStatement statement) throws IncorrectOperationException
IncorrectOperationException