Hi Ricardo,

Could you tell why you need to get the annotated attributes?

I had a similar issue where I wanted to know the namespace of an object at
runtime and I found no way to it. I solved it partially by using static
constants in classes and GObject's type
information<http://developer.gnome.org/gobject/stable/gobject-Type-Information.html>
.
If you want I can post some code I used, not sure it will help you.

Me too would like to have true introspection support at runtime, not only
the ones provided by GObject, since that is only partially what is supported
in Vala.

*Alexandre Rosenfeld*

On Sun, Apr 24, 2011 at 13:48, Ricardo Gladwell
<[email protected]>wrote:

> Hi Everyone
>
> Vala newbie here, looking into working on some vala based applications.
> Great work on an fantastic language.
>
> Just looking through the documentation, and wondered if there is anyway
> to us introspection/reflection to get information about custom
> attributes?
>
> For example:
>
> [ Attribute ( value = "test" ) ]
> public class Test : Object {
> }
>
> Is there anyway to find out if a class is annotated with an attribute,
> and retrieve values from these attributes?
>
> If not, are there any plans to provide such a feature?
>
> TIA...
>
> --
> Ricardo Gladwell <[email protected]>
> http://www.google.com/profiles/ricardo.gladwell
> Twitter: @rgladwell - MSN: [email protected]
>
>
>
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
>
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to