Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_types.h>
#include <rz_lib.h>
#include <rz_demangler.h>
#include <rz_cmd.h>
#include <rz_core.h>
#include <rz_cons.h>
#include <string.h>
#include <rz_analysis.h>
#include "../format/java/class_bin.h"
Go to the source code of this file.
Macros | |
#define | name_args(name) (cmd_##name##_args) |
#define | name_help(name) (cmd_##name##_help) |
#define | name_handler(name) (rz_cmd_##name##_handler) |
#define | static_description_without_args(command, summ) |
#define | rz_cmd_desc_argv_modes_new_warn(rcmd, root, cmd, flags) rz_warn_if_fail(rz_cmd_desc_argv_modes_new(rcmd, root, #cmd, flags, name_handler(cmd), &name_help(cmd))) |
#define | rz_cmd_desc_argv_new_warn(rcmd, root, cmd) rz_warn_if_fail(rz_cmd_desc_argv_new(rcmd, root, #cmd, name_handler(cmd), &name_help(cmd))) |
Variables | |
static const RzCmdDescHelp | java_usage |
RzCorePlugin | rz_core_plugin_java |
RZ_API RzLibStruct | rizin_plugin |
Definition at line 15 of file core_java.c.
Definition at line 17 of file core_java.c.
Definition at line 16 of file core_java.c.
#define rz_cmd_desc_argv_modes_new_warn | ( | rcmd, | |
root, | |||
cmd, | |||
flags | |||
) | rz_warn_if_fail(rz_cmd_desc_argv_modes_new(rcmd, root, #cmd, flags, name_handler(cmd), &name_help(cmd))) |
Definition at line 26 of file core_java.c.
#define rz_cmd_desc_argv_new_warn | ( | rcmd, | |
root, | |||
cmd | |||
) | rz_warn_if_fail(rz_cmd_desc_argv_new(rcmd, root, #cmd, name_handler(cmd), &name_help(cmd))) |
Definition at line 29 of file core_java.c.
#define static_description_without_args | ( | command, | |
summ | |||
) |
Definition at line 18 of file core_java.c.
|
static |
Definition at line 32 of file core_java.c.
References rz_core_t::analysis, b, rz_bin_bind_t::bin, rz_analysis_t::binb, rz_bin_plugin_t::name, and NULL.
Referenced by rz_cmd_javac_handler(), rz_cmd_javaf_handler(), rz_cmd_javai_handler(), rz_cmd_javam_handler(), rz_cmd_javap_handler(), rz_cmd_javar_handler(), and rz_cmd_javas_handler().
|
static |
References RZ_CMD_ARG_TYPE_NUM.
|
static |
References name_args.
Definition at line 293 of file core_java.c.
References java_usage, NULL, rz_core_t::rcmd, cmd_descs_generate::root_cd, rz_cmd_desc_argv_modes_new_warn, rz_cmd_desc_argv_new_warn, rz_cmd_desc_group_new(), rz_cmd_get_root(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
RZ_IPI RzCmdStatus rz_cmd_javac_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 48 of file core_java.c.
References core_java_get_class(), pj_free(), pj_new(), pj_string(), rz_bin_java_class_as_json(), rz_bin_java_class_as_text(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_println(), RZ_OUTPUT_MODE_JSON, rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), and sb.
RZ_IPI RzCmdStatus rz_cmd_javaf_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 180 of file core_java.c.
References core_java_get_class(), pj_free(), pj_new(), pj_string(), rz_bin_java_class_fields_as_json(), rz_bin_java_class_fields_as_text(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_println(), RZ_OUTPUT_MODE_JSON, rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), and sb.
RZ_IPI RzCmdStatus rz_cmd_javai_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 114 of file core_java.c.
References core_java_get_class(), pj_free(), pj_new(), pj_string(), rz_bin_java_class_interfaces_as_json(), rz_bin_java_class_interfaces_as_text(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_println(), RZ_OUTPUT_MODE_JSON, rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), and sb.
RZ_IPI RzCmdStatus rz_cmd_javam_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 147 of file core_java.c.
References core_java_get_class(), pj_free(), pj_new(), pj_string(), rz_bin_java_class_methods_as_json(), rz_bin_java_class_methods_as_text(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_println(), RZ_OUTPUT_MODE_JSON, rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), and sb.
RZ_IPI RzCmdStatus rz_cmd_javap_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 81 of file core_java.c.
References core_java_get_class(), pj_free(), pj_new(), pj_string(), rz_bin_java_class_const_pool_as_json(), rz_bin_java_class_const_pool_as_text(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_println(), RZ_OUTPUT_MODE_JSON, rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), and sb.
RZ_IPI RzCmdStatus rz_cmd_javar_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 234 of file core_java.c.
References argv, core_java_get_class(), free(), rz_core_t::num, rz_bin_java_class_const_pool_resolve_index(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_println(), rz_demangler_java(), RZ_LOG_ERROR, rz_num_math(), and st32.
RZ_IPI RzCmdStatus rz_cmd_javas_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 213 of file core_java.c.
References core_java_get_class(), rz_bin_java_class_as_source_code(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), and sb.
static_description_without_args | ( | javac | , |
"prints the class structure" | |||
) |
static_description_without_args | ( | javaf | , |
"prints the class fields" | |||
) |
static_description_without_args | ( | javai | , |
"prints the class interfaces" | |||
) |
static_description_without_args | ( | javam | , |
"prints the class methods" | |||
) |
static_description_without_args | ( | javap | , |
"prints the class constant pool" | |||
) |
|
static |
Definition at line 269 of file core_java.c.
Referenced by rz_cmd_java_init_handler().
RZ_API RzLibStruct rizin_plugin |
Definition at line 327 of file core_java.c.
RzCorePlugin rz_core_plugin_java |
Definition at line 317 of file core_java.c.