Re: [Vala] Support for custom attribute introspection/reflection?
- From: Alexandre Rosenfeld <alexandre rosenfeld gmail com>
- To: Ricardo Gladwell <ricardo gladwell gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Support for custom attribute introspection/reflection?
- Date: Thu, 5 May 2011 11:35:11 -0400
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
<ricardo gladwell gmail com>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 <ricardo gladwell gmail com>
http://www.google.com/profiles/ricardo.gladwell
Twitter: @rgladwell - MSN: axonrg gmail com
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]