new* -> 'instance creation' write* -> 'writing' add* -> 'adding - removing' remove* -> 'adding - removing'
Alexandre On 15 Aug 2010, at 14:55, Mariano Martinez Peck wrote: > Hi folks...while browsing AutomaticMethodCategorizer I found the place where > the rules are defined. It is cool becuase we can add the rules we want. I am > all ears. > > For now, it is doing this: > > > defaultCategorizationRules > > "The order is relevant, the categorizer uses the first rule matching - DF" > > ^OrderedCollection new > add: MethodCategorizationRule forAccessors; > add: (MethodCategorizationRule whenSelectorMatches: 'initialize*' > categorizeIn: #initialization); > add: (MethodCategorizationRule whenSelectorMatches: 'is*' > categorizeIn: #testing); > add: (MethodCategorizationRule whenSelectorMatches: 'has*' > categorizeIn: #testing); > add: (MethodCategorizationRule whenSelectorMatches: '=' categorizeIn: > #comparing); > add: (MethodCategorizationRule whenSelectorMatches: 'hash' > categorizeIn: #comparing); > add: (MethodCategorizationRule whenSelectorMatches: 'default*' > categorizeIn: #defaults); > add: (MethodCategorizationRule whenSelectorMatches: 'printOn:' > categorizeIn: #printing); > add: (MethodCategorizationRule whenSelectorMatches: 'accept:' > categorizeIn: #'visitor accepting'); > add: (MethodCategorizationRule whenSelectorMatches: 'visit*:' > categorizeIn: #visiting); > add: (MethodCategorizationRule whenSelectorMatches: 'value' > categorizeIn: #evaluating); > add: (MethodCategorizationRule > whenSelectorMatches: 'test*' > andClassInheritsFrom: TestCase > categorizeIn: #tests); > add: MethodCategorizationRule usingMostUsedCategoryInSuperClasses; > add: MethodCategorizationRule usingMostUsedCategoryInImage; > yourself > > > > We should improve this guy.... ideas to add/change? > > Cheers > > Mariano > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
