Package gw.internal.gosu.parser
Class EnhancementIndex.EnhancementManager
java.lang.Object
gw.internal.gosu.parser.EnhancementIndex.EnhancementManager
- Enclosing class:
- EnhancementIndex
A helper class that holds some data structures that we build up to manage method addition/replacement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String,List<IMethodInfo>> private Collection<IMethodInfo>private Map<CharSequence,IPropertyInfo> -
Constructor Summary
ConstructorsConstructorDescriptionEnhancementManager(Collection<IMethodInfo> methodsToAddTo) EnhancementManager(Map<CharSequence, IPropertyInfo> propertyInfosToAddTo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllEnhancementMethodsForType(IType typeToGetEnhancementsFor) voidaddAllEnhancementPropsForType(IType typeToGetEnhancementsFor, boolean caseSensitive) private Map<String,List<IMethodInfo>> createMethodMap(Collection<IMethodInfo> methodsToAddTo) private GosuClassTypeInfogetTypeInfoForType(IType typeToGetEnhancementsFor, IGosuEnhancementInternal enhancementType) makeOrderedTypeParams(TypeVarToTypeMap map, IGosuEnhancementInternal enhancementType) private booleannotAnInternalOrPrivateField(IPropertyInfo existingPropInfo) private IGosuEnhancementInternalparameterizeEnhancement(IGosuEnhancementInternal enhancementType, IType typeToGetEnhancementsFor) private booleanparamTypesEqual(IParameterInfo[] methodParams, IParameterInfo[] extensionParams) private booleanshouldAddMethod(IMethodInfo enhancementMethodInfo, IGosuEnhancement enhancementType, IType typeToGetEnhancementsFor)
-
Field Details
-
_methodsToAddTo
-
_propertyInfosToAddTo
-
_methodNamesToMethods
-
-
Constructor Details
-
EnhancementManager
-
EnhancementManager
-
-
Method Details
-
addAllEnhancementMethodsForType
-
addAllEnhancementPropsForType
-
notAnInternalOrPrivateField
-
getTypeInfoForType
private GosuClassTypeInfo getTypeInfoForType(IType typeToGetEnhancementsFor, IGosuEnhancementInternal enhancementType) -
parameterizeEnhancement
private IGosuEnhancementInternal parameterizeEnhancement(IGosuEnhancementInternal enhancementType, IType typeToGetEnhancementsFor) -
makeOrderedTypeParams
private List<IType> makeOrderedTypeParams(TypeVarToTypeMap map, IGosuEnhancementInternal enhancementType) -
createMethodMap
-
shouldAddMethod
private boolean shouldAddMethod(IMethodInfo enhancementMethodInfo, IGosuEnhancement enhancementType, IType typeToGetEnhancementsFor) -
paramTypesEqual
-