Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

classview.cc File Reference

#include <stdlib.h>
#include "class.h"
#include "classimg.h"
#include "htatom.h"
#include "httag.h"
#include "snprintf.h"
#include "stream.h"

Go to the source code of this file.

Defines

#define ATOM_CLS_ACCESS   0xcafebab0
#define ATOM_CLS_ACCESS_STR   "cafebab0"
#define ATOM_CLS_CPOOL   0xcafebab1
#define ATOM_CLS_CPOOL_STR   "cafebab1"

Variables

ht_tag_flags_s access_flags []
int_hash cpool_tags []
ht_mask_ptable cls_class1_hdr []
ht_mask_ptable cls_class2_hdr []
ht_mask_ptable cpool_class []
ht_mask_ptable cpool_fmi []
ht_mask_ptable cpool_str []
ht_mask_ptable cpool_if []
ht_mask_ptable cpool_ld []
ht_mask_ptable cpool_nat []
ht_mask_ptable cpool_utf8 []
ht_mask_ptable cpool_hdr []
ht_mask_ptable iface_hdr []
ht_mask_ptable field_hdr []
ht_mask_ptable method_hdr []
ht_mask_ptable mf_hdr []
ht_mask_ptable atr_hdr []
ht_mask_ptable aexpt_hdr []
ht_mask_ptable aexpt_info []
ht_mask_ptable ainn_info []
ht_mask_ptable aline_info []
ht_mask_ptable aloc_info []
ht_mask_ptable axpt_info []
ht_mask_ptable attrib_hdr []
ht_mask_ptable aconst_hdr []
ht_mask_ptable acode_hdr []
ht_mask_ptable axpt_hdr []
ht_mask_ptable ainn_hdr []
ht_mask_ptable asrc_hdr []
ht_mask_ptable alin_hdr []
ht_mask_ptable aloc_hdr []
format_viewer_if htcls_if


Define Documentation

#define ATOM_CLS_ACCESS   0xcafebab0
 

Definition at line 30 of file classview.cc.

#define ATOM_CLS_ACCESS_STR   "cafebab0"
 

Definition at line 31 of file classview.cc.

#define ATOM_CLS_CPOOL   0xcafebab1
 

Definition at line 32 of file classview.cc.

#define ATOM_CLS_CPOOL_STR   "cafebab1"
 

Definition at line 33 of file classview.cc.


Variable Documentation

ht_tag_flags_s access_flags[]
 

Initial value:

 
{
        { -1,  "access flags"},
        {8+0,  "[0x0001] public"},
        {8+1,  "[0x0002] private"},
        {8+2,  "[0x0004] protected"},
        {8+3,  "[0x0008] static"},
        {8+4,  "[0x0010] final"},
        {8+5,  "[0x0020] synchronized"},
        {8+6,  "[0x0040] volatile"},
        {8+7,  "[0x0080] transient"},
        {8+8,  "[0x0100] native"},
        {8+9,  "[0x0200] interface"},
        {8+10, "[0x0400] abstract"},
        {8+11, "[0x0800] strict"},
        {0, 0}
}

Definition at line 35 of file classview.cc.

ht_mask_ptable acode_hdr[]
 

Initial value:

 
{
        {"max stack",                  STATICTAG_EDIT_WORD_BE ("00000006")},
        {"max locals",                 STATICTAG_EDIT_WORD_BE ("00000008")},
        {"code length",                STATICTAG_EDIT_DWORD_BE("0000000a")},
        {0, 0}
}

Definition at line 211 of file classview.cc.

ht_mask_ptable aconst_hdr[]
 

