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



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.

--
Jonathan Ryan



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