1 /* src/vmcore/annotation.h - class annotations
3 Copyright (C) 2006, 2007 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4 R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5 C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6 Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
31 /* forward typedefs ***********************************************************/
33 typedef struct annotation_bytearray_t annotation_bytearray_t;
34 typedef struct annotation_t annotation_t;
35 typedef struct element_value_t element_value_t;
36 typedef struct annotation_bytearrays_t annotation_bytearrays_t;
41 #include "vm/global.h"
43 #include "vmcore/class.h"
44 #include "vmcore/field.h"
45 #include "vmcore/method.h"
46 #include "vmcore/loader.h"
47 #include "vmcore/utf8.h"
50 /* annotation_bytearray *******************************************************/
52 struct annotation_bytearray_t {
57 /* annotation_bytearrays ******************************************************/
59 struct annotation_bytearrays_t {
61 annotation_bytearray_t *data[1];
64 /* annotation *****************************************************************/
68 s4 element_valuescount;
69 element_value_t *element_values;
72 /* element_value **************************************************************/
74 struct element_value_t {
80 /* function prototypes ********************************************************/
82 annotation_bytearray_t *annotation_bytearray_new(uint32_t size);
84 void annotation_bytearray_free(annotation_bytearray_t *ba);
86 annotation_bytearrays_t *annotation_bytearrays_new(uint32_t size);
88 bool annotation_bytearrays_resize(annotation_bytearrays_t **bas,
91 bool annotation_bytearrays_insert(annotation_bytearrays_t **bas,
92 uint32_t index, annotation_bytearray_t *ba);
94 void annotation_bytearrays_free(annotation_bytearrays_t *bas);
96 bool annotation_load_class_attribute_runtimevisibleannotations(
99 bool annotation_load_class_attribute_runtimeinvisibleannotations(
102 bool annotation_load_method_attribute_runtimevisibleannotations(
103 classbuffer *cb, methodinfo *m);
105 bool annotation_load_method_attribute_runtimeinvisibleannotations(
106 classbuffer *cb, methodinfo *m);
108 bool annotation_load_field_attribute_runtimevisibleannotations(
109 classbuffer *cb, fieldinfo *f);
111 bool annotation_load_field_attribute_runtimeinvisibleannotations(
112 classbuffer *cb, fieldinfo *f);
114 bool annotation_load_method_attribute_annotationdefault(
115 classbuffer *cb, methodinfo *m);
117 bool annotation_load_method_attribute_runtimevisibleparameterannotations(
118 classbuffer *cb, methodinfo *m);
120 bool annotation_load_method_attribute_runtimeinvisibleparameterannotations(
121 classbuffer *cb, methodinfo *m);
123 #endif /* _ANNOTATION_H */
127 * These are local overrides for various environment variables in Emacs.
128 * Please do not remove this and leave it at the end of the file, where
129 * Emacs will automagically detect them.
130 * ---------------------------------------------------------------------
133 * indent-tabs-mode: t
137 * vim:noexpandtab:sw=4:ts=4: