Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

j2s_Word Class Reference

#include <j2s_word.h>

Inheritance diagram for j2s_Word:

j2s_LocalVariable j2s_StackValue List of all members.

Public Types

enum  type_kind {
  t_int = 1,
  t_long,
  t_float,
  t_double,
  t_reference,
  t_returnAddress,
  t_invalid
}
enum  ret_type_kind {
  rt_int = 1,
  rt_long,
  rt_float,
  rt_double,
  rt_reference,
  rt_void
}

Public Methods

char* name () const
type_kind kind () const
bool is_int () const
bool is_long () const
bool is_float () const
bool is_double () const
bool is_reference () const
bool is_returnAddress () const
bool is_32bit () const
bool is_64bit () const
jhl_ArrayclassOrUnitTypereference () const
void set_reference (jhl_ArrayclassOrUnitType* ref)
bool is_invalid () const

Static Public Methods

jhl_Array<jhl_Unit>* superclass_hierarchy (jhl_Unit* u)
void print_superclass_hierarchy (jhl_Array<jhl_Unit>* chain)
bool is_in_class_hierarchy (jhl_Unit* u, jhl_Array<jhl_Unit>* hierarchy)
bool is_subtype (jhl_Unit* subtype, jhl_Unit* supertype)
ret_type_kind transfer_type (jhl_FieldType* ft)
DataType* get_suif_type (type_kind k)
DataType* get_suif_type (jhl_Unit* unit, j2s_OSUIFObjLayout* ol)

Protected Methods

 j2s_Word (j2s_Word&)
j2s_Word& operator= (j2s_Word&)
 j2s_Word ()
 j2s_Word (type_kind k, jhl_ArrayclassOrUnitType* ref)
virtual ~j2s_Word ()
bool merge_references (jhl_ArrayclassOrUnitType* ref)
bool merge_units (jhl_Unit* ref)

Protected Attributes

char* _name
type_kind _type_kind
jhl_ArrayclassOrUnitType_reference

Static Protected Methods

const char* type2str (type_kind k)

Static Protected Attributes

int const hierarchy_depth_init = 5
const char* const int_str_suffix = "int"
const char* const long_str_suffix = "long"
const char* const float_str_suffix = "float"
const char* const double_str_suffix = "double"
const char* const reference_str_suffix = "ref"
const char* const returnAddress_str_suffix = "retAdr"


Detailed Description


Member Enumeration Documentation

enum j2s_Word::ret_type_kind

Enumeration values:
rt_int  
rt_long  
rt_float  
rt_double  
rt_reference  
rt_void  

enum j2s_Word::type_kind

Enumeration values:
t_int  
t_long  
t_float  
t_double  
t_reference  
t_returnAddress  
t_invalid  

Constructor & Destructor Documentation

j2s_Word::j2s_Word ( j2s_Word &) [protected]

j2s_Word::j2s_Word () [protected]

j2s_Word::j2s_Word ( type_kind k,
jhl_ArrayclassOrUnitType * ref) [protected]

j2s_Word::~j2s_Word () [protected, virtual]


Member Function Documentation

DataType * j2s_Word::get_suif_type ( jhl_Unit * unit,
j2s_OSUIFObjLayout * ol) [static]

DataType * j2s_Word::get_suif_type ( type_kind k) [static]

bool j2s_Word::is_32bit () const

bool j2s_Word::is_64bit () const

bool j2s_Word::is_double () const [inline]

bool j2s_Word::is_float () const [inline]

bool j2s_Word::is_in_class_hierarchy ( jhl_Unit * u,
jhl_Array<jhl_Unit>* hierarchy) [static]

bool j2s_Word::is_int () const [inline]

bool j2s_Word::is_invalid () const [inline]

bool j2s_Word::is_long () const [inline]

bool j2s_Word::is_reference () const [inline]

bool j2s_Word::is_returnAddress () const [inline]

bool j2s_Word::is_subtype ( jhl_Unit * subtype,
jhl_Unit * supertype) [static]

type_kind j2s_Word::kind ( void) const [inline]

bool j2s_Word::merge_references ( jhl_ArrayclassOrUnitType * ref) [protected]

bool j2s_Word::merge_units ( jhl_Unit * ref) [protected]

char * j2s_Word::name ( void) const [inline]

j2s_Word& j2s_Word::operator= ( j2s_Word &) [protected]

void j2s_Word::print_superclass_hierarchy ( jhl_Array<jhl_Unit>* chain) [static]

jhl_ArrayclassOrUnitType * j2s_Word::reference () const

void j2s_Word::set_reference ( jhl_ArrayclassOrUnitType * ref)

jhl_Array<jhl_Unit>* j2s_Word::superclass_hierarchy ( jhl_Unit * unit) [static]

j2s_Word::ret_type_kind j2s_Word::transfer_type ( jhl_FieldType * ft) [static]

const char * j2s_Word::type2str ( type_kind k) [static, protected]


Member Data Documentation

char * j2s_Word::_name [protected]

jhl_ArrayclassOrUnitType * j2s_Word::_reference [protected]

type_kind j2s_Word::_type_kind [protected]

const char *const j2s_Word::double_str_suffix = "double" [static, protected]

const char *const j2s_Word::float_str_suffix = "float" [static, protected]

int const j2s_Word::hierarchy_depth_init = 5 [static, protected]

const char *const j2s_Word::int_str_suffix = "int" [static, protected]

const char *const j2s_Word::long_str_suffix = "long" [static, protected]

const char *const j2s_Word::reference_str_suffix = "ref" [static, protected]

const char *const j2s_Word::returnAddress_str_suffix = "retAdr" [static, protected]


The documentation for this class was generated from the following files:
Generated at Mon Jul 31 13:43:34 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000