Class PropertyDeriver
java.lang.Object
gw.internal.gosu.parser.java.classinfo.PropertyDeriver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addFromRemainingSetters
(IJavaClassInfo jci, Map<String, List<IJavaClassMethod>> mapSetters, List<IJavaPropertyDescriptor> propertyDescriptors) private static void
addInheritedUnrelatedGettersAndSetters
(IJavaClassInfo jci, List<IJavaPropertyDescriptor> propertyDescriptors) private static void
addPropertyDescriptor
(List<IJavaPropertyDescriptor> propertyDescriptors, String propName, IJavaClassMethod getter, IJavaClassMethod setter) private static void
addUnpairedMethods
(IJavaClassInfo type, Map<String, IJavaClassMethod> mapGetters, Map<String, IJavaClassMethod> mapSetters) private static boolean
doesGetterDescMatchSetterMethod
(IJavaClassMethod setter, IJavaPropertyDescriptor pd, boolean[] getterNameFound) private static boolean
doesSetterDescMatchGetterMethod
(IJavaClassMethod getter, IJavaClassMethod setter) private static boolean
private static IJavaClassMethod
findBestMatchingSetter
(boolean bStatic, IJavaClassType getterType, List<IJavaClassMethod> setters) private static IJavaPropertyDescriptor
findProperty
(String name, List<IJavaPropertyDescriptor> propertyDescriptors) private static void
findUnpairedMethods
(IJavaClassInfo jci, Map<String, IJavaClassMethod> mapGetters, Map<String, IJavaClassMethod> mapSetters) private static IType
static IJavaPropertyDescriptor[]
private static boolean
isSetterFromPropIncompatible
(IJavaClassMethod setter, IJavaPropertyDescriptor pd, boolean[] incompatibleSetterFound) private static IJavaClassMethod
maybeFindGetterInSuper
(IJavaClassMethod setter, IJavaClassInfo superClass, boolean[] getterNameFound) private static IJavaClassMethod
maybeFindGetterInSuperInterfaces
(IJavaClassMethod setter, IJavaClassInfo[] superInterfaces, boolean[] getterNameFound) private static IJavaClassMethod
maybeFindSetterInSuper
(IJavaClassMethod getter, IJavaClassInfo superClass) private static IJavaClassMethod
maybeFindSetterInSuperInterfaces
(IJavaClassMethod getter, IJavaClassInfo[] superInterfaces) private static void
populateMaps
(Map<String, IJavaClassMethod> mapGetters, Map<String, List<IJavaClassMethod>> mapSetters, List<IJavaClassMethod> methods, boolean simplePropertyProcessing)
-
Constructor Details
-
PropertyDeriver
public PropertyDeriver()
-
-
Method Details
-
initPropertyDescriptors
-
addPropertyDescriptor
private static void addPropertyDescriptor(List<IJavaPropertyDescriptor> propertyDescriptors, String propName, IJavaClassMethod getter, IJavaClassMethod setter) -
findProperty
private static IJavaPropertyDescriptor findProperty(String name, List<IJavaPropertyDescriptor> propertyDescriptors) -
findUnpairedMethods
private static void findUnpairedMethods(IJavaClassInfo jci, Map<String, IJavaClassMethod> mapGetters, Map<String, IJavaClassMethod> mapSetters) -
addUnpairedMethods
private static void addUnpairedMethods(IJavaClassInfo type, Map<String, IJavaClassMethod> mapGetters, Map<String, IJavaClassMethod> mapSetters) -
populateMaps
private static void populateMaps(Map<String, IJavaClassMethod> mapGetters, Map<String, List<IJavaClassMethod>> mapSetters, List<IJavaClassMethod> methods, boolean simplePropertyProcessing) -
addFromRemainingSetters
private static void addFromRemainingSetters(IJavaClassInfo jci, Map<String, List<IJavaClassMethod>> mapSetters, List<IJavaPropertyDescriptor> propertyDescriptors) -
findBestMatchingSetter
private static IJavaClassMethod findBestMatchingSetter(boolean bStatic, IJavaClassType getterType, List<IJavaClassMethod> setters) -
getTypeFromMethod
-
maybeFindSetterInSuper
private static IJavaClassMethod maybeFindSetterInSuper(IJavaClassMethod getter, IJavaClassInfo superClass) -
maybeFindSetterInSuperInterfaces
private static IJavaClassMethod maybeFindSetterInSuperInterfaces(IJavaClassMethod getter, IJavaClassInfo[] superInterfaces) -
doesSetterDescMatchGetterMethod
private static boolean doesSetterDescMatchGetterMethod(IJavaClassMethod getter, IJavaPropertyDescriptor pd) -
doesSetterDescMatchGetterMethod
private static boolean doesSetterDescMatchGetterMethod(IJavaClassMethod getter, IJavaClassMethod setter) -
maybeFindGetterInSuper
private static IJavaClassMethod maybeFindGetterInSuper(IJavaClassMethod setter, IJavaClassInfo superClass, boolean[] getterNameFound) -
maybeFindGetterInSuperInterfaces
private static IJavaClassMethod maybeFindGetterInSuperInterfaces(IJavaClassMethod setter, IJavaClassInfo[] superInterfaces, boolean[] getterNameFound) -
doesGetterDescMatchSetterMethod
private static boolean doesGetterDescMatchSetterMethod(IJavaClassMethod setter, IJavaPropertyDescriptor pd, boolean[] getterNameFound) -
isSetterFromPropIncompatible
private static boolean isSetterFromPropIncompatible(IJavaClassMethod setter, IJavaPropertyDescriptor pd, boolean[] incompatibleSetterFound)
-