Re: [Vala] Support for custom attribute introspection/refle ction?



On Sun, 24 Apr 2011 19:24:58 +0100, Ricardo Gladwell wrote:
That would be great, thanks!

--
Ricardo Gladwell <ricardo gladwell gmail com>
http://www.google.com/profiles/ricardo.gladwell
Twitter: @rgladwell - MSN: axonrg gmail com


On Sun, 2011-04-24 at 14:11 -0400, Jonathan Ryan wrote:
On Sun, 24 Apr 2011 19:53:17 +0200, Luca Bruno wrote:
> On Sun, Apr 24, 2011 at 06:48:39PM +0100, Ricardo Gladwell wrote:
>> Hi Everyone
>>
>> Is there anyway to find out if a class is annotated with an
>> attribute,
>> and retrieve values from these attributes?
>
> The only way is using libvala to parse your own code.
>
>>
>> If not, are there any plans to provide such a feature?
>
> Not at the moment, it could be implemented for GObject classes
> though.

 You can also do it using GObject-Introspection by parsing Girs.
 I wrote a small python script to do it if you would like to see it.


_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list

--
Jonathan Ryan

Attachment: curious-install
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]