Jive reference manual
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
jem::Class Class Referenceabstract

#include <jem/base/Class.h>

Inheritance diagram for jem::Class:
Inheritance graph

Public Types

typedef Constructor Ctor
 
typedef Array< Ref< Ctor > > CtorArray
 
typedef Array< Ref< Method > > MethodArray
 
typedef Array< Ref< Field > > FieldArray
 
typedef util::Dictionary Dictionary
 

Public Member Functions

String getName () const
 
String getWhatis () const
 
void setWhatis (const String &whatis)
 
bool isBaseOf (Class *type) const
 
ClassgetSuperClass () const
 
virtual bool equalType (const Ref< Object > &obj) const =0
 
bool isInstance (const Ref< Object > &obj) const
 
Ref< ObjectnewInstance () const
 
void addConstructor (const Ref< Ctor > &ctor)
 
CtorArray getConstructors () const
 
Ref< CtorgetConstructor (Class **argTypes, idx_t argCount)
 
void addAttribute (const String &name, const Ref< Object > &attrib)
 
Ref< DictionarygetAttributes () const
 
Ref< DictionarygetDeclaredAttribs () const
 
Ref< ObjectgetAttribute (const String &name) const
 
Ref< ObjectgetDeclaredAttrib (const String &name) const
 
void addField (const Ref< Field > &field)
 
FieldArray getFields () const
 
FieldArray getDeclaredFields () const
 
Ref< FieldgetField (const String &name) const
 
Ref< FieldgetDeclaredField (const String &name) const
 
void addMethod (const Ref< Method > &method)
 
MethodArray getMethods () const
 
MethodArray getDeclaredMethods () const
 
Ref< MethodgetMethod (const String &name) const
 
Ref< MethodgetDeclaredMethod (const String &name) const
 

Static Public Member Functions

static void registerClass (Class *type)
 
static ClassfindClass (const String &name)
 

Protected Member Functions

 Class (const String &name)
 
 Class (Class *super, const String &name)
 
virtual ~Class ()
 

Friends

class ClassTableTraits
 

Member Typedef Documentation

Constructor & Destructor Documentation

jem::Class::Class ( const String name)
explicitprotected
jem::Class::Class ( Class super,
const String name 
)
protected
virtual jem::Class::~Class ( )
protectedvirtual

Member Function Documentation

String jem::Class::getName ( ) const
String jem::Class::getWhatis ( ) const
void jem::Class::setWhatis ( const String whatis)
bool jem::Class::isBaseOf ( Class type) const
Class * jem::Class::getSuperClass ( ) const
virtual bool jem::Class::equalType ( const Ref< Object > &  obj) const
pure virtual

Implemented in jem::ClassTemplate< T >.

bool jem::Class::isInstance ( const Ref< Object > &  obj) const
Ref<Object> jem::Class::newInstance ( ) const
void jem::Class::addConstructor ( const Ref< Ctor > &  ctor)
CtorArray jem::Class::getConstructors ( ) const
Ref<Ctor> jem::Class::getConstructor ( Class **  argTypes,
idx_t  argCount 
)
void jem::Class::addAttribute ( const String name,
const Ref< Object > &  attrib 
)
Ref<Dictionary> jem::Class::getAttributes ( ) const
Ref<Dictionary> jem::Class::getDeclaredAttribs ( ) const
Ref<Object> jem::Class::getAttribute ( const String name) const
Ref<Object> jem::Class::getDeclaredAttrib ( const String name) const
void jem::Class::addField ( const Ref< Field > &  field)
FieldArray jem::Class::getFields ( ) const
FieldArray jem::Class::getDeclaredFields ( ) const
Ref<Field> jem::Class::getField ( const String name) const
Ref<Field> jem::Class::getDeclaredField ( const String name) const
void jem::Class::addMethod ( const Ref< Method > &  method)
MethodArray jem::Class::getMethods ( ) const
MethodArray jem::Class::getDeclaredMethods ( ) const
Ref<Method> jem::Class::getMethod ( const String name) const
Ref<Method> jem::Class::getDeclaredMethod ( const String name) const
static void jem::Class::registerClass ( Class type)
static
static Class* jem::Class::findClass ( const String name)
static

Friends And Related Function Documentation

friend class ClassTableTraits
friend