1 /* propertyaccessor.c generated by valac, the Vala compiler
2 * generated from propertyaccessor.vala, do not modify */
3
4 /* propertyaccessor.vala
5 *
6 * Copyright (C) 2008-2011 Florian Brosch
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 * Author:
23 * Florian Brosch <flo.brosch@gmail.com>
24 */
25
26 #include "valadoc.h"
27 #include <stdlib.h>
28 #include <string.h>
29 #include <glib.h>
30 #include <vala.h>
31 #include <valacodegen.h>
32
33 enum {
34 VALADOC_API_PROPERTY_ACCESSOR_0_PROPERTY,
35 VALADOC_API_PROPERTY_ACCESSOR_NODE_TYPE_PROPERTY,
36 VALADOC_API_PROPERTY_ACCESSOR_IS_CONSTRUCT_PROPERTY,
37 VALADOC_API_PROPERTY_ACCESSOR_IS_SET_PROPERTY,
38 VALADOC_API_PROPERTY_ACCESSOR_IS_GET_PROPERTY,
39 VALADOC_API_PROPERTY_ACCESSOR_IS_OWNED_PROPERTY,
40 VALADOC_API_PROPERTY_ACCESSOR_NUM_PROPERTIES
41 };
42 static GParamSpec* valadoc_api_property_accessor_properties[VALADOC_API_PROPERTY_ACCESSOR_NUM_PROPERTIES];
43 #define _g_free0(var) (var = (g_free (var), NULL))
44 #define _valadoc_api_signature_builder_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_api_signature_builder_unref (var), NULL)))
45
46 struct _ValadocApiPropertyAccessorPrivate {
47 ValadocApiOwnership ownership;
48 gchar* cname;
49 };
50
51 static gint ValadocApiPropertyAccessor_private_offset;
52 static gpointer valadoc_api_property_accessor_parent_class = NULL;
53
54 static ValadocApiOwnership valadoc_api_property_accessor_get_property_ownership (ValadocApiPropertyAccessor* self,
55 ValaPropertyAccessor* element);
56 static void valadoc_api_property_accessor_real_accept (ValadocApiNode* base,
57 ValadocApiVisitor* visitor);
58 static ValadocContentInline* valadoc_api_property_accessor_real_build_signature (ValadocApiItem* base);
59 static void valadoc_api_property_accessor_finalize (GObject * obj);
60 static GType valadoc_api_property_accessor_get_type_once (void);
61 static void _vala_valadoc_api_property_accessor_get_property (GObject * object,
62 guint property_id,
63 GValue * value,
64 GParamSpec * pspec);
65
66 static inline gpointer
valadoc_api_property_accessor_get_instance_private(ValadocApiPropertyAccessor * self)67 valadoc_api_property_accessor_get_instance_private (ValadocApiPropertyAccessor* self)
68 {
69 return G_STRUCT_MEMBER_P (self, ValadocApiPropertyAccessor_private_offset);
70 }
71
72 ValadocApiPropertyAccessor*
valadoc_api_property_accessor_construct(GType object_type,ValadocApiProperty * parent,ValadocApiSourceFile * file,const gchar * name,ValaSymbolAccessibility accessibility,ValaPropertyAccessor * data)73 valadoc_api_property_accessor_construct (GType object_type,
74 ValadocApiProperty* parent,
75 ValadocApiSourceFile* file,
76 const gchar* name,
77 ValaSymbolAccessibility accessibility,
78 ValaPropertyAccessor* data)
79 {
80 ValadocApiPropertyAccessor * self = NULL;
81 gchar* _tmp0_;
82 g_return_val_if_fail (parent != NULL, NULL);
83 g_return_val_if_fail (file != NULL, NULL);
84 g_return_val_if_fail (name != NULL, NULL);
85 g_return_val_if_fail (data != NULL, NULL);
86 self = (ValadocApiPropertyAccessor*) valadoc_api_symbol_construct (object_type, (ValadocApiNode*) parent, file, name, accessibility, NULL, (ValaSymbol*) data);
87 self->priv->ownership = valadoc_api_property_accessor_get_property_ownership (self, data);
88 _tmp0_ = vala_get_ccode_name ((ValaCodeNode*) data);
89 _g_free0 (self->priv->cname);
90 self->priv->cname = _tmp0_;
91 return self;
92 }
93
94 ValadocApiPropertyAccessor*
valadoc_api_property_accessor_new(ValadocApiProperty * parent,ValadocApiSourceFile * file,const gchar * name,ValaSymbolAccessibility accessibility,ValaPropertyAccessor * data)95 valadoc_api_property_accessor_new (ValadocApiProperty* parent,
96 ValadocApiSourceFile* file,
97 const gchar* name,
98 ValaSymbolAccessibility accessibility,
99 ValaPropertyAccessor* data)
100 {
101 return valadoc_api_property_accessor_construct (VALADOC_API_TYPE_PROPERTY_ACCESSOR, parent, file, name, accessibility, data);
102 }
103
104 static ValadocApiOwnership
valadoc_api_property_accessor_get_property_ownership(ValadocApiPropertyAccessor * self,ValaPropertyAccessor * element)105 valadoc_api_property_accessor_get_property_ownership (ValadocApiPropertyAccessor* self,
106 ValaPropertyAccessor* element)
107 {
108 ValaDataType* _tmp0_;
109 ValaDataType* _tmp1_;
110 gboolean _tmp2_;
111 gboolean _tmp3_;
112 ValadocApiOwnership result = 0;
113 g_return_val_if_fail (self != NULL, 0);
114 g_return_val_if_fail (element != NULL, 0);
115 _tmp0_ = vala_property_accessor_get_value_type (element);
116 _tmp1_ = _tmp0_;
117 _tmp2_ = vala_data_type_get_value_owned (_tmp1_);
118 _tmp3_ = _tmp2_;
119 if (_tmp3_) {
120 result = VALADOC_API_OWNERSHIP_OWNED;
121 return result;
122 }
123 result = VALADOC_API_OWNERSHIP_UNOWNED;
124 return result;
125 }
126
127 static ValadocApiNodeType
valadoc_api_property_accessor_real_get_node_type(ValadocApiNode * base)128 valadoc_api_property_accessor_real_get_node_type (ValadocApiNode* base)
129 {
130 ValadocApiNodeType result;
131 ValadocApiPropertyAccessor* self;
132 self = (ValadocApiPropertyAccessor*) base;
133 result = VALADOC_API_NODE_TYPE_PROPERTY_ACCESSOR;
134 return result;
135 }
136
137 /**
138 * Returns the name of this property accessor as it is used in C.
139 */
140 gchar*
valadoc_api_property_accessor_get_cname(ValadocApiPropertyAccessor * self)141 valadoc_api_property_accessor_get_cname (ValadocApiPropertyAccessor* self)
142 {
143 const gchar* _tmp0_;
144 gchar* _tmp1_;
145 gchar* result = NULL;
146 g_return_val_if_fail (self != NULL, NULL);
147 _tmp0_ = self->priv->cname;
148 _tmp1_ = g_strdup (_tmp0_);
149 result = _tmp1_;
150 return result;
151 }
152
153 /**
154 * {@inheritDoc}
155 */
156 static void
valadoc_api_property_accessor_real_accept(ValadocApiNode * base,ValadocApiVisitor * visitor)157 valadoc_api_property_accessor_real_accept (ValadocApiNode* base,
158 ValadocApiVisitor* visitor)
159 {
160 ValadocApiPropertyAccessor * self;
161 self = (ValadocApiPropertyAccessor*) base;
162 g_return_if_fail (visitor != NULL);
163 }
164
165 gboolean
valadoc_api_property_accessor_get_is_construct(ValadocApiPropertyAccessor * self)166 valadoc_api_property_accessor_get_is_construct (ValadocApiPropertyAccessor* self)
167 {
168 gboolean result;
169 ValaCodeNode* _tmp0_;
170 ValaCodeNode* _tmp1_;
171 gboolean _tmp2_;
172 gboolean _tmp3_;
173 g_return_val_if_fail (self != NULL, FALSE);
174 _tmp0_ = valadoc_api_item_get_data ((ValadocApiItem*) self);
175 _tmp1_ = _tmp0_;
176 _tmp2_ = vala_property_accessor_get_construction (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_PROPERTY_ACCESSOR, ValaPropertyAccessor));
177 _tmp3_ = _tmp2_;
178 result = _tmp3_;
179 return result;
180 }
181
182 gboolean
valadoc_api_property_accessor_get_is_set(ValadocApiPropertyAccessor * self)183 valadoc_api_property_accessor_get_is_set (ValadocApiPropertyAccessor* self)
184 {
185 gboolean result;
186 ValaCodeNode* _tmp0_;
187 ValaCodeNode* _tmp1_;
188 gboolean _tmp2_;
189 gboolean _tmp3_;
190 g_return_val_if_fail (self != NULL, FALSE);
191 _tmp0_ = valadoc_api_item_get_data ((ValadocApiItem*) self);
192 _tmp1_ = _tmp0_;
193 _tmp2_ = vala_property_accessor_get_writable (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_PROPERTY_ACCESSOR, ValaPropertyAccessor));
194 _tmp3_ = _tmp2_;
195 result = _tmp3_;
196 return result;
197 }
198
199 gboolean
valadoc_api_property_accessor_get_is_get(ValadocApiPropertyAccessor * self)200 valadoc_api_property_accessor_get_is_get (ValadocApiPropertyAccessor* self)
201 {
202 gboolean result;
203 ValaCodeNode* _tmp0_;
204 ValaCodeNode* _tmp1_;
205 gboolean _tmp2_;
206 gboolean _tmp3_;
207 g_return_val_if_fail (self != NULL, FALSE);
208 _tmp0_ = valadoc_api_item_get_data ((ValadocApiItem*) self);
209 _tmp1_ = _tmp0_;
210 _tmp2_ = vala_property_accessor_get_readable (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_PROPERTY_ACCESSOR, ValaPropertyAccessor));
211 _tmp3_ = _tmp2_;
212 result = _tmp3_;
213 return result;
214 }
215
216 gboolean
valadoc_api_property_accessor_get_is_owned(ValadocApiPropertyAccessor * self)217 valadoc_api_property_accessor_get_is_owned (ValadocApiPropertyAccessor* self)
218 {
219 gboolean result;
220 ValadocApiOwnership _tmp0_;
221 g_return_val_if_fail (self != NULL, FALSE);
222 _tmp0_ = self->priv->ownership;
223 result = _tmp0_ == VALADOC_API_OWNERSHIP_OWNED;
224 return result;
225 }
226
227 /**
228 * {@inheritDoc}
229 */
230 static ValadocContentInline*
valadoc_api_property_accessor_real_build_signature(ValadocApiItem * base)231 valadoc_api_property_accessor_real_build_signature (ValadocApiItem* base)
232 {
233 ValadocApiPropertyAccessor * self;
234 ValadocApiSignatureBuilder* signature = NULL;
235 ValadocApiSignatureBuilder* _tmp0_;
236 ValadocApiItem* _tmp3_;
237 ValadocApiItem* _tmp4_;
238 ValaSymbolAccessibility _tmp5_;
239 ValaSymbolAccessibility _tmp6_;
240 ValaSymbolAccessibility _tmp7_;
241 ValaSymbolAccessibility _tmp8_;
242 gboolean _tmp13_ = FALSE;
243 gboolean _tmp14_;
244 gboolean _tmp15_;
245 ValadocApiSignatureBuilder* _tmp33_;
246 ValadocApiSignatureBuilder* _tmp34_;
247 ValadocContentRun* _tmp35_;
248 ValadocContentInline* result = NULL;
249 self = (ValadocApiPropertyAccessor*) base;
250 _tmp0_ = valadoc_api_signature_builder_new ();
251 signature = _tmp0_;
252 if (!((ValadocApiNode*) self)->do_document) {
253 ValadocApiSignatureBuilder* _tmp1_;
254 ValadocContentRun* _tmp2_;
255 _tmp1_ = signature;
256 _tmp2_ = valadoc_api_signature_builder_get (_tmp1_);
257 result = (ValadocContentInline*) _tmp2_;
258 _valadoc_api_signature_builder_unref0 (signature);
259 return result;
260 }
261 _tmp3_ = valadoc_api_item_get_parent ((ValadocApiItem*) self);
262 _tmp4_ = _tmp3_;
263 _tmp5_ = valadoc_api_symbol_get_accessibility ((ValadocApiSymbol*) G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALADOC_API_TYPE_PROPERTY, ValadocApiProperty));
264 _tmp6_ = _tmp5_;
265 _tmp7_ = valadoc_api_symbol_get_accessibility ((ValadocApiSymbol*) self);
266 _tmp8_ = _tmp7_;
267 if (_tmp6_ != _tmp8_) {
268 ValadocApiSignatureBuilder* _tmp9_;
269 ValaSymbolAccessibility _tmp10_;
270 ValaSymbolAccessibility _tmp11_;
271 const gchar* _tmp12_;
272 _tmp9_ = signature;
273 _tmp10_ = valadoc_api_symbol_get_accessibility ((ValadocApiSymbol*) self);
274 _tmp11_ = _tmp10_;
275 _tmp12_ = vala_symbol_accessibility_to_string (_tmp11_);
276 valadoc_api_signature_builder_append_keyword (_tmp9_, _tmp12_, TRUE);
277 }
278 _tmp14_ = valadoc_api_property_accessor_get_is_set (self);
279 _tmp15_ = _tmp14_;
280 if (_tmp15_) {
281 _tmp13_ = TRUE;
282 } else {
283 gboolean _tmp16_;
284 gboolean _tmp17_;
285 _tmp16_ = valadoc_api_property_accessor_get_is_construct (self);
286 _tmp17_ = _tmp16_;
287 _tmp13_ = _tmp17_;
288 }
289 if (_tmp13_) {
290 gboolean _tmp18_;
291 gboolean _tmp19_;
292 gboolean _tmp21_;
293 gboolean _tmp22_;
294 gboolean _tmp24_;
295 gboolean _tmp25_;
296 _tmp18_ = valadoc_api_property_accessor_get_is_owned (self);
297 _tmp19_ = _tmp18_;
298 if (_tmp19_) {
299 ValadocApiSignatureBuilder* _tmp20_;
300 _tmp20_ = signature;
301 valadoc_api_signature_builder_append_keyword (_tmp20_, "owned", TRUE);
302 }
303 _tmp21_ = valadoc_api_property_accessor_get_is_set (self);
304 _tmp22_ = _tmp21_;
305 if (_tmp22_) {
306 ValadocApiSignatureBuilder* _tmp23_;
307 _tmp23_ = signature;
308 valadoc_api_signature_builder_append_keyword (_tmp23_, "set", TRUE);
309 }
310 _tmp24_ = valadoc_api_property_accessor_get_is_construct (self);
311 _tmp25_ = _tmp24_;
312 if (_tmp25_) {
313 ValadocApiSignatureBuilder* _tmp26_;
314 _tmp26_ = signature;
315 valadoc_api_signature_builder_append_keyword (_tmp26_, "construct", TRUE);
316 }
317 } else {
318 gboolean _tmp27_;
319 gboolean _tmp28_;
320 _tmp27_ = valadoc_api_property_accessor_get_is_get (self);
321 _tmp28_ = _tmp27_;
322 if (_tmp28_) {
323 gboolean _tmp29_;
324 gboolean _tmp30_;
325 ValadocApiSignatureBuilder* _tmp32_;
326 _tmp29_ = valadoc_api_property_accessor_get_is_owned (self);
327 _tmp30_ = _tmp29_;
328 if (_tmp30_) {
329 ValadocApiSignatureBuilder* _tmp31_;
330 _tmp31_ = signature;
331 valadoc_api_signature_builder_append_keyword (_tmp31_, "owned", TRUE);
332 }
333 _tmp32_ = signature;
334 valadoc_api_signature_builder_append_keyword (_tmp32_, "get", TRUE);
335 }
336 }
337 _tmp33_ = signature;
338 valadoc_api_signature_builder_append (_tmp33_, ";", FALSE);
339 _tmp34_ = signature;
340 _tmp35_ = valadoc_api_signature_builder_get (_tmp34_);
341 result = (ValadocContentInline*) _tmp35_;
342 _valadoc_api_signature_builder_unref0 (signature);
343 return result;
344 }
345
346 static void
valadoc_api_property_accessor_class_init(ValadocApiPropertyAccessorClass * klass,gpointer klass_data)347 valadoc_api_property_accessor_class_init (ValadocApiPropertyAccessorClass * klass,
348 gpointer klass_data)
349 {
350 valadoc_api_property_accessor_parent_class = g_type_class_peek_parent (klass);
351 g_type_class_adjust_private_offset (klass, &ValadocApiPropertyAccessor_private_offset);
352 ((ValadocApiNodeClass *) klass)->accept = (void (*) (ValadocApiNode*, ValadocApiVisitor*)) valadoc_api_property_accessor_real_accept;
353 ((ValadocApiItemClass *) klass)->build_signature = (ValadocContentInline* (*) (ValadocApiItem*)) valadoc_api_property_accessor_real_build_signature;
354 VALADOC_API_NODE_CLASS (klass)->get_node_type = valadoc_api_property_accessor_real_get_node_type;
355 G_OBJECT_CLASS (klass)->get_property = _vala_valadoc_api_property_accessor_get_property;
356 G_OBJECT_CLASS (klass)->finalize = valadoc_api_property_accessor_finalize;
357 /**
358 * {@inheritDoc}
359 */
360 g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_PROPERTY_ACCESSOR_NODE_TYPE_PROPERTY, valadoc_api_property_accessor_properties[VALADOC_API_PROPERTY_ACCESSOR_NODE_TYPE_PROPERTY] = g_param_spec_enum ("node-type", "node-type", "node-type", VALADOC_API_TYPE_NODE_TYPE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
361 /**
362 * Specifies whether this accessor may be used to construct the property.
363 */
364 g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_PROPERTY_ACCESSOR_IS_CONSTRUCT_PROPERTY, valadoc_api_property_accessor_properties[VALADOC_API_PROPERTY_ACCESSOR_IS_CONSTRUCT_PROPERTY] = g_param_spec_boolean ("is-construct", "is-construct", "is-construct", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
365 /**
366 * Specifies whether this accessor is a setter.
367 */
368 g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_PROPERTY_ACCESSOR_IS_SET_PROPERTY, valadoc_api_property_accessor_properties[VALADOC_API_PROPERTY_ACCESSOR_IS_SET_PROPERTY] = g_param_spec_boolean ("is-set", "is-set", "is-set", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
369 /**
370 * Specifies whether this accessor is a getter.
371 */
372 g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_PROPERTY_ACCESSOR_IS_GET_PROPERTY, valadoc_api_property_accessor_properties[VALADOC_API_PROPERTY_ACCESSOR_IS_GET_PROPERTY] = g_param_spec_boolean ("is-get", "is-get", "is-get", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
373 /**
374 * Specifies whether the property is owned.
375 */
376 g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_PROPERTY_ACCESSOR_IS_OWNED_PROPERTY, valadoc_api_property_accessor_properties[VALADOC_API_PROPERTY_ACCESSOR_IS_OWNED_PROPERTY] = g_param_spec_boolean ("is-owned", "is-owned", "is-owned", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
377 }
378
379 static void
valadoc_api_property_accessor_instance_init(ValadocApiPropertyAccessor * self,gpointer klass)380 valadoc_api_property_accessor_instance_init (ValadocApiPropertyAccessor * self,
381 gpointer klass)
382 {
383 self->priv = valadoc_api_property_accessor_get_instance_private (self);
384 }
385
386 static void
valadoc_api_property_accessor_finalize(GObject * obj)387 valadoc_api_property_accessor_finalize (GObject * obj)
388 {
389 ValadocApiPropertyAccessor * self;
390 self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALADOC_API_TYPE_PROPERTY_ACCESSOR, ValadocApiPropertyAccessor);
391 _g_free0 (self->priv->cname);
392 G_OBJECT_CLASS (valadoc_api_property_accessor_parent_class)->finalize (obj);
393 }
394
395 /**
396 * Represents a get or set accessor of a property.
397 */
398 static GType
valadoc_api_property_accessor_get_type_once(void)399 valadoc_api_property_accessor_get_type_once (void)
400 {
401 static const GTypeInfo g_define_type_info = { sizeof (ValadocApiPropertyAccessorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_api_property_accessor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValadocApiPropertyAccessor), 0, (GInstanceInitFunc) valadoc_api_property_accessor_instance_init, NULL };
402 GType valadoc_api_property_accessor_type_id;
403 valadoc_api_property_accessor_type_id = g_type_register_static (VALADOC_API_TYPE_SYMBOL, "ValadocApiPropertyAccessor", &g_define_type_info, 0);
404 ValadocApiPropertyAccessor_private_offset = g_type_add_instance_private (valadoc_api_property_accessor_type_id, sizeof (ValadocApiPropertyAccessorPrivate));
405 return valadoc_api_property_accessor_type_id;
406 }
407
408 GType
valadoc_api_property_accessor_get_type(void)409 valadoc_api_property_accessor_get_type (void)
410 {
411 static volatile gsize valadoc_api_property_accessor_type_id__volatile = 0;
412 if (g_once_init_enter (&valadoc_api_property_accessor_type_id__volatile)) {
413 GType valadoc_api_property_accessor_type_id;
414 valadoc_api_property_accessor_type_id = valadoc_api_property_accessor_get_type_once ();
415 g_once_init_leave (&valadoc_api_property_accessor_type_id__volatile, valadoc_api_property_accessor_type_id);
416 }
417 return valadoc_api_property_accessor_type_id__volatile;
418 }
419
420 static void
_vala_valadoc_api_property_accessor_get_property(GObject * object,guint property_id,GValue * value,GParamSpec * pspec)421 _vala_valadoc_api_property_accessor_get_property (GObject * object,
422 guint property_id,
423 GValue * value,
424 GParamSpec * pspec)
425 {
426 ValadocApiPropertyAccessor * self;
427 self = G_TYPE_CHECK_INSTANCE_CAST (object, VALADOC_API_TYPE_PROPERTY_ACCESSOR, ValadocApiPropertyAccessor);
428 switch (property_id) {
429 case VALADOC_API_PROPERTY_ACCESSOR_NODE_TYPE_PROPERTY:
430 g_value_set_enum (value, valadoc_api_node_get_node_type ((ValadocApiNode*) self));
431 break;
432 case VALADOC_API_PROPERTY_ACCESSOR_IS_CONSTRUCT_PROPERTY:
433 g_value_set_boolean (value, valadoc_api_property_accessor_get_is_construct (self));
434 break;
435 case VALADOC_API_PROPERTY_ACCESSOR_IS_SET_PROPERTY:
436 g_value_set_boolean (value, valadoc_api_property_accessor_get_is_set (self));
437 break;
438 case VALADOC_API_PROPERTY_ACCESSOR_IS_GET_PROPERTY:
439 g_value_set_boolean (value, valadoc_api_property_accessor_get_is_get (self));
440 break;
441 case VALADOC_API_PROPERTY_ACCESSOR_IS_OWNED_PROPERTY:
442 g_value_set_boolean (value, valadoc_api_property_accessor_get_is_owned (self));
443 break;
444 default:
445 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
446 break;
447 }
448 }
449
450