Initial value:

 
{
        {"constantvalue index",        STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 206 of file classview.cc.

ht_mask_ptable aexpt_hdr[]
 

Initial value:

 
{
        {"exception table length",     STATICTAG_EDIT_WORD_BE("00000000")},
        {0, 0}
}

Definition at line 158 of file classview.cc.

ht_mask_ptable aexpt_info[]
 

Initial value:

 
{
        {"start pc",                   STATICTAG_EDIT_WORD_BE ("00000000")},
        {"end pc",                     STATICTAG_EDIT_WORD_BE ("00000002")},
        {"handler pc",                 STATICTAG_EDIT_WORD_BE ("00000004")},
        {"catch type",                 STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 163 of file classview.cc.

ht_mask_ptable ainn_hdr[]
 

Initial value:

 
{
        {"number of classes",          STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 223 of file classview.cc.

ht_mask_ptable ainn_info[]
 

Initial value:

 
{
        {"inner class info index",     STATICTAG_EDIT_WORD_BE ("00000000")},
        {"outer class info index",     STATICTAG_EDIT_WORD_BE ("00000002")},
        {"inner name index",           STATICTAG_EDIT_WORD_BE ("00000004")},
        {"inner class access flags",   STATICTAG_EDIT_WORD_BE ("00000006")
" "STATICTAG_FLAGS("00000006", ATOM_CLS_ACCESS_STR)},
        {0, 0}
}

Definition at line 171 of file classview.cc.

ht_mask_ptable alin_hdr[]
 

Initial value:

 
{
        {"line_number table length",   STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 233 of file classview.cc.

ht_mask_ptable aline_info[]
 

Initial value:

 
{
        {"start pc",                   STATICTAG_EDIT_WORD_BE ("00000000")},
        {"line number",                STATICTAG_EDIT_WORD_BE ("00000002")},
        {0, 0}
}

Definition at line 180 of file classview.cc.

ht_mask_ptable aloc_hdr[]
 

Initial value:

 
{
        {"local variable table length",STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 238 of file classview.cc.

ht_mask_ptable aloc_info[]
 

Initial value:

 
{
        {"start pc",                   STATICTAG_EDIT_WORD_BE ("00000000")},
        {"length",                     STATICTAG_EDIT_WORD_BE ("00000002")},
        {"name index",                 STATICTAG_EDIT_WORD_BE ("00000004")},
        {"descriptor index",           STATICTAG_EDIT_WORD_BE ("00000006")},
        {"index",                      STATICTAG_EDIT_WORD_BE ("00000008")},
        {0, 0}
}

Definition at line 186 of file classview.cc.

ht_mask_ptable asrc_hdr[]
 

Initial value:

 
{
        {"sourcefile index",           STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 228 of file classview.cc.

ht_mask_ptable atr_hdr[]
 

Initial value:

 
{
        {"attributes count",           STATICTAG_EDIT_WORD_BE("00000000")},
        {0, 0}
}

Definition at line 153 of file classview.cc.

ht_mask_ptable attrib_hdr[]
 

Initial value:

 
{
        {"attribute name index",       STATICTAG_EDIT_WORD_BE ("00000000")},
        {"attribute length",           STATICTAG_EDIT_DWORD_BE("00000002")},
        {0, 0}
}

Definition at line 200 of file classview.cc.

ht_mask_ptable axpt_hdr[]
 

Initial value:

 
{
        {"number of exceptions",       STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 218 of file classview.cc.

ht_mask_ptable axpt_info[]
 

Initial value:

 
{
        {"exception",                  STATICTAG_EDIT_WORD_BE ("00000000")},
        {0, 0}
}

Definition at line 195 of file classview.cc.

ht_mask_ptable cls_class1_hdr[]
 

Initial value:

 
{
        {"magic",                      STATICTAG_EDIT_DWORD_BE("00000000")},
        {"minor version",              STATICTAG_EDIT_WORD_BE ("00000004")},
        {"major version",              STATICTAG_EDIT_WORD_BE ("00000006")},
        {"constant pool count",        STATICTAG_EDIT_WORD_BE ("00000008")},
        {0, 0}
}

Definition at line 68 of file classview.cc.

ht_mask_ptable cls_class2_hdr[]
 

Initial value:

 
{
        {"access flags",               STATICTAG_EDIT_WORD_BE ("00000000")
" "STATICTAG_FLAGS("00000000", ATOM_CLS_ACCESS_STR)},
        {"this class",                 STATICTAG_EDIT_WORD_BE ("00000002")},
        {"super class",                STATICTAG_EDIT_WORD_BE ("00000004")},
        {"interfaces count",           STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 76 of file classview.cc.

ht_mask_ptable cpool_class[]
 

Initial value:

 
{
        {"name index",                 STATICTAG_EDIT_WORD_BE("00000001")},
        {0, 0}
}

Definition at line 85 of file classview.cc.

ht_mask_ptable cpool_fmi[]
 

Initial value:

{
        {"class index",                STATICTAG_EDIT_WORD_BE("00000001")},
        {"name and type index",        STATICTAG_EDIT_WORD_BE("00000003")},
        {0, 0}
}

Definition at line 90 of file classview.cc.

ht_mask_ptable cpool_hdr[]
 

Initial value:

 
{ 
        {"tag",                        STATICTAG_EDIT_BYTE("00000000")
" "STATICTAG_DESC_BYTE("00000000", ATOM_CLS_CPOOL_STR)},
        {0, 0}
}

Definition at line 123 of file classview.cc.

ht_mask_ptable cpool_if[]
 

Initial value:

 
{
        {"bytes",                      STATICTAG_EDIT_DWORD_BE("00000001")},
        {0, 0}
}

Definition at line 101 of file classview.cc.

ht_mask_ptable cpool_ld[]
 

Initial value:

 
{
        {"high bytes",                 STATICTAG_EDIT_DWORD_BE("00000001")},
        {"low bytes",                  STATICTAG_EDIT_DWORD_BE("00000005")},
        {0, 0}
}

Definition at line 106 of file classview.cc.

ht_mask_ptable cpool_nat[]
 

Initial value:

 
{
        {"name index",                 STATICTAG_EDIT_WORD_BE("00000001")},
        {"descriptor index",           STATICTAG_EDIT_WORD_BE("00000003")},
        {0, 0}
}

Definition at line 112 of file classview.cc.

ht_mask_ptable cpool_str[]
 

Initial value:

{
        {"string index",               STATICTAG_EDIT_WORD_BE("00000001")},
        {0, 0}
}

Definition at line 96 of file classview.cc.

int_hash cpool_tags[]
 

Initial value:

 
{
        { 1, "utf8"},
        { 2, "unknown type"},
        { 3, "integer"},
        { 4, "float"},
        { 5, "long"},
        { 6, "double"},
        { 7, "class"},
        { 8, "string"},
        { 9, "fieldref"},
        {10, "methodref"},
        {11, "interfacemethodref"},
        {12, "nameandtype"},
        {0, 0}
}

Definition at line 52 of file classview.cc.

ht_mask_ptable cpool_utf8[]
 

Initial value:

 
{
        {"length",                     STATICTAG_EDIT_WORD_BE("00000001")},
        {0, 0}
}

Definition at line 118 of file classview.cc.

ht_mask_ptable field_hdr[]
 

Initial value:

 
{
        {"fields count",               STATICTAG_EDIT_WORD_BE("00000000")},
        {0, 0}
}

Definition at line 134 of file classview.cc.

format_viewer_if htcls_if
 

Initial value:

 {
        &class_init,
        0
}

Definition at line 723 of file classview.cc.

ht_mask_ptable iface_hdr[]
 

Initial value:

 
{
        {"class name index",           STATICTAG_EDIT_WORD_BE("00000000")},
        {0, 0}
}

Definition at line 129 of file classview.cc.

ht_mask_ptable method_hdr[]
 

Initial value:

 
{
        {"methods count",              STATICTAG_EDIT_WORD_BE("00000000")},
        {0, 0}
}

Definition at line 139 of file classview.cc.

ht_mask_ptable mf_hdr[]
 

Initial value:

 
{
        {"access flags",               STATICTAG_EDIT_WORD_BE ("00000000")
" "STATICTAG_FLAGS("00000000", ATOM_CLS_ACCESS_STR)},
        {"name index",                 STATICTAG_EDIT_WORD_BE ("00000002")},
        {"descriptor index",           STATICTAG_EDIT_WORD_BE ("00000004")},
        {"attributes count",           STATICTAG_EDIT_WORD_BE ("00000006")},
        {0, 0}
}

Definition at line 144 of file classview.cc.


Generated on Fri May 7 21:15:47 2004 by doxygen 1.3.5