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 {
58 /* annotation_bytearrays ******************************************************/
60 struct annotation_bytearrays_t {
62 annotation_bytearray_t *data[1];
66 /* function prototypes ********************************************************/
68 annotation_bytearray_t *annotation_bytearray_new(uint32_t size);
70 void annotation_bytearray_free(annotation_bytearray_t *ba);
72 annotation_bytearrays_t *annotation_bytearrays_new(uint32_t size);
74 bool annotation_bytearrays_resize(annotation_bytearrays_t **bas,
77 bool annotation_bytearrays_insert(annotation_bytearrays_t **bas,
78 uint32_t index, annotation_bytearray_t *ba);
80 void annotation_bytearrays_free(annotation_bytearrays_t *bas);
82 bool annotation_load_class_attribute_runtimevisibleannotations(
85 bool annotation_load_class_attribute_runtimeinvisibleannotations(
88 bool annotation_load_method_attribute_runtimevisibleannotations(
89 classbuffer *cb, methodinfo *m);
91 bool annotation_load_method_attribute_runtimeinvisibleannotations(
92 classbuffer *cb, methodinfo *m);
94 bool annotation_load_field_attribute_runtimevisibleannotations(
95 classbuffer *cb, fieldinfo *f);
97 bool annotation_load_field_attribute_runtimeinvisibleannotations(
98 classbuffer *cb, fieldinfo *f);
100 bool annotation_load_method_attribute_annotationdefault(
101 classbuffer *cb, methodinfo *m);
103 bool annotation_load_method_attribute_runtimevisibleparameterannotations(
104 classbuffer *cb, methodinfo *m);
106 bool annotation_load_method_attribute_runtimeinvisibleparameterannotations(
107 classbuffer *cb, methodinfo *m);
109 #endif /* _ANNOTATION_H */
113 * These are local overrides for various environment variables in Emacs.
114 * Please do not remove this and leave it at the end of the file, where
115 * Emacs will automagically detect them.
116 * ---------------------------------------------------------------------
119 * indent-tabs-mode: t
123 * vim:noexpandtab:sw=4:ts=4: