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

nci/suif/suif2b/j2s/j2s_runtime/rt_JField.h File Reference

#include "j2s_runtime/rt_stats.h"

Go to the source code of this file.

Compounds

class  JField

Defines

#define SET_FROM_TO(_from, _to)
#define SET_FROM_EXC(_from)
#define GET_FROM_TO(_from, _to)
#define GET_TO_EXC(_to)
#define GET_REF_FROM(_from)
#define GET_REF_EXC()
#define SET_REF_FROM(_from)
#define JFIELD(x)    ((JField *) (x))
#define _SET_PRIM(X)
#define _GET_PRIM(X)

Functions

 _SET_PRIM (Boolean) _SET_PRIM(Byte) _SET_PRIM(Char) _SET_PRIM(Short) _SET_PRIM(Int) _SET_PRIM(Long) _SET_PRIM(Float) _SET_PRIM(Double) inline void JField
 _GET_PRIM (Boolean) _GET_PRIM(Byte) _GET_PRIM(Char) _GET_PRIM(Short) _GET_PRIM(Int) _GET_PRIM(Long) _GET_PRIM(Float) _GET_PRIM(Double) inline JObject *JField
 TD_DECL_PROC_1 (Field_init, void, JObject*)


Define Documentation

#define GET_FROM_TO( _from,
_to)

Initial value:

\
J##_to get##_to##_from (JObject *o)\
{ return (J##_to) _get##_from(o); }

#define GET_REF_EXC()

Initial value:

\
JReference getReferenceException (JObject *)\
{ THROW(JIllegalAccessException); return NULL; }

#define GET_REF_FROM( _from)

Initial value:

\
JReference getReference##_from (JObject *o)\
{ return UWrap::build##_from(_get##_from(o)); }

#define GET_TO_EXC( _to)

Initial value:

\
J##_to get##_to##Exception (JObject *)\
{ THROW(JIllegalAccessException); return (J##_to) 0; }

#define JFIELD( x)   ((JField *) (x))

#define SET_FROM_EXC( _from)

Initial value:

\
void set##_from##Exception (JObject *, J##_from)\
{ THROW(JIllegalAccessException); }

#define SET_FROM_TO( _from,
_to)

Initial value:

\
void set##_from##_to (JObject *o, J##_from newvalue)\
{ _set##_to(o, (J##_to) newvalue); }

#define SET_REF_FROM( _from)

Initial value:

\
void setReference##_from (JObject *obj, JReference newvalue)\
{ _set##_from(obj, UnWrap::##_from(newvalue)); }

#define _GET_PRIM( X)

Initial value:

\
inline J##X JField::_get##X (JObject *o)\
{\
   if(isStatic() == B_TRUE) {\
     Stats::Field_get_static_called();\
     hidden()->_clinit_(clazz());\
     return ::get##X##StaticField((void *) slot());\
   } else {\
     return ::get##X##Field(o, slot());\
   }\
}

#define _SET_PRIM( X)

Initial value:

\
inline void JField::_set##X (JObject *o, J##X v)\
{\
   if(isStatic() == B_TRUE) {\
    Stats::Field_set_static_called();\
    hidden()->_clinit_(clazz());\
    ::set##X##StaticField(v, (void *) slot());\
   }else {\
    ::set##X##Field(o, slot(), v);\
   }\
}

Function Documentation

TD_DECL_PROC_1 ( Field_init,
void,
JObject *)

_GET_PRIM ( Boolean)

_SET_PRIM ( Boolean)


Generated at Mon Jul 31 13:42:04 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000