Rizin
unix-like reverse engineering framework and cli tools
class_field.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 deroad <wargio@libero.it>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_BIN_JAVA_CLASS_FIELD_H
5 #define RZ_BIN_JAVA_CLASS_FIELD_H
6 #include <rz_types.h>
7 #include <rz_util.h>
8 #include <rz_bin.h>
9 #include "class_attribute.h"
10 
11 typedef enum {
12  FIELD_ACCESS_FLAG_PUBLIC /* */ = 0x0001,
13  FIELD_ACCESS_FLAG_PRIVATE /* */ = 0x0002,
15  FIELD_ACCESS_FLAG_STATIC /* */ = 0x0008,
16  FIELD_ACCESS_FLAG_FINAL /* */ = 0x0010,
20  FIELD_ACCESS_FLAG_ENUM /* */ = 0x4000
22 
23 typedef struct java_field_t {
31 
33 void java_field_free(Field *field);
34 char *java_field_access_flags_readable(const Field *field);
35 bool java_field_is_global(const Field *field);
36 
37 #endif /* RZ_BIN_JAVA_CLASS_FIELD_H */
bool java_field_is_global(const Field *field)
Definition: class_field.c:91
Field * java_field_new(ConstPool **pool, ut32 poolsize, RzBuffer *buf, ut64 offset)
Definition: class_field.c:41
FieldAccessFlag
Definition: class_field.h:11
@ FIELD_ACCESS_FLAG_PUBLIC
Definition: class_field.h:12
@ FIELD_ACCESS_FLAG_STATIC
Definition: class_field.h:15
@ FIELD_ACCESS_FLAG_VOLATILE
Definition: class_field.h:17
@ FIELD_ACCESS_FLAG_ENUM
Definition: class_field.h:20
@ FIELD_ACCESS_FLAG_FINAL
Definition: class_field.h:16
@ FIELD_ACCESS_FLAG_PRIVATE
Definition: class_field.h:13
@ FIELD_ACCESS_FLAG_TRANSIENT
Definition: class_field.h:18
@ FIELD_ACCESS_FLAG_SYNTHETIC
Definition: class_field.h:19
@ FIELD_ACCESS_FLAG_PROTECTED
Definition: class_field.h:14
struct java_field_t Field
void java_field_free(Field *field)
Definition: class_field.c:78
char * java_field_access_flags_readable(const Field *field)
Definition: class_field.c:20
uint16_t ut16
uint32_t ut32
voidpf uLong offset
Definition: ioapi.h:144
voidpf void * buf
Definition: ioapi.h:138
Attribute ** attributes
Definition: class_field.h:29
ut16 access_flags
Definition: class_field.h:25
ut16 descriptor_index
Definition: class_field.h:27
ut16 attributes_count
Definition: class_field.h:28
ut16 name_index
Definition: class_field.h:26
ut64(WINAPI *w32_GetEnabledXStateFeatures)()