public abstract class CreateVarFromUsageFix extends CreateFromUsageBaseFix
Modifier and Type | Field and Description |
---|---|
protected PsiReferenceExpression |
myReferenceExpression |
EMPTY_ARRAY
Constructor and Description |
---|
CreateVarFromUsageFix(PsiReferenceExpression referenceElement) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBeTargetClass(PsiClass psiClass) |
protected PsiElement |
getElement() |
protected abstract java.lang.String |
getText(java.lang.String varName) |
protected boolean |
isAvailableImpl(int offset) |
protected boolean |
isValidElement(PsiElement element) |
chooseTargetClass, filterTargetClasses, getTargetClasses, getTargetSubstitutor, getVisibility, isAllowOuterTargetClass, isAvailable, positionCursor, setupGenericParameters, setupVisibility, shouldCreateStaticMember, startInWriteAction, startTemplate, startTemplate, startTemplate
canModify, getText, setText, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFamilyName, invoke
getElementToMakeWritable
protected final PsiReferenceExpression myReferenceExpression
public CreateVarFromUsageFix(PsiReferenceExpression referenceElement)
protected boolean isValidElement(PsiElement element)
isValidElement
in class CreateFromUsageBaseFix
protected boolean canBeTargetClass(PsiClass psiClass)
canBeTargetClass
in class CreateFromUsageBaseFix
protected PsiElement getElement()
getElement
in class CreateFromUsageBaseFix
protected boolean isAvailableImpl(int offset)
isAvailableImpl
in class CreateFromUsageBaseFix
protected abstract java.lang.String getText(java.lang.String varName)