diff options
author | Juerg Billeter <j@bitron.ch> | 2007-12-15 09:11:00 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-12-15 09:11:00 +0000 |
commit | 415d9160d8dfd115a5dc747f65aad00cfcf6907b (patch) | |
tree | 45fd6fd0d63af9e4807ddf42f7be454719aef4ba /vala/valaclasstype.vala | |
parent | 8ff63ef87061c97da1214d863f67fd99f321acfd (diff) | |
download | vala-415d9160d8dfd115a5dc747f65aad00cfcf6907b.tar.gz |
add ClassType and InterfaceType classes, let ArrayType derive from
2007-12-15 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/valaarraytype.vala, vala/valaclass.vala,
vala/valaclasstype.vala, vala/valainterface.vala,
vala/valainterfacetype.vala, vala/valareferencetype.vala,
vala/valasemanticanalyzer.vala, vala/valasignal.vala,
gobject/valaccodegenerator.vala,
gobject/valaccodegeneratormemberaccess.vala,
gobject/valaccodegeneratormethod.vala,
gobject/valadbusbindingprovider.vala: add ClassType and InterfaceType
classes, let ArrayType derive from ReferenceType, mark ReferenceType
as abstract
svn path=/trunk/; revision=773
Diffstat (limited to 'vala/valaclasstype.vala')
-rw-r--r-- | vala/valaclasstype.vala | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vala/valaclasstype.vala b/vala/valaclasstype.vala new file mode 100644 index 000000000..e9d64fba4 --- /dev/null +++ b/vala/valaclasstype.vala @@ -0,0 +1,37 @@ +/* valaclasstype.vala + * + * Copyright (C) 2007 Jürg Billeter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Author: + * Jürg Billeter <j@bitron.ch> + */ + +using GLib; + +/** + * A class type. + */ +public class Vala.ClassType : ReferenceType { + /** + * The referred class. + */ + public weak Class class_symbol { get; set; } + + public ClassType (construct Class! class_symbol) { + data_type = class_symbol; + } +} |