public class LocalsOrMyInstanceFieldsControlFlowPolicy extends java.lang.Object implements ControlFlowPolicy
Modifier and Type | Method and Description |
---|---|
static LocalsOrMyInstanceFieldsControlFlowPolicy |
getInstance() |
PsiVariable |
getUsedVariable(PsiReferenceExpression refExpr) |
static boolean |
isLocalOrMyInstanceReference(PsiReferenceExpression variableReference) |
boolean |
isLocalVariableAccepted(PsiLocalVariable psiVariable) |
boolean |
isParameterAccepted(PsiParameter psiParameter) |
public PsiVariable getUsedVariable(PsiReferenceExpression refExpr)
getUsedVariable
in interface ControlFlowPolicy
public boolean isParameterAccepted(PsiParameter psiParameter)
isParameterAccepted
in interface ControlFlowPolicy
public boolean isLocalVariableAccepted(PsiLocalVariable psiVariable)
isLocalVariableAccepted
in interface ControlFlowPolicy
public static LocalsOrMyInstanceFieldsControlFlowPolicy getInstance()
public static boolean isLocalOrMyInstanceReference(PsiReferenceExpression variableReference)
variableReference
- variable reference to check