#include <stdlib.h>
#include <string.h>
#include "analy.h"
#include "class.h"
#include "htstring.h"
#include "snprintf.h"
#include "stream.h"
Go to the source code of this file.
Defines | |
#define | cls_read(a, b, c, d) |
#define | READ1() |
#define | READ2() |
#define | READ4() |
#define | READN(inb, n) cls_read (inb, n, 1, htio) |
#define | SKIPN(n) {u1 b; for (u4 i=0; i<n; i++) {cls_read(&b, 1, 1, htio);}} |
#define | STRIP_PATH |
Functions | |
attrib_info * | attribute_read (ht_stream *htio, classfile *clazz) |
ht_class_shared_data * | class_read (ht_streamfile *htio) |
void | class_unread (ht_class_shared_data *shared) |
int | java_demangle_type (char *result, char **type) |
char * | java_demangle_flags (char *result, int flags) |
void | java_demangle (char *result, char *classname, char *name, char *type, int flags) |
int | token_translate (char *buf, int maxlen, dword token, ht_class_shared_data *shared) |
|
Value: (((b) != ((d)->read((a), (b)*(c)))) \ ? (0) : (offset+=(b), (b))) Definition at line 34 of file classread.cc. |
|
Value: Definition at line 36 of file classread.cc. |
|
Value: (((inp[0]=inp[1]=inp[2]=inp[3]=0), \ (2 == cls_read (inp, 2, 1, htio))) \ ? ((((u2)inp[0])<<8)|inp[1]) : 0) Definition at line 40 of file classread.cc. Referenced by attribute_read(), and class_read(). |
|
Value: (((inp[0]=inp[1]=inp[2]=inp[3]=0), \ (4 == cls_read (inp, 4, 1, htio))) \ ? (((((((u4)inp[0]<<8)|inp[1])<<8)|inp[2])<<8)|inp[3]) : 0) Definition at line 44 of file classread.cc. Referenced by attribute_read(), and class_read(). |
|
Definition at line 48 of file classread.cc. |
|
Definition at line 49 of file classread.cc. Referenced by attribute_read(). |
|
Definition at line 394 of file classread.cc. |
|
Definition at line 136 of file classread.cc. References attrib_info, classfile, _attrib_info::code, _attrib_info::len, len, malloc(), _attrib_info::name, NULL, _attrib_info::offset, READ2, READ4, SKIPN, _attrib_info::tag, and u4. Referenced by class_read(). |
|
|
Definition at line 346 of file classread.cc. References _classfile::attribs, _mf_info::attribs, _classfile::attribs_count, _mf_info::attribs_count, classfile, _classfile::cpool, _classfile::cpool_count, Area::done(), _classfile::fields, _classfile::fields_count, ht_class_shared_data::file, _classfile::interfaces, _classfile::methods, _classfile::methods_count, _cp_info::tag, u1, UINT, and ht_class_shared_data::valid. Referenced by cview::done(). |
|
Definition at line 469 of file classread.cc. References java_demangle_flags(), and java_demangle_type(). Referenced by ClassAnalyser::beginAnalysis(), and token_translate(). |
|
Definition at line 441 of file classread.cc. Referenced by ClassAnalyser::beginAnalysis(), and java_demangle(). |
|
Definition at line 396 of file classread.cc. Referenced by java_demangle(), and token_translate(). |
|
Definition at line 494 of file classread.cc. References buf, classfile, _classfile::cpool, _classfile::cpool_count, escape_special_str(), ht_class_shared_data::file, ht_snprintf(), java_demangle(), java_demangle_type(), NULL, _cp_info::tag, and _cp_info::value. Referenced by class_token_func(). |