int main() { Test* test =new Test(); test_creating_empty_list(test); test_creating_full_list(test); test_front(test); test_push_front(test); test_push_back(test); test_pop_front(test); test_pop_back(test); test_iter(test); test_reverse(test); test_swap(test); test_input(test); test_cp(test); test_const_iter(test); }
char *Class::get_cp_field_type(u2 cp_index) { test_cp("get_cp_field_type", TAG_FIELD, cp_index, this); return get_cp_ref_descriptor(cp_index); }
char *Class::get_cp_method_name(u2 cp_index) { test_cp("get_cp_method_name", TAG_METHOD, cp_index, this); return get_cp_ref_name(cp_index); }
char *Class::get_cp_class_name(u2 cp_index) { test_cp("get_cp_class_name", TAG_CLASS, cp_index, this); cp_index = constant_pool[cp_index].name_index; return get_cp_utf8(cp_index); }
char *Class::get_cp_field_name(u2 cp_index) { test_cp("get_cp_field_name", TAG_FIELD, cp_index, this); return get_cp_ref_name(cp_index); }
char *Class::get_cp_utf8(u2 cp_index) { test_cp("get_cp_utf8", TAG_UTF8, cp_index, this); return constant_pool[cp_index].utf8; }
char *Class::get_cp_string(u2 cp_index) { test_cp("get_cp_string", TAG_STRING, cp_index, this); cp_index = constant_pool[cp_index].string_index; return get_cp_utf8(cp_index); }
char *Class::get_cp_ref_descriptor(u2 cp_index) { cp_index = constant_pool[cp_index].Ref.name_and_type_index; test_cp("get_cp_ref_descriptor", TAG_NAMEANDTYPE, cp_index, this); cp_index = constant_pool[cp_index].NameAndType.descriptor_index; return get_cp_utf8(cp_index); }
char *Class::get_cp_imethod_descriptor(u2 cp_index) { test_cp("get_cp_imethod_descriptor", TAG_IMETHOD, cp_index, this); return get_cp_ref_descriptor(cp_index); }
char *Class::get_cp_imethod_class(u2 cp_index) { test_cp("get_cp_imethod_class", TAG_IMETHOD, cp_index, this); return get_cp_ref_class(cp_index); }