public class JavaEncapsulateFieldHelper extends EncapsulateFieldHelper
Constructor and Description |
---|
JavaEncapsulateFieldHelper() |
Modifier and Type | Method and Description |
---|---|
static PsiModifierList |
createNewModifierList(EncapsulateFieldsDescriptor descriptor) |
EncapsulateFieldUsageInfo |
createUsage(EncapsulateFieldsDescriptor descriptor,
FieldDescriptor fieldDescriptor,
PsiReference reference) |
PsiMethod |
generateMethodPrototype(PsiField field,
java.lang.String methodName,
boolean isGetter) |
PsiField [] |
getApplicableFields(PsiClass aClass) |
static boolean |
isUsedInExistingAccessor(PsiClass aClass,
PsiMethod prototype,
PsiElement element) |
boolean |
processUsage(EncapsulateFieldUsageInfo usage,
EncapsulateFieldsDescriptor descriptor,
PsiMethod setter,
PsiMethod getter) |
java.lang.String |
suggestGetterName(PsiField field) |
java.lang.String |
suggestSetterName(PsiField field) |
getHelper
public EncapsulateFieldUsageInfo createUsage(EncapsulateFieldsDescriptor descriptor, FieldDescriptor fieldDescriptor, PsiReference reference)
createUsage
in class EncapsulateFieldHelper
public static PsiModifierList createNewModifierList(EncapsulateFieldsDescriptor descriptor)
public static boolean isUsedInExistingAccessor(PsiClass aClass, PsiMethod prototype, PsiElement element)
public boolean processUsage(EncapsulateFieldUsageInfo usage, EncapsulateFieldsDescriptor descriptor, PsiMethod setter, PsiMethod getter)
processUsage
in class EncapsulateFieldHelper
public PsiField [] getApplicableFields(PsiClass aClass)
getApplicableFields
in class EncapsulateFieldHelper
public java.lang.String suggestSetterName(PsiField field)
suggestSetterName
in class EncapsulateFieldHelper
public java.lang.String suggestGetterName(PsiField field)
suggestGetterName
in class EncapsulateFieldHelper
public PsiMethod generateMethodPrototype(PsiField field, java.lang.String methodName, boolean isGetter)
generateMethodPrototype
in class EncapsulateFieldHelper