[Cuis-dev] reflection in Cuis

Mark Volkmann r.mark.volkmann at gmail.com
Fri Jun 14 11:14:54 PDT 2024


Is there a way to find these things?

- all installed packages
- all class categories
- all classes in a given class category
- all message categories used by a given class
- the source code for a given method as a string or tree of AST nodes

On Fri, Jun 14, 2024 at 12:48 PM Hernán Wilkinson <
hernan.wilkinson at 10pines.com> wrote:

> well, they are all kind of Collection :-) and if all you need is what
> Collection defines as protocol is good enough. ... that is the whole idea
> behind polymorphism. That does not mean that maybe returning an Array
> instead of a Set is better in some message, but we should see case by case,
> how it is used that message, etc.
>
>
> On Fri, Jun 14, 2024 at 2:32 PM Mark Volkmann via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> I've learned how to discover lots of things using reflection, but not the
>> following. Are there methods that return these?
>>
>> - all installed packages
>> - all class categories
>> - all classes in a given class category
>> - all message categories used by a given class
>> - the source code for a given method as a string or tree of AST nodes
>>
>> There seems to be some inconsistencies in the kind of object returned by
>> the reflection methods. I've encountered at least these so far: Array, Set,
>> IdentitySet, and OrderCollection. I understand the distinction between
>> these collection types, but it's not clear why the reflection methods don't
>> all return the same kind of collection.
>>
>> --
>> R. Mark Volkmann
>> Object Computing, Inc.
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
>
> --
>
> *Hernán WilkinsonAgile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina
>


-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240614/2065fb07/attachment.htm>


More information about the Cuis-dev mailing list