[Moose-dev] Re: properties in Moose
richard.wettel at lu.unisi.ch
Wed Jun 6 09:47:36 MEST 2007
The mappers in CodeCity map metrics on visual properties of the
glyphs. And the way I get the list of selectors that compute metrics is:
<aFAMIXEntity> allDeclaredProperties collect: [:each|each
At the time, I did not realize that getting from attribute name to
selector is easier than the other way around. And in the case of some
of the metrics it seemed more intuitive to show the name of the
selector rather than its acronym. Maybe I should have just keep the
list of the properties and display their description. Is that
possible? Never too late to change :)
On Jun 6, 2007, at 8:09 AM, Tudor Girba wrote:
> Hi Ricky,
> That is an interesting question. I would be very interested in
> knowing why you need this :).
> Could you develop on your use case?
> On Jun 6, 2007, at 12:42 AM, Adrian Kuhn wrote:
>> Hey Ricky,
>> the otherway round is easier, since you can get from #NOM to
>> #numberOfMethods using
>> (self metaDescription attributeNamed: #NOM) definingMethod selector
>> so you could enumerate all attributes and detect the matching one
>> Does this answer your question?
It does, Adrian. Thanks.
More information about the Moose-dev