Playermet / codegoogle.tart

Automatically exported from code.google.com/p/tart
0 stars 0 forks source link

Implement Attribute.Retention.RUNTIME_ITERABLE #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The purpose of this feature is to allow runtime discovery of all classes which 
have an attribute of a particular type. As an example of how this could be 
used, imagine a @Status attribute which can be attached to any static variable, 
and a "status console" which reports on the value of all of these variables by 
iterating through them.

The implementation of this feature should be done in the Tart linker. For each 
attribute class which has a retention type of "RUNTIME_ITERABLE", construct an 
array of all classes which are are annotated with that attribute, or which have 
a member which is so annotated.

Original issue reported on code.google.com by viri...@gmail.com on 1 Mar 2011 at 8:32

GoogleCodeExporter commented 8 years ago

Original comment by viri...@gmail.com on 1 Mar 2011 at 8:40