Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | java_constant_pool_t |
Typedefs | |
typedef struct java_constant_pool_t | ConstPool |
Enumerations | |
enum | ConstPoolTag { CONSTANT_POOL_ZERO = 0 , CONSTANT_POOL_UTF8 = 1 , CONSTANT_POOL_UNICODE = 2 , CONSTANT_POOL_INTEGER = 3 , CONSTANT_POOL_FLOAT = 4 , CONSTANT_POOL_LONG = 5 , CONSTANT_POOL_DOUBLE = 6 , CONSTANT_POOL_CLASS = 7 , CONSTANT_POOL_STRING = 8 , CONSTANT_POOL_FIELDREF = 9 , CONSTANT_POOL_METHODREF = 10 , CONSTANT_POOL_INTERFACEMETHODREF = 11 , CONSTANT_POOL_NAMEANDTYPE = 12 , CONSTANT_POOL_METHODHANDLE = 15 , CONSTANT_POOL_METHODTYPE = 16 , CONSTANT_POOL_DYNAMIC = 17 , CONSTANT_POOL_INVOKEDYNAMIC = 18 , CONSTANT_POOL_MODULE = 19 , CONSTANT_POOL_PACKAGE = 20 } |
Functions | |
ConstPool * | java_constant_null_new (ut64 offset) |
ConstPool * | java_constant_pool_new (RzBuffer *buf, ut64 offset) |
void | java_constant_pool_free (ConstPool *cpool) |
const char * | java_constant_pool_tag_name (const ConstPool *cpool) |
bool | java_constant_pool_is_string (const ConstPool *cpool) |
bool | java_constant_pool_is_number (const ConstPool *cpool) |
bool | java_constant_pool_is_import (const ConstPool *cpool) |
bool | java_constant_pool_requires_null (const ConstPool *cpool) |
char * | java_constant_pool_stringify (const ConstPool *cpool) |
ut32 | java_constant_pool_resolve (const ConstPool *cpool, ut16 *arg0, ut16 *arg1) |
typedef struct java_constant_pool_t ConstPool |
enum ConstPoolTag |
Definition at line 10 of file class_const_pool.h.
Definition at line 20 of file class_const_pool.c.
References NULL, java_constant_pool_t::offset, RZ_NEW0, and rz_return_val_if_fail.
Referenced by java_class_parse().
void java_constant_pool_free | ( | ConstPool * | cpool | ) |
Definition at line 78 of file class_const_pool.c.
References java_constant_pool_t::buffer, and free().
Referenced by rz_bin_java_class_free().
Definition at line 145 of file class_const_pool.c.
References CONSTANT_POOL_FIELDREF, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_METHODREF, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_as_libraries(), rz_bin_java_class_const_pool_as_imports(), and rz_bin_java_class_const_pool_as_symbols().
Definition at line 137 of file class_const_pool.c.
References CONSTANT_POOL_DOUBLE, CONSTANT_POOL_FLOAT, CONSTANT_POOL_INTEGER, CONSTANT_POOL_LONG, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_const_pool_as_json(), rz_bin_java_class_const_pool_as_text(), and rz_bin_java_class_const_pool_resolve_index().
Definition at line 132 of file class_const_pool.c.
References CONSTANT_POOL_UNICODE, CONSTANT_POOL_UTF8, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_const_pool_as_json(), rz_bin_java_class_const_pool_as_text(), rz_bin_java_class_const_pool_resolve_index(), rz_bin_java_class_fields_as_binfields(), rz_bin_java_class_fields_as_symbols(), rz_bin_java_class_language(), rz_bin_java_class_methods_as_symbols(), and rz_bin_java_class_strings().
Definition at line 27 of file class_const_pool.c.
References CONSTANT_POOL_CLASS, constant_pool_copy_from_buffer(), CONSTANT_POOL_DOUBLE, CONSTANT_POOL_DYNAMIC, CONSTANT_POOL_FIELDREF, CONSTANT_POOL_FLOAT, CONSTANT_POOL_INTEGER, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_INVOKEDYNAMIC, CONSTANT_POOL_LONG, CONSTANT_POOL_METHODHANDLE, CONSTANT_POOL_METHODREF, CONSTANT_POOL_METHODTYPE, CONSTANT_POOL_MODULE, CONSTANT_POOL_NAMEANDTYPE, CONSTANT_POOL_PACKAGE, CONSTANT_POOL_STRING, CONSTANT_POOL_UNICODE, CONSTANT_POOL_UTF8, CONSTANT_POOL_ZERO, free(), NULL, java_constant_pool_t::offset, PFMT64x, rz_buf_read8(), rz_buf_read_be16, rz_buf_seek(), RZ_LOG_ERROR, RZ_NEW0, rz_return_val_if_fail, SEEK_SET, and java_constant_pool_t::tag.
Referenced by java_class_parse().
Definition at line 152 of file class_const_pool.c.
References CONSTANT_POOL_DOUBLE, CONSTANT_POOL_LONG, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by java_class_parse().
Definition at line 215 of file class_const_pool.c.
References java_constant_pool_t::buffer, CONSTANT_POOL_CLASS, CONSTANT_POOL_DYNAMIC, CONSTANT_POOL_FIELDREF, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_INVOKEDYNAMIC, CONSTANT_POOL_METHODHANDLE, CONSTANT_POOL_METHODREF, CONSTANT_POOL_METHODTYPE, CONSTANT_POOL_MODULE, CONSTANT_POOL_NAMEANDTYPE, CONSTANT_POOL_PACKAGE, CONSTANT_POOL_STRING, rz_read_be16(), rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_as_libraries(), rz_bin_java_class_as_source_code(), rz_bin_java_class_const_pool_as_imports(), rz_bin_java_class_const_pool_as_symbols(), rz_bin_java_class_const_pool_resolve_index(), rz_bin_java_class_interfaces_as_json(), rz_bin_java_class_interfaces_as_text(), rz_bin_java_class_name(), and rz_bin_java_class_super().
Definition at line 159 of file class_const_pool.c.
References java_constant_pool_t::buffer, CONSTANT_POOL_CLASS, CONSTANT_POOL_DOUBLE, CONSTANT_POOL_DYNAMIC, CONSTANT_POOL_FIELDREF, CONSTANT_POOL_FLOAT, CONSTANT_POOL_INTEGER, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_INVOKEDYNAMIC, CONSTANT_POOL_LONG, CONSTANT_POOL_METHODHANDLE, CONSTANT_POOL_METHODREF, CONSTANT_POOL_METHODTYPE, CONSTANT_POOL_MODULE, CONSTANT_POOL_NAMEANDTYPE, CONSTANT_POOL_PACKAGE, CONSTANT_POOL_STRING, CONSTANT_POOL_UNICODE, CONSTANT_POOL_UTF8, NULL, PFMT32x, PFMT64x, rz_read_be16(), rz_read_be32(), rz_read_be64(), rz_read_be_double(), rz_read_be_float(), rz_return_val_if_fail, rz_str_escape_mutf8_for_json(), rz_str_newf(), java_constant_pool_t::size, st32, st64, java_constant_pool_t::tag, and value.
Referenced by java_class_constant_pool_stringify_at(), java_set_sdb(), resolve_const_pool_index(), rz_bin_java_class_const_pool_as_json(), rz_bin_java_class_const_pool_as_text(), rz_bin_java_class_const_pool_resolve_index(), rz_bin_java_class_fields_as_binfields(), rz_bin_java_class_fields_as_symbols(), rz_bin_java_class_language(), rz_bin_java_class_methods_as_symbols(), and rz_bin_java_class_strings().
Definition at line 86 of file class_const_pool.c.
References CONSTANT_POOL_CLASS, CONSTANT_POOL_DOUBLE, CONSTANT_POOL_DYNAMIC, CONSTANT_POOL_FIELDREF, CONSTANT_POOL_FLOAT, CONSTANT_POOL_INTEGER, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_INVOKEDYNAMIC, CONSTANT_POOL_LONG, CONSTANT_POOL_METHODHANDLE, CONSTANT_POOL_METHODREF, CONSTANT_POOL_METHODTYPE, CONSTANT_POOL_MODULE, CONSTANT_POOL_NAMEANDTYPE, CONSTANT_POOL_PACKAGE, CONSTANT_POOL_STRING, CONSTANT_POOL_UNICODE, CONSTANT_POOL_UTF8, CONSTANT_POOL_ZERO, NULL, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_const_pool_as_json(), and rz_bin_java_class_const_pool_as_text().