public class MutationSignature
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_MUTATES |
static java.lang.String |
INVALID_TOKEN_MESSAGE |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
checkSignature(java.lang.String signature,
PsiMethod method)
Checks the mutation signature
|
static MutationSignature |
fromMethod(PsiMethod method) |
java.util.stream.Stream<PsiExpression> |
mutatedExpressions(PsiMethodCallExpression call)
Returns a stream of expressions which are mutated by given signature assuming that supplied call
resolves to the method with this signature.
|
boolean |
mutatesAnything() |
boolean |
mutatesArg(int n) |
boolean |
mutatesThis() |
static MutationSignature |
parse(java.lang.String signature) |
boolean |
preservesArg(int n) |
boolean |
preservesThis() |
public static final java.lang.String ATTR_MUTATES
public static final java.lang.String INVALID_TOKEN_MESSAGE
public boolean mutatesThis()
public boolean mutatesArg(int n)
public boolean preservesThis()
public boolean preservesArg(int n)
public java.util.stream.Stream<PsiExpression> mutatedExpressions(PsiMethodCallExpression call)
call - a call which resolves to the method with this mutation signaturePsiThisExpression might be returned.public boolean mutatesAnything()
public static MutationSignature parse(java.lang.String signature)
signature - to parsejava.lang.IllegalArgumentException - if signature is invalidpublic static java.lang.String checkSignature(java.lang.String signature,
PsiMethod method)
signature - signature to checkmethod - a method to apply the signaturepublic static MutationSignature fromMethod(PsiMethod method)