summaryrefslogtreecommitdiff
path: root/vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-10-28 19:38:41 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-10-28 19:38:41 +0000
commit700beda284f0df06d0a08d4a24d3b985393297b8 (patch)
tree645e7b7dedc7ddc418c1cd73edd83159fe8bc99b /vala
parentef5ebab3ae3e34fb7019f5629de50b131de9525e (diff)
downloadvala-700beda284f0df06d0a08d4a24d3b985393297b8.tar.gz
add get_values method
2007-10-28 Juerg Billeter <j@bitron.ch> * vala/valaenum.vala: add get_values method svn path=/trunk/; revision=671
Diffstat (limited to 'vala')
-rw-r--r--vala/valaenum.vala9
1 files changed, 9 insertions, 0 deletions
diff --git a/vala/valaenum.vala b/vala/valaenum.vala
index 2c20e6f6b..1c8b4db4f 100644
--- a/vala/valaenum.vala
+++ b/vala/valaenum.vala
@@ -87,6 +87,15 @@ public class Vala.Enum : DataType {
}
/**
+ * Returns a copy of the list of enum values.
+ *
+ * @return list of enum values
+ */
+ public Collection<EnumValue> get_values () {
+ return new ReadOnlyCollection<EnumValue> (values);
+ }
+
+ /**
* Returns a copy of the list of methods.
*
* @return list of methods