/* class.c generated by valac, the Vala compiler
 * generated from class.vala, do not modify */

/* class.vala
 *
 * Copyright (C) 2008-2011  Florian Brosch
 *
 * 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:
 * 	Florian Brosch <flo.brosch@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include "valadoc.h"
#include <valagee.h>
#include <stdlib.h>
#include <string.h>

enum  {
	VALADOC_API_CLASS_0_PROPERTY,
	VALADOC_API_CLASS_BASE_TYPE_PROPERTY,
	VALADOC_API_CLASS_IS_ABSTRACT_PROPERTY,
	VALADOC_API_CLASS_IS_FUNDAMENTAL_PROPERTY,
	VALADOC_API_CLASS_IS_COMPACT_PROPERTY,
	VALADOC_API_CLASS_NODE_TYPE_PROPERTY,
	VALADOC_API_CLASS_NUM_PROPERTIES
};
static GParamSpec* valadoc_api_class_properties[VALADOC_API_CLASS_NUM_PROPERTIES];
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _valadoc_api_signature_builder_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_api_signature_builder_unref (var), NULL)))

struct _ValadocApiClassPrivate {
	ValaArrayList* interfaces;
	gchar* dbus_name;
	gchar* take_value_function_cname;
	gchar* get_value_function_cname;
	gchar* set_value_function_cname;
	gchar* unref_function_name;
	gchar* ref_function_name;
	gchar* free_function_name;
	gchar* finalize_function_name;
	gchar* param_spec_function_name;
	gchar* type_id;
	gchar* is_class_type_macro_name;
	gchar* class_type_macro_name;
	gchar* class_macro_name;
	gchar* private_cname;
	gchar* cname;
	ValadocApiTypeReference* _base_type;
	ValaCollection* _full_implemented_interfaces;
	gboolean _is_abstract;
	gboolean _is_fundamental;
	ValaSet* _known_derived_interfaces;
	ValaSet* _known_child_classes;
};


static gpointer valadoc_api_class_parent_class = NULL;

#define VALADOC_API_CLASS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALADOC_API_TYPE_CLASS, ValadocApiClassPrivate))
static void valadoc_api_class_set_is_fundamental (ValadocApiClass* self, gboolean value);
static void valadoc_api_class_set_is_abstract (ValadocApiClass* self, gboolean value);
static void valadoc_api_class_real_accept (ValadocApiNode* base, ValadocApiVisitor* visitor);
static ValadocContentInline* valadoc_api_class_real_build_signature (ValadocApiItem* base);
static void valadoc_api_class_finalize (GObject * obj);
static void _vala_valadoc_api_class_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_valadoc_api_class_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


ValadocApiClass* valadoc_api_class_construct (GType object_type, ValadocApiNode* parent, ValadocApiSourceFile* file, const gchar* name, ValadocApiSymbolAccessibility accessibility, ValadocApiSourceComment* comment, const gchar* cname, const gchar* private_cname, const gchar* class_macro_name, const gchar* type_macro_name, const gchar* is_type_macro_name, const gchar* type_cast_macro_name, const gchar* type_function_name, const gchar* class_type_macro_name, const gchar* is_class_type_macro_name, const gchar* dbus_name, const gchar* type_id, const gchar* param_spec_function_name, const gchar* ref_function_name, const gchar* unref_function_name, const gchar* free_function_name, const gchar* finalize_function_name, const gchar* take_value_function_cname, const gchar* get_value_function_cname, const gchar* set_value_function_cname, gboolean is_fundamental, gboolean is_abstract, gboolean is_basic_type, void* data) {
	ValadocApiClass * self = NULL;
	ValadocApiNode* _tmp0_;
	ValadocApiSourceFile* _tmp1_;
	const gchar* _tmp2_;
	ValadocApiSymbolAccessibility _tmp3_;
	ValadocApiSourceComment* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	gboolean _tmp9_;
	void* _tmp10_;
	GEqualFunc _tmp11_;
	ValaArrayList* _tmp12_;
	const gchar* _tmp13_;
	gchar* _tmp14_;
	const gchar* _tmp15_;
	gchar* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	const gchar* _tmp19_;
	gchar* _tmp20_;
	const gchar* _tmp21_;
	gchar* _tmp22_;
	const gchar* _tmp23_;
	gchar* _tmp24_;
	const gchar* _tmp25_;
	gchar* _tmp26_;
	const gchar* _tmp27_;
	gchar* _tmp28_;
	const gchar* _tmp29_;
	gchar* _tmp30_;
	const gchar* _tmp31_;
	gchar* _tmp32_;
	const gchar* _tmp33_;
	gchar* _tmp34_;
	const gchar* _tmp35_;
	gchar* _tmp36_;
	const gchar* _tmp37_;
	gchar* _tmp38_;
	const gchar* _tmp39_;
	gchar* _tmp40_;
	const gchar* _tmp41_;
	gchar* _tmp42_;
	gboolean _tmp43_;
	gboolean _tmp44_;
	g_return_val_if_fail (parent != NULL, NULL);
	g_return_val_if_fail (file != NULL, NULL);
	g_return_val_if_fail (name != NULL, NULL);
	_tmp0_ = parent;
	_tmp1_ = file;
	_tmp2_ = name;
	_tmp3_ = accessibility;
	_tmp4_ = comment;
	_tmp5_ = type_macro_name;
	_tmp6_ = is_type_macro_name;
	_tmp7_ = type_cast_macro_name;
	_tmp8_ = type_function_name;
	_tmp9_ = is_basic_type;
	_tmp10_ = data;
	self = (ValadocApiClass*) valadoc_api_typesymbol_construct (object_type, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_, _tmp6_, _tmp7_, _tmp8_, _tmp9_, _tmp10_);
	_tmp11_ = g_direct_equal;
	_tmp12_ = vala_array_list_new (VALADOC_API_TYPE_TYPEREFERENCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp11_);
	_vala_iterable_unref0 (self->priv->interfaces);
	self->priv->interfaces = _tmp12_;
	_tmp13_ = is_class_type_macro_name;
	_tmp14_ = g_strdup (_tmp13_);
	_g_free0 (self->priv->is_class_type_macro_name);
	self->priv->is_class_type_macro_name = _tmp14_;
	_tmp15_ = class_type_macro_name;
	_tmp16_ = g_strdup (_tmp15_);
	_g_free0 (self->priv->class_type_macro_name);
	self->priv->class_type_macro_name = _tmp16_;
	_tmp17_ = class_macro_name;
	_tmp18_ = g_strdup (_tmp17_);
	_g_free0 (self->priv->class_macro_name);
	self->priv->class_macro_name = _tmp18_;
	_tmp19_ = private_cname;
	_tmp20_ = g_strdup (_tmp19_);
	_g_free0 (self->priv->private_cname);
	self->priv->private_cname = _tmp20_;
	_tmp21_ = dbus_name;
	_tmp22_ = g_strdup (_tmp21_);
	_g_free0 (self->priv->dbus_name);
	self->priv->dbus_name = _tmp22_;
	_tmp23_ = type_id;
	_tmp24_ = g_strdup (_tmp23_);
	_g_free0 (self->priv->type_id);
	self->priv->type_id = _tmp24_;
	_tmp25_ = cname;
	_tmp26_ = g_strdup (_tmp25_);
	_g_free0 (self->priv->cname);
	self->priv->cname = _tmp26_;
	_tmp27_ = param_spec_function_name;
	_tmp28_ = g_strdup (_tmp27_);
	_g_free0 (self->priv->param_spec_function_name);
	self->priv->param_spec_function_name = _tmp28_;
	_tmp29_ = unref_function_name;
	_tmp30_ = g_strdup (_tmp29_);
	_g_free0 (self->priv->unref_function_name);
	self->priv->unref_function_name = _tmp30_;
	_tmp31_ = ref_function_name;
	_tmp32_ = g_strdup (_tmp31_);
	_g_free0 (self->priv->ref_function_name);
	self->priv->ref_function_name = _tmp32_;
	_tmp33_ = finalize_function_name;
	_tmp34_ = g_strdup (_tmp33_);
	_g_free0 (self->priv->finalize_function_name);
	self->priv->finalize_function_name = _tmp34_;
	_tmp35_ = free_function_name;
	_tmp36_ = g_strdup (_tmp35_);
	_g_free0 (self->priv->free_function_name);
	self->priv->free_function_name = _tmp36_;
	_tmp37_ = take_value_function_cname;
	_tmp38_ = g_strdup (_tmp37_);
	_g_free0 (self->priv->take_value_function_cname);
	self->priv->take_value_function_cname = _tmp38_;
	_tmp39_ = get_value_function_cname;
	_tmp40_ = g_strdup (_tmp39_);
	_g_free0 (self->priv->get_value_function_cname);
	self->priv->get_value_function_cname = _tmp40_;
	_tmp41_ = set_value_function_cname;
	_tmp42_ = g_strdup (_tmp41_);
	_g_free0 (self->priv->set_value_function_cname);
	self->priv->set_value_function_cname = _tmp42_;
	_tmp43_ = is_fundamental;
	valadoc_api_class_set_is_fundamental (self, _tmp43_);
	_tmp44_ = is_abstract;
	valadoc_api_class_set_is_abstract (self, _tmp44_);
	return self;
}


ValadocApiClass* valadoc_api_class_new (ValadocApiNode* parent, ValadocApiSourceFile* file, const gchar* name, ValadocApiSymbolAccessibility accessibility, ValadocApiSourceComment* comment, const gchar* cname, const gchar* private_cname, const gchar* class_macro_name, const gchar* type_macro_name, const gchar* is_type_macro_name, const gchar* type_cast_macro_name, const gchar* type_function_name, const gchar* class_type_macro_name, const gchar* is_class_type_macro_name, const gchar* dbus_name, const gchar* type_id, const gchar* param_spec_function_name, const gchar* ref_function_name, const gchar* unref_function_name, const gchar* free_function_name, const gchar* finalize_function_name, const gchar* take_value_function_cname, const gchar* get_value_function_cname, const gchar* set_value_function_cname, gboolean is_fundamental, gboolean is_abstract, gboolean is_basic_type, void* data) {
	return valadoc_api_class_construct (VALADOC_API_TYPE_CLASS, parent, file, name, accessibility, comment, cname, private_cname, class_macro_name, type_macro_name, is_type_macro_name, type_cast_macro_name, type_function_name, class_type_macro_name, is_class_type_macro_name, dbus_name, type_id, param_spec_function_name, ref_function_name, unref_function_name, free_function_name, finalize_function_name, take_value_function_cname, get_value_function_cname, set_value_function_cname, is_fundamental, is_abstract, is_basic_type, data);
}


/**
 * Returns the name of this class as it is used in C.
 */
