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 TypeMethodDescriptionvoid
addAllEnhancementMethodsForType
(IType typeToGetEnhancementsFor) void
addAllEnhancementPropsForType
(IType typeToGetEnhancementsFor, boolean caseSensitive) private Map<String,
List<IMethodInfo>> createMethodMap
(Collection<IMethodInfo> methodsToAddTo) private GosuClassTypeInfo
getTypeInfoForType
(IType typeToGetEnhancementsFor, IGosuEnhancementInternal enhancementType) makeOrderedTypeParams
(TypeVarToTypeMap map, IGosuEnhancementInternal enhancementType) private boolean
notAnInternalOrPrivateField
(IPropertyInfo existingPropInfo) private IGosuEnhancementInternal
parameterizeEnhancement
(IGosuEnhancementInternal enhancementType, IType typeToGetEnhancementsFor) private boolean
paramTypesEqual
(IParameterInfo[] methodParams, IParameterInfo[] extensionParams) private boolean
shouldAddMethod
(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
-