Class PropertyDeriver
java.lang.Object
gw.internal.gosu.parser.java.classinfo.PropertyDeriver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddFromRemainingSetters(IJavaClassInfo jci, Map<String, List<IJavaClassMethod>> mapSetters, List<IJavaPropertyDescriptor> propertyDescriptors) private static voidaddInheritedUnrelatedGettersAndSetters(IJavaClassInfo jci, List<IJavaPropertyDescriptor> propertyDescriptors) private static voidaddPropertyDescriptor(List<IJavaPropertyDescriptor> propertyDescriptors, String propName, IJavaClassMethod getter, IJavaClassMethod setter) private static voidaddUnpairedMethods(IJavaClassInfo type, Map<String, IJavaClassMethod> mapGetters, Map<String, IJavaClassMethod> mapSetters) private static booleandoesGetterDescMatchSetterMethod(IJavaClassMethod setter, IJavaPropertyDescriptor pd, boolean[] getterNameFound) private static booleandoesSetterDescMatchGetterMethod(IJavaClassMethod getter, IJavaClassMethod setter) private static booleanprivate static IJavaClassMethodfindBestMatchingSetter(boolean bStatic, IJavaClassType getterType, List<IJavaClassMethod> setters) private static IJavaPropertyDescriptorfindProperty(String name, List<IJavaPropertyDescriptor> propertyDescriptors) private static voidfindUnpairedMethods(IJavaClassInfo jci, Map<String, IJavaClassMethod> mapGetters, Map<String, IJavaClassMethod> mapSetters) private static ITypestatic IJavaPropertyDescriptor[]private static booleanisSetterFromPropIncompatible(IJavaClassMethod setter, IJavaPropertyDescriptor pd, boolean[] incompatibleSetterFound) private static IJavaClassMethodmaybeFindGetterInSuper(IJavaClassMethod setter, IJavaClassInfo superClass, boolean[] getterNameFound) private static IJavaClassMethodmaybeFindGetterInSuperInterfaces(IJavaClassMethod setter, IJavaClassInfo[] superInterfaces, boolean[] getterNameFound) private static IJavaClassMethodmaybeFindSetterInSuper(IJavaClassMethod getter, IJavaClassInfo superClass) private static IJavaClassMethodmaybeFindSetterInSuperInterfaces(IJavaClassMethod getter, IJavaClassInfo[] superInterfaces) private static voidpopulateMaps(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)
-