gchar* valadoc_api_class_get_cname (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->cname;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the name of this class' private data structure as it is used in C.
 */
gchar* valadoc_api_class_get_private_cname (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->private_cname;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the C symbol representing the runtime type id for this data type.
 */
gchar* valadoc_api_class_get_type_id (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->type_id;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the C function name that increments the reference count of
 * instances of this data type.
 *
 * @return the name of the C function or null if this data type does not
 *         support reference counting
 */
gchar* valadoc_api_class_get_ref_function_cname (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->ref_function_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the C function name that decrements the reference count of
 * instances of this data type.
 *
 * @return the name of the C function or null if this data type does not
 *         support reference counting
 */
gchar* valadoc_api_class_get_unref_function_cname (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->unref_function_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the C function name that frees the
 * instances of this data type.
 *
 * @return the name of the C function or null
 */
gchar* valadoc_api_class_get_free_function_name (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->free_function_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the C function name that finalizes the
 * instances of this data type.
 *
 * @return the name of the C function or null
 */
gchar* valadoc_api_class_get_finalize_function_name (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->finalize_function_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the cname of the GValue parameter spec function.
 */
gchar* valadoc_api_class_get_param_spec_function_cname (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->param_spec_function_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the cname of the GValue setter function.
 */
gchar* valadoc_api_class_get_set_value_function_cname (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->set_value_function_cname;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the cname of the GValue getter function.
 */
gchar* valadoc_api_class_get_get_value_function_cname (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->get_value_function_cname;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the cname of the GValue taker function.
 */
gchar* valadoc_api_class_get_take_value_function_cname (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->take_value_function_cname;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the dbus-name.
 */
gchar* valadoc_api_class_get_dbus_name (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->dbus_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Gets the name of the GType macro which returns the class struct.
 */
gchar* valadoc_api_class_get_class_macro_name (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->class_macro_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Gets the name of the GType macro which returns the type of the class.
 */
gchar* valadoc_api_class_get_class_type_macro_name (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->class_type_macro_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Gets the name of the GType macro which returns whether a class instance is of a given type.
 */
gchar* valadoc_api_class_get_is_class_type_macro_name (ValadocApiClass* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->is_class_type_macro_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns a list of all newly implemented interfaces.
 *
 * @see get_full_implemented_interface_list
 */
static gpointer _vala_iterable_ref0 (gpointer self) {
	return self ? vala_iterable_ref (self) : NULL;
}


ValaCollection* valadoc_api_class_get_implemented_interface_list (ValadocApiClass* self) {
	ValaCollection* result = NULL;
	ValaArrayList* _tmp0_;
	ValaCollection* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->interfaces;
	_tmp1_ = _vala_iterable_ref0 ((ValaCollection*) _tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns a list of all implemented interfaces.
 *
 * @see get_implemented_interface_list
 */
ValaCollection* valadoc_api_class_get_full_implemented_interface_list (ValadocApiClass* self) {
	ValaCollection* result = NULL;
	ValaCollection* _tmp0_;
	ValaCollection* _tmp12_;
	ValaCollection* _tmp13_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_full_implemented_interfaces;
	if (_tmp0_ == NULL) {
		GEqualFunc _tmp1_;
		ValaArrayList* _tmp2_;
		ValaCollection* _tmp3_;
		ValaArrayList* _tmp4_;
		ValadocApiTypeReference* _tmp5_;
		_tmp1_ = g_direct_equal;
		_tmp2_ = vala_array_list_new (VALADOC_API_TYPE_TYPEREFERENCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp1_);
		_vala_iterable_unref0 (self->priv->_full_implemented_interfaces);
		self->priv->_full_implemented_interfaces = (ValaCollection*) _tmp2_;
		_tmp3_ = self->priv->_full_implemented_interfaces;
		_tmp4_ = self->priv->interfaces;
		vala_collection_add_all (_tmp3_, (ValaCollection*) _tmp4_);
		_tmp5_ = self->priv->_base_type;
		if (_tmp5_ != NULL) {
			ValaCollection* _tmp6_;
			ValadocApiTypeReference* _tmp7_;
			ValadocApiItem* _tmp8_;
			ValadocApiItem* _tmp9_;
			ValaCollection* _tmp10_;
			ValaCollection* _tmp11_;
			_tmp6_ = self->priv->_full_implemented_interfaces;
			_tmp7_ = self->priv->_base_type;
			_tmp8_ = valadoc_api_typereference_get_data_type (_tmp7_);
			_tmp9_ = _tmp8_;
			_tmp10_ = valadoc_api_class_get_full_implemented_interface_list (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, VALADOC_API_TYPE_CLASS, ValadocApiClass));
			_tmp11_ = _tmp10_;
			vala_collection_add_all (_tmp6_, _tmp11_);
			_vala_iterable_unref0 (_tmp11_);
		}
	}
	_tmp12_ = self->priv->_full_implemented_interfaces;
	_tmp13_ = _vala_iterable_ref0 (_tmp12_);
	result = _tmp13_;
	return result;
}


void valadoc_api_class_add_interface (ValadocApiClass* self, ValadocApiTypeReference* iface) {
	ValaArrayList* _tmp0_;
	ValadocApiTypeReference* _tmp1_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (iface != NULL);
	_tmp0_ = self->priv->interfaces;
	_tmp1_ = iface;
	vala_collection_add ((ValaCollection*) _tmp0_, _tmp1_);
}


/**
 * {@inheritDoc}
 */
static void valadoc_api_class_real_accept (ValadocApiNode* base, ValadocApiVisitor* visitor) {
	ValadocApiClass * self;
	ValadocApiVisitor* _tmp0_;
	self = (ValadocApiClass*) base;
	g_return_if_fail (visitor != NULL);
	_tmp0_ = visitor;
	valadoc_api_visitor_visit_class (_tmp0_, self);
}


/**
 * Returns a list of all known classes based on this class
 */
ValaCollection* valadoc_api_class_get_known_child_classes (ValadocApiClass* self) {
	ValaCollection* result = NULL;
	ValaSet* _tmp0_;
	ValaCollection* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_known_child_classes;
	_tmp1_ = _vala_iterable_ref0 ((ValaCollection*) _tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns a list of all known interfaces based on this class
 */
ValaCollection* valadoc_api_class_get_known_derived_interfaces (ValadocApiClass* self) {
	ValaCollection* result = NULL;
	ValaSet* _tmp0_;
	ValaCollection* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_known_derived_interfaces;
	_tmp1_ = _vala_iterable_ref0 ((ValaCollection*) _tmp0_);
	result = _tmp1_;
	return result;
}


void valadoc_api_class_register_derived_interface (ValadocApiClass* self, ValadocApiInterface* iface) {
	ValaSet* _tmp0_;
	ValadocApiInterface* _tmp1_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (iface != NULL);
	_tmp0_ = self->priv->_known_derived_interfaces;
	_tmp1_ = iface;
	vala_collection_add ((ValaCollection*) _tmp0_, _tmp1_);
}


void valadoc_api_class_register_child_class (ValadocApiClass* self, ValadocApiClass* cl) {
	ValadocApiTypeReference* _tmp0_;
	ValaSet* _tmp5_;
	ValadocApiClass* _tmp6_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (cl != NULL);
	_tmp0_ = self->priv->_base_type;
	if (_tmp0_ != NULL) {
		ValadocApiTypeReference* _tmp1_;
		ValadocApiItem* _tmp2_;
		ValadocApiItem* _tmp3_;
		ValadocApiClass* _tmp4_;
		_tmp1_ = self->priv->_base_type;
		_tmp2_ = valadoc_api_typereference_get_data_type (_tmp1_);
		_tmp3_ = _tmp2_;
		_tmp4_ = cl;
		valadoc_api_class_register_child_class (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, VALADOC_API_TYPE_CLASS, ValadocApiClass), _tmp4_);
	}
	_tmp5_ = self->priv->_known_child_classes;
	_tmp6_ = cl;
	vala_collection_add ((ValaCollection*) _tmp5_, _tmp6_);
}


/**
 * {@inheritDoc}
 */
static ValadocContentInline* valadoc_api_class_real_build_signature (ValadocApiItem* base) {
	ValadocApiClass * self;
	ValadocContentInline* result = NULL;
	ValadocApiSignatureBuilder* signature = NULL;
	ValadocApiSignatureBuilder* _tmp0_;
	ValadocApiSignatureBuilder* _tmp1_;
	ValadocApiSymbolAccessibility _tmp2_;
	ValadocApiSymbolAccessibility _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	ValadocApiSignatureBuilder* _tmp6_;
	ValadocApiSignatureBuilder* _tmp7_;
	gboolean _tmp8_;
	ValadocApiSignatureBuilder* _tmp12_;
	ValadocApiSignatureBuilder* _tmp13_;
	ValadocApiSignatureBuilder* _tmp14_;
	ValadocApiSignatureBuilder* _tmp15_;
	ValadocApiSignatureBuilder* _tmp16_;
	ValadocApiSignatureBuilder* _tmp17_;
	ValaList* type_parameters = NULL;
	ValaList* _tmp18_;
	ValaList* _tmp19_;
	gint _tmp20_;
	gint _tmp21_;
	gboolean first = FALSE;
	ValadocApiTypeReference* _tmp49_;
	ValaArrayList* _tmp59_;
	gint _tmp60_;
	gint _tmp61_;
	ValadocApiSignatureBuilder* _tmp87_;
	ValadocContentRun* _tmp88_;
	self = (ValadocApiClass*) base;
	_tmp0_ = valadoc_api_signature_builder_new ();
	signature = _tmp0_;
	_tmp1_ = signature;
	_tmp2_ = valadoc_api_symbol_get_accessibility ((ValadocApiSymbol*) self);
	_tmp3_ = _tmp2_;
	_tmp4_ = valadoc_api_symbol_accessibility_to_string (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = valadoc_api_signature_builder_append_keyword (_tmp1_, _tmp5_, TRUE);
	_tmp7_ = _tmp6_;
	_valadoc_api_signature_builder_unref0 (_tmp7_);
	_g_free0 (_tmp5_);
	_tmp8_ = self->priv->_is_abstract;
	if (_tmp8_) {
		ValadocApiSignatureBuilder* _tmp9_;
		ValadocApiSignatureBuilder* _tmp10_;
		ValadocApiSignatureBuilder* _tmp11_;
		_tmp9_ = signature;
		_tmp10_ = valadoc_api_signature_builder_append_keyword (_tmp9_, "abstract", TRUE);
		_tmp11_ = _tmp10_;
		_valadoc_api_signature_builder_unref0 (_tmp11_);
	}
	_tmp12_ = signature;
	_tmp13_ = valadoc_api_signature_builder_append_keyword (_tmp12_, "class", TRUE);
	_tmp14_ = _tmp13_;
	_valadoc_api_signature_builder_unref0 (_tmp14_);
	_tmp15_ = signature;
	_tmp16_ = valadoc_api_signature_builder_append_symbol (_tmp15_, (ValadocApiNode*) self, TRUE);
	_tmp17_ = _tmp16_;
	_valadoc_api_signature_builder_unref0 (_tmp17_);
	_tmp18_ = valadoc_api_node_get_children_by_type ((ValadocApiNode*) self, VALADOC_API_NODE_TYPE_TYPE_PARAMETER, FALSE);
	type_parameters = _tmp18_;
	_tmp19_ = type_parameters;
	_tmp20_ = vala_collection_get_size ((ValaCollection*) _tmp19_);
	_tmp21_ = _tmp20_;
	if (_tmp21_ > 0) {
		ValadocApiSignatureBuilder* _tmp22_;
		ValadocApiSignatureBuilder* _tmp23_;
		ValadocApiSignatureBuilder* _tmp24_;
		gboolean first = FALSE;
		ValadocApiSignatureBuilder* _tmp46_;
		ValadocApiSignatureBuilder* _tmp47_;
		ValadocApiSignatureBuilder* _tmp48_;
		_tmp22_ = signature;
		_tmp23_ = valadoc_api_signature_builder_append (_tmp22_, "<", FALSE);
		_tmp24_ = _tmp23_;
		_valadoc_api_signature_builder_unref0 (_tmp24_);
		first = TRUE;
		{
			ValaList* _param_list = NULL;
			ValaList* _tmp25_;
			ValaList* _tmp26_;
			gint _param_size = 0;
			ValaList* _tmp27_;
			gint _tmp28_;
			gint _tmp29_;
			gint _param_index = 0;
			_tmp25_ = type_parameters;
			_tmp26_ = _vala_iterable_ref0 (_tmp25_);
			_param_list = _tmp26_;
			_tmp27_ = _param_list;
			_tmp28_ = vala_collection_get_size ((ValaCollection*) _tmp27_);
			_tmp29_ = _tmp28_;
			_param_size = _tmp29_;
			_param_index = -1;
			while (TRUE) {
				gint _tmp30_;
				gint _tmp31_;
				gint _tmp32_;
				ValadocApiItem* param = NULL;
				ValaList* _tmp33_;
				gint _tmp34_;
				gpointer _tmp35_;
				gboolean _tmp36_;
				ValadocApiSignatureBuilder* _tmp40_;
				ValadocApiItem* _tmp41_;
				ValadocContentInline* _tmp42_;
				ValadocContentInline* _tmp43_;
				ValadocApiSignatureBuilder* _tmp44_;
				ValadocApiSignatureBuilder* _tmp45_;
				_tmp30_ = _param_index;
				_param_index = _tmp30_ + 1;
				_tmp31_ = _param_index;
				_tmp32_ = _param_size;
				if (!(_tmp31_ < _tmp32_)) {
					break;
				}
				_tmp33_ = _param_list;
				_tmp34_ = _param_index;
				_tmp35_ = vala_list_get (_tmp33_, _tmp34_);
				param = (ValadocApiItem*) ((ValadocApiNode*) _tmp35_);
				_tmp36_ = first;
				if (!_tmp36_) {
					ValadocApiSignatureBuilder* _tmp37_;
					ValadocApiSignatureBuilder* _tmp38_;
					ValadocApiSignatureBuilder* _tmp39_;
					_tmp37_ = signature;
					_tmp38_ = valadoc_api_signature_builder_append (_tmp37_, ",", FALSE);
					_tmp39_ = _tmp38_;
					_valadoc_api_signature_builder_unref0 (_tmp39_);
				}
				_tmp40_ = signature;
				_tmp41_ = param;
				_tmp42_ = valadoc_api_item_get_signature (_tmp41_);
				_tmp43_ = _tmp42_;
				_tmp44_ = valadoc_api_signature_builder_append_content (_tmp40_, _tmp43_, FALSE);
				_tmp45_ = _tmp44_;
				_valadoc_api_signature_builder_unref0 (_tmp45_);
				first = FALSE;
				_g_object_unref0 (param);
			}
			_vala_iterable_unref0 (_param_list);
		}
		_tmp46_ = signature;
		_tmp47_ = valadoc_api_signature_builder_append (_tmp46_, ">", FALSE);
		_tmp48_ = _tmp47_;
		_valadoc_api_signature_builder_unref0 (_tmp48_);
	}
	first = TRUE;
	_tmp49_ = self->priv->_base_type;
	if (_tmp49_ != NULL) {
		ValadocApiSignatureBuilder* _tmp50_;
		ValadocApiSignatureBuilder* _tmp51_;
		ValadocApiSignatureBuilder* _tmp52_;
		ValadocApiSignatureBuilder* _tmp53_;
		ValadocApiTypeReference* _tmp54_;
		ValadocContentInline* _tmp55_;
		ValadocContentInline* _tmp56_;
		ValadocApiSignatureBuilder* _tmp57_;
		ValadocApiSignatureBuilder* _tmp58_;
		_tmp50_ = signature;
		_tmp51_ = valadoc_api_signature_builder_append (_tmp50_, ":", TRUE);
		_tmp52_ = _tmp51_;
		_valadoc_api_signature_builder_unref0 (_tmp52_);
		_tmp53_ = signature;
		_tmp54_ = self->priv->_base_type;
		_tmp55_ = valadoc_api_item_get_signature ((ValadocApiItem*) _tmp54_);
		_tmp56_ = _tmp55_;
		_tmp57_ = valadoc_api_signature_builder_append_content (_tmp53_, _tmp56_, TRUE);
		_tmp58_ = _tmp57_;
		_valadoc_api_signature_builder_unref0 (_tmp58_);
		first = FALSE;
	}
	_tmp59_ = self->priv->interfaces;
	_tmp60_ = vala_collection_get_size ((ValaCollection*) _tmp59_);
	_tmp61_ = _tmp60_;
	if (_tmp61_ > 0) {
		gboolean _tmp62_;
		_tmp62_ = first;
		if (_tmp62_) {
			ValadocApiSignatureBuilder* _tmp63_;
			ValadocApiSignatureBuilder* _tmp64_;
			ValadocApiSignatureBuilder* _tmp65_;
			_tmp63_ = signature;
			_tmp64_ = valadoc_api_signature_builder_append (_tmp63_, ":", TRUE);
			_tmp65_ = _tmp64_;
			_valadoc_api_signature_builder_unref0 (_tmp65_);
		}
		{
			ValaArrayList* _implemented_interface_list = NULL;
			ValaArrayList* _tmp66_;
			ValaArrayList* _tmp67_;
			gint _implemented_interface_size = 0;
			ValaArrayList* _tmp68_;
			gint _tmp69_;
			gint _tmp70_;
			gint _implemented_interface_index = 0;
			_tmp66_ = self->priv->interfaces;
			_tmp67_ = _vala_iterable_ref0 (_tmp66_);
			_implemented_interface_list = _tmp67_;
			_tmp68_ = _implemented_interface_list;
			_tmp69_ = vala_collection_get_size ((ValaCollection*) _tmp68_);
			_tmp70_ = _tmp69_;
			_implemented_interface_size = _tmp70_;
			_implemented_interface_index = -1;
			while (TRUE) {
				gint _tmp71_;
				gint _tmp72_;
				gint _tmp73_;
				ValadocApiItem* implemented_interface = NULL;
				ValaArrayList* _tmp74_;
				gint _tmp75_;
				gpointer _tmp76_;
				gboolean _tmp77_;
				ValadocApiSignatureBuilder* _tmp81_;
				ValadocApiItem* _tmp82_;
				ValadocContentInline* _tmp83_;
				ValadocContentInline* _tmp84_;
				ValadocApiSignatureBuilder* _tmp85_;
				ValadocApiSignatureBuilder* _tmp86_;
				_tmp71_ = _implemented_interface_index;
				_implemented_interface_index = _tmp71_ + 1;
				_tmp72_ = _implemented_interface_index;
				_tmp73_ = _implemented_interface_size;
				if (!(_tmp72_ < _tmp73_)) {
					break;
				}
				_tmp74_ = _implemented_interface_list;
				_tmp75_ = _implemented_interface_index;
				_tmp76_ = vala_list_get ((ValaList*) _tmp74_, _tmp75_);
				implemented_interface = (ValadocApiItem*) ((ValadocApiTypeReference*) _tmp76_);
				_tmp77_ = first;
				if (!_tmp77_) {
					ValadocApiSignatureBuilder* _tmp78_;
					ValadocApiSignatureBuilder* _tmp79_;
					ValadocApiSignatureBuilder* _tmp80_;
					_tmp78_ = signature;
					_tmp79_ = valadoc_api_signature_builder_append (_tmp78_, ",", FALSE);
					_tmp80_ = _tmp79_;
					_valadoc_api_signature_builder_unref0 (_tmp80_);
				}
				_tmp81_ = signature;
				_tmp82_ = implemented_interface;
				_tmp83_ = valadoc_api_item_get_signature (_tmp82_);
				_tmp84_ = _tmp83_;
				_tmp85_ = valadoc_api_signature_builder_append_content (_tmp81_, _tmp84_, TRUE);
				_tmp86_ = _tmp85_;
				_valadoc_api_signature_builder_unref0 (_tmp86_);
				first = FALSE;
				_g_object_unref0 (implemented_interface);
			}
			_vala_iterable_unref0 (_implemented_interface_list);
		}
	}
	_tmp87_ = signature;
	_tmp88_ = valadoc_api_signature_builder_get (_tmp87_);
	result = (ValadocContentInline*) _tmp88_;
	_vala_iterable_unref0 (type_parameters);
	_valadoc_api_signature_builder_unref0 (signature);
	return result;
}


ValadocApiTypeReference* valadoc_api_class_get_base_type (ValadocApiClass* self) {
	ValadocApiTypeReference* result;
	ValadocApiTypeReference* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_base_type;
	result = _tmp0_;
	return result;
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


void valadoc_api_class_set_base_type (ValadocApiClass* self, ValadocApiTypeReference* value) {
	g_return_if_fail (self != NULL);
	if (valadoc_api_class_get_base_type (self) != value) {
		ValadocApiTypeReference* _tmp0_;
		ValadocApiTypeReference* _tmp1_;
		_tmp0_ = value;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_g_object_unref0 (self->priv->_base_type);
		self->priv->_base_type = _tmp1_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_class_properties[VALADOC_API_CLASS_BASE_TYPE_PROPERTY]);
	}
}


gboolean valadoc_api_class_get_is_abstract (ValadocApiClass* self) {
	gboolean result;
	gboolean _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_is_abstract;
	result = _tmp0_;
	return result;
}


static void valadoc_api_class_set_is_abstract (ValadocApiClass* self, gboolean value) {
	g_return_if_fail (self != NULL);
	if (valadoc_api_class_get_is_abstract (self) != value) {
		gboolean _tmp0_;
		_tmp0_ = value;
		self->priv->_is_abstract = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_class_properties[VALADOC_API_CLASS_IS_ABSTRACT_PROPERTY]);
	}
}


gboolean valadoc_api_class_get_is_fundamental (ValadocApiClass* self) {
	gboolean result;
	gboolean _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_is_fundamental;
	result = _tmp0_;
	return result;
}


static void valadoc_api_class_set_is_fundamental (ValadocApiClass* self, gboolean value) {
	g_return_if_fail (self != NULL);
	if (valadoc_api_class_get_is_fundamental (self) != value) {
		gboolean _tmp0_;
		_tmp0_ = value;
		self->priv->_is_fundamental = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_class_properties[VALADOC_API_CLASS_IS_FUNDAMENTAL_PROPERTY]);
	}
}


gboolean valadoc_api_class_get_is_compact (ValadocApiClass* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	ValadocApiTypeReference* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp1_ = self->priv->_base_type;
	if (_tmp1_ == NULL) {
		ValadocApiAttribute* _tmp2_;
		ValadocApiAttribute* _tmp3_;
		_tmp2_ = valadoc_api_symbol_get_attribute ((ValadocApiSymbol*) self, "Compact");
		_tmp3_ = _tmp2_;
		_tmp0_ = _tmp3_ != NULL;
		_g_object_unref0 (_tmp3_);
	} else {
		_tmp0_ = FALSE;
	}
	result = _tmp0_;
	return result;
}


static ValadocApiNodeType valadoc_api_class_real_get_node_type (ValadocApiNode* base) {
	ValadocApiNodeType result;
	ValadocApiClass* self;
	self = (ValadocApiClass*) base;
	result = VALADOC_API_NODE_TYPE_CLASS;
	return result;
}


static void valadoc_api_class_class_init (ValadocApiClassClass * klass) {
	valadoc_api_class_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (ValadocApiClassPrivate));
	((ValadocApiNodeClass *) klass)->accept = (void (*) (ValadocApiNode *, ValadocApiVisitor*)) valadoc_api_class_real_accept;
	((ValadocApiItemClass *) klass)->build_signature = (ValadocContentInline* (*) (ValadocApiItem *)) valadoc_api_class_real_build_signature;
	VALADOC_API_NODE_CLASS (klass)->get_node_type = valadoc_api_class_real_get_node_type;
	G_OBJECT_CLASS (klass)->get_property = _vala_valadoc_api_class_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_valadoc_api_class_set_property;
	G_OBJECT_CLASS (klass)->finalize = valadoc_api_class_finalize;
	/**
	 * Specifies the base class.
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_CLASS_BASE_TYPE_PROPERTY, valadoc_api_class_properties[VALADOC_API_CLASS_BASE_TYPE_PROPERTY] = g_param_spec_object ("base-type", "base-type", "base-type", VALADOC_API_TYPE_TYPEREFERENCE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * Specifies whether this class is abstract.
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_CLASS_IS_ABSTRACT_PROPERTY, valadoc_api_class_properties[VALADOC_API_CLASS_IS_ABSTRACT_PROPERTY] = g_param_spec_boolean ("is-abstract", "is-abstract", "is-abstract", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * Specifies whether this class is fundamental.
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_CLASS_IS_FUNDAMENTAL_PROPERTY, valadoc_api_class_properties[VALADOC_API_CLASS_IS_FUNDAMENTAL_PROPERTY] = g_param_spec_boolean ("is-fundamental", "is-fundamental", "is-fundamental", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_CLASS_IS_COMPACT_PROPERTY, valadoc_api_class_properties[VALADOC_API_CLASS_IS_COMPACT_PROPERTY] = g_param_spec_boolean ("is-compact", "is-compact", "is-compact", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_CLASS_NODE_TYPE_PROPERTY, valadoc_api_class_properties[VALADOC_API_CLASS_NODE_TYPE_PROPERTY] = g_param_spec_enum ("node-type", "node-type", "node-type", VALADOC_API_TYPE_NODE_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}


static void valadoc_api_class_instance_init (ValadocApiClass * self) {
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	ValaHashSet* _tmp2_;
	GHashFunc _tmp3_;
	GEqualFunc _tmp4_;
	ValaHashSet* _tmp5_;
	self->priv = VALADOC_API_CLASS_GET_PRIVATE (self);
	self->priv->_full_implemented_interfaces = NULL;
	_tmp0_ = g_direct_hash;
	_tmp1_ = g_direct_equal;
	_tmp2_ = vala_hash_set_new (VALADOC_API_TYPE_INTERFACE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp0_, _tmp1_);
	self->priv->_known_derived_interfaces = (ValaSet*) _tmp2_;
	_tmp3_ = g_direct_hash;
	_tmp4_ = g_direct_equal;
	_tmp5_ = vala_hash_set_new (VALADOC_API_TYPE_CLASS, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp3_, _tmp4_);
	self->priv->_known_child_classes = (ValaSet*) _tmp5_;
}


static void valadoc_api_class_finalize (GObject * obj) {
	ValadocApiClass * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALADOC_API_TYPE_CLASS, ValadocApiClass);
	_vala_iterable_unref0 (self->priv->interfaces);
	_g_free0 (self->priv->dbus_name);
	_g_free0 (self->priv->take_value_function_cname);
	_g_free0 (self->priv->get_value_function_cname);
	_g_free0 (self->priv->set_value_function_cname);
	_g_free0 (self->priv->unref_function_name);
	_g_free0 (self->priv->ref_function_name);
	_g_free0 (self->priv->free_function_name);
	_g_free0 (self->priv->finalize_function_name);
	_g_free0 (self->priv->param_spec_function_name);
	_g_free0 (self->priv->type_id);
	_g_free0 (self->priv->is_class_type_macro_name);
	_g_free0 (self->priv->class_type_macro_name);
	_g_free0 (self->priv->class_macro_name);
	_g_free0 (self->priv->private_cname);
	_g_free0 (self->priv->cname);
	_g_object_unref0 (self->priv->_base_type);
	_vala_iterable_unref0 (self->priv->_full_implemented_interfaces);
	_vala_iterable_unref0 (self->priv->_known_derived_interfaces);
	_vala_iterable_unref0 (self->priv->_known_child_classes);
	G_OBJECT_CLASS (valadoc_api_class_parent_class)->finalize (obj);
}


/**
 * Represents a class declaration.
 */
GType valadoc_api_class_get_type (void) {
	static volatile gsize valadoc_api_class_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_api_class_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValadocApiClassClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_api_class_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValadocApiClass), 0, (GInstanceInitFunc) valadoc_api_class_instance_init, NULL };
		GType valadoc_api_class_type_id;
		valadoc_api_class_type_id = g_type_register_static (VALADOC_API_TYPE_TYPESYMBOL, "ValadocApiClass", &g_define_type_info, 0);
		g_once_init_leave (&valadoc_api_class_type_id__volatile, valadoc_api_class_type_id);
	}
	return valadoc_api_class_type_id__volatile;
}


static void _vala_valadoc_api_class_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	ValadocApiClass * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, VALADOC_API_TYPE_CLASS, ValadocApiClass);
	switch (property_id) {
		case VALADOC_API_CLASS_BASE_TYPE_PROPERTY:
		g_value_set_object (value, valadoc_api_class_get_base_type (self));
		break;
		case VALADOC_API_CLASS_IS_ABSTRACT_PROPERTY:
		g_value_set_boolean (value, valadoc_api_class_get_is_abstract (self));
		break;
		case VALADOC_API_CLASS_IS_FUNDAMENTAL_PROPERTY:
		g_value_set_boolean (value, valadoc_api_class_get_is_fundamental (self));
		break;
		case VALADOC_API_CLASS_IS_COMPACT_PROPERTY:
		g_value_set_boolean (value, valadoc_api_class_get_is_compact (self));
		break;
		case VALADOC_API_CLASS_NODE_TYPE_PROPERTY:
		g_value_set_enum (value, valadoc_api_node_get_node_type ((ValadocApiNode*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_valadoc_api_class_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	ValadocApiClass * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, VALADOC_API_TYPE_CLASS, ValadocApiClass);
	switch (property_id) {
		case VALADOC_API_CLASS_BASE_TYPE_PROPERTY:
		valadoc_api_class_set_base_type (self, g_value_get_object (value));
		break;
		case VALADOC_API_CLASS_IS_ABSTRACT_PROPERTY:
		valadoc_api_class_set_is_abstract (self, g_value_get_boolean (value));
		break;
		case VALADOC_API_CLASS_IS_FUNDAMENTAL_PROPERTY:
		valadoc_api_class_set_is_fundamental (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



