Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_types.h>
#include <rz_util.h>
#include <rz_bin.h>
#include "class_exceptions.h"
#include "class_line_number.h"
#include "class_local_variable.h"
#include "class_module.h"
#include "class_const_pool.h"
Go to the source code of this file.
Classes | |
struct | java_attribute_t |
struct | java_attribute_constant_value_t |
struct | java_attribute_code_t |
struct | java_attribute_source_file_t |
struct | java_attribute_line_number_table_t |
struct | java_attribute_local_variable_table_t |
struct | java_attribute_local_variable_type_table_t |
struct | java_attribute_module_t |
struct | java_attribute_module_packages_t |
struct | java_attribute_module_main_class_t |
Typedefs | |
typedef struct java_attribute_t | Attribute |
typedef struct java_attribute_constant_value_t | AttributeConstantValue |
typedef struct java_attribute_code_t | AttributeCode |
typedef struct java_attribute_source_file_t | AttributeSourceFile |
typedef struct java_attribute_line_number_table_t | AttributeLineNumberTable |
typedef struct java_attribute_local_variable_table_t | AttributeLocalVariableTable |
typedef struct java_attribute_local_variable_type_table_t | AttributeLocalVariableTypeTable |
typedef struct java_attribute_module_t | AttributeModule |
typedef struct java_attribute_module_packages_t | AttributeModulePackages |
typedef struct java_attribute_module_main_class_t | AttributeModuleMainClass |
Functions | |
Attribute * | java_attribute_new (RzBuffer *buf, ut64 offset) |
void | java_attribute_free (Attribute *attr) |
bool | java_attribute_resolve (ConstPool **pool, ut32 poolsize, Attribute *attr, RzBuffer *buf, bool is_oak) |
typedef struct java_attribute_t Attribute |
typedef struct java_attribute_code_t AttributeCode |
typedef struct java_attribute_constant_value_t AttributeConstantValue |
typedef struct java_attribute_line_number_table_t AttributeLineNumberTable |
typedef struct java_attribute_local_variable_table_t AttributeLocalVariableTable |
typedef struct java_attribute_module_t AttributeModule |
typedef struct java_attribute_module_main_class_t AttributeModuleMainClass |
typedef struct java_attribute_module_packages_t AttributeModulePackages |
typedef struct java_attribute_source_file_t AttributeSourceFile |
enum AttributeType |
Definition at line 15 of file class_attribute.h.
void java_attribute_free | ( | Attribute * | attr | ) |
Definition at line 559 of file class_attribute.c.
References ATTRIBUTE_TYPE_CODE, ATTRIBUTE_TYPE_LINENUMBERTABLE, ATTRIBUTE_TYPE_LOCALVARIABLETABLE, ATTRIBUTE_TYPE_MODULE, ATTRIBUTE_TYPE_MODULEPACKAGES, java_attribute_code_t::attributes, java_attribute_code_t::attributes_count, java_attribute_code_t::exceptions, java_attribute_module_t::exports, java_attribute_module_t::exports_count, free(), i, java_attribute_t::info, java_attribute_module_t::opens, java_attribute_module_t::opens_count, java_attribute_module_packages_t::package_index, java_attribute_module_t::provides, java_attribute_module_t::provides_count, java_attribute_module_t::requires, java_attribute_line_number_table_t::table, java_attribute_local_variable_table_t::table, java_module_open_t::to_indices, java_module_export_t::to_indices, java_attribute_t::type, java_attribute_module_t::uses_index, and java_module_provide_t::with_indices.
Referenced by java_attribute_set_code(), java_class_parse(), java_field_free(), java_field_new(), java_method_free(), java_method_new(), and rz_bin_java_class_free().
Definition at line 540 of file class_attribute.c.
References java_attribute_t::attribute_length, java_attribute_t::attribute_name_index, free(), NULL, java_attribute_t::offset, rz_buf_read_be16, rz_buf_read_be32, RZ_NEW0, and rz_return_val_if_fail.
Referenced by java_attribute_set_code(), java_class_parse(), java_field_new(), and java_method_new().
bool java_attribute_resolve | ( | ConstPool ** | pool, |
ut32 | poolsize, | ||
Attribute * | attr, | ||
RzBuffer * | buf, | ||
bool | is_oak | ||
) |
Definition at line 504 of file class_attribute.c.
References java_attribute_t::attribute_name_index, free(), java_attribute_set_code(), java_attribute_set_constantvalue(), java_attribute_set_linenumbertable(), java_attribute_set_localvariabletable(), java_attribute_set_localvariabletypetable(), java_attribute_set_module(), java_attribute_set_modulemainclass(), java_attribute_set_modulepackages(), java_attribute_set_sourcedebugextension(), java_attribute_set_sourcefile(), java_attribute_set_unknown(), and resolve_const_pool_index().
Referenced by java_attribute_set_code(), java_class_parse(), java_field_new(), and java_method_new().