cprover
|
#include <json.h>
Public Types | |
enum | kindt { kindt::J_STRING, kindt::J_NUMBER, kindt::J_OBJECT, kindt::J_ARRAY, kindt::J_TRUE, kindt::J_FALSE, kindt::J_NULL } |
typedef std::vector< jsont > | arrayt |
typedef std::map< std::string, jsont > | objectt |
Public Member Functions | |
bool | is_string () const |
bool | is_number () const |
bool | is_object () const |
bool | is_array () const |
bool | is_true () const |
bool | is_false () const |
bool | is_null () const |
jsont () | |
void | output (std::ostream &out) const |
void | swap (jsont &other) |
void | clear () |
json_arrayt & | make_array () |
json_objectt & | make_object () |
const jsont & | operator[] (const std::string &key) const |
Static Public Member Functions | |
static jsont | json_boolean (bool value) |
Public Attributes | |
kindt | kind |
arrayt | array |
objectt | object |
std::string | value |
Protected Member Functions | |
void | output_rec (std::ostream &, unsigned indent) const |
jsont (kindt _kind) | |
jsont (kindt _kind, const std::string &_value) | |
Static Protected Member Functions | |
static void | escape_string (const std::string &, std::ostream &) |
Static Protected Attributes | |
static const jsont | null_json_object |
typedef std::vector<jsont> jsont::arrayt |
typedef std::map<std::string, jsont> jsont::objectt |
|
strong |
|
inline |
Definition at line 72 of file json.h.
Referenced by json_boolean(), and json_arrayt::push_back().
|
inlineprotected |
|
inline |
Definition at line 88 of file json.h.
References array, J_NULL, make_array(), make_object(), and value.
|
staticprotected |
Definition at line 15 of file json.cpp.
Referenced by operator[](), and output_rec().
|
inline |
Definition at line 52 of file json.h.
References J_ARRAY.
Referenced by java_bytecode_languaget::get_language_options(), java_class_loader_limitt::setup_class_load_limit(), and taint_parser().
|
inline |
Definition at line 67 of file json.h.
References J_NULL.
Referenced by convert(), and java_class_loader_limitt::setup_class_load_limit().
|
inline |
Definition at line 47 of file json.h.
References J_OBJECT.
Referenced by java_bytecode_languaget::get_language_options().
|
inline |
Definition at line 37 of file json.h.
References J_STRING.
Referenced by java_bytecode_languaget::get_language_options(), and java_class_loader_limitt::setup_class_load_limit().
|
inlinestatic |
|
inline |
Definition at line 228 of file json.h.
Referenced by add_to_json(), clear(), convert(), bmct::error_trace(), json(), bmc_covert::operator()(), goto_inlinet::goto_inline_logt::output_inline_log_json(), goto_unwindt::unwind_logt::output_log_json(), bmc_all_propertiest::report(), symex_parse_optionst::report_cover(), show_loop_ids(), and bmct::show_vcc_json().
|
inline |
Definition at line 234 of file json.h.
References J_OBJECT, and kind.
Referenced by add_to_json(), clear(), convert(), show_goto_functions_jsont::convert(), json_irept::convert_from_irep(), goto_difft::convert_function_group(), bmct::error_trace(), json(), json_output_function(), static_analyzert::json_report(), bmc_covert::operator()(), goto_inlinet::goto_inline_logt::output_inline_log_json(), dep_graph_domaint::output_json(), goto_unwindt::unwind_logt::output_log_json(), bmc_all_propertiest::report(), symex_parse_optionst::report_cover(), show_loop_ids_json(), show_properties_json(), and bmct::show_vcc_json().
|
inline |
Definition at line 100 of file json.h.
References escape_string(), null_json_object, and output_rec().
|
inline |
Definition at line 76 of file json.h.
References output_rec(), and swap().
Referenced by operator<<().
|
protected |
void jsont::swap | ( | jsont & | other | ) |
Definition at line 136 of file json.cpp.
References array, kind, object, and value.
Referenced by output(), parse_json(), and json_parsert::pop().
arrayt jsont::array |
Definition at line 126 of file json.h.
Referenced by clear(), java_bytecode_languaget::get_language_options(), list_functions(), taint_analysist::operator()(), output_rec(), json_arrayt::push_back(), json_arrayt::resize(), java_class_loader_limitt::setup_class_load_limit(), json_arrayt::size(), swap(), taint_parser(), unreachable_instructions(), and yyjsonparse().
kindt jsont::kind |
Definition at line 35 of file json.h.
Referenced by make_array(), make_object(), output_rec(), and swap().
|
staticprotected |
Definition at line 113 of file json.h.
Referenced by operator[](), and json_objectt::operator[]().
objectt jsont::object |
Definition at line 129 of file json.h.
Referenced by json_irept::convert_from_json(), swap(), and yyjsonparse().
std::string jsont::value |
Definition at line 131 of file json.h.
Referenced by clear(), java_bytecode_languaget::get_language_options(), output_rec(), java_class_loader_limitt::setup_class_load_limit(), swap(), and yyjsonparse().