2005/5/9

     
 

class ScriptObject

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::cfgscript::ScriptObject Class Reference

#include <ScriptObject.h>

Inheritance diagram for acdk::cfgscript::ScriptObject:

acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Simple Script acdk::lang::Object.

See also:
 CfgScript Handbook.


Public Member Functions

virtual::acdk::lang::dmi::ClazzInfo * getClazzInfo ()
 returns the ClazzInfo of this object instance must not be 0

bool isDmiOverLoaded (const acdk::lang::dmi::ClazzInfo *ci, IN(RString) funcname, const acdk::lang::dmi::ClazzMethodInfo *mi, acdk::lang::dmi::ClazzMethodArgInfo **const args)
 reimplemented from StdDispatch Will be called by a DmiProxy to choose native super implementation or to call overloaded script implementation

acdk::lang::ObjectgetDmiTarget (bool &forwarded, const::acdk::lang::dmi::ClazzInfo *&ci)
 implemented of StdDispatch

 ScriptObject (const acdk::lang::dmi::ClazzInfo *ci)
 ~ScriptObject ()
virtual acdk::lang::Object_cast (const::acdk::lang::dmi::ClazzInfo *ci)
virtual void getCollectableFields (FieldReferences &fields)
 retrun the collectable fields of this object (all Objects fields) will be re-implemented for each class by methods generated by acdkmc If this is manually implemented, the flag ObjectHasLocalGc should be set.

bool _gc_releaseRef (bool force=false) const
 may be called by releaseRef() if ObjectHasLocalGc is set

void finalize ()
 This is for java-compatibility.

void setSuperObject (IN(acdk::lang::Object) obj)
 INOUT (acdk::lang::Object) getSuperObject()
void setImplementation (IN(RScriptObject) impl)
bool isDirectSuper (const::acdk::lang::dmi::ClazzInfo *ci)
int readEval (IN(::acdk::io::RCharReader) in)
 read eval global module

const acdk::lang::dmi::ClazzMethodInfostandardDispatch (IN(acdk::lang::RString) fname, acdk::lang::dmi::ScriptVar &ret, acdk::lang::dmi::ScriptVarArray &args, acdk::lang::dmi::DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const acdk::lang::dmi::ClazzInfo *clazzinfo, const acdk::lang::dmi::ClazzMethodInfo *methinf)
void _invokeFinalize ()
void _setFinalized ()
acdk::lang::Object _findSuperByClazz (const acdk::lang::dmi::ClazzInfo *clazzinfo)

Static Public Member Functions

const::acdk::lang::dmi::ClazzMethodInfo * static_dispatch (IN(acdk::lang::RString) fname,::acdk::lang::dmi::ScriptVar &ret,::acdk::lang::dmi::ScriptVarArray &args,::acdk::lang::dmi::DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const::acdk::lang::dmi::ClazzInfo *clazzinfo, const::acdk::lang::dmi::ClazzMethodInfo *methinf)
const::acdk::lang::dmi::ClazzMethodInfo * dispatch (::acdk::lang::Object *This, IN(acdk::lang::RString) fname,::acdk::lang::dmi::ScriptVar &ret,::acdk::lang::dmi::ScriptVarArray &args,::acdk::lang::dmi::DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const::acdk::lang::dmi::ClazzInfo *clazzinfo, const::acdk::lang::dmi::ClazzMethodInfo *methinf)
const::acdk::lang::dmi::ClazzMethodInfo * abstract_method_dispatch (::acdk::lang::Object *This, IN(acdk::lang::RString) fname,::acdk::lang::dmi::ScriptVar &ret,::acdk::lang::dmi::ScriptVarArray &args,::acdk::lang::dmi::DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const::acdk::lang::dmi::ClazzInfo *clazzinfo, const::acdk::lang::dmi::ClazzMethodInfo *methinf)
bool _isDmiProxyInterface (const acdk::lang::dmi::ClazzInfo *ci)
bool _isScriptInterface (const acdk::lang::dmi::ClazzInfo *ci)

Public Attributes

RProps _locals
RObjectArray _dmiProxies
const acdk::lang::dmi::ClazzInfo_scriptClazzInfo
RScriptObject _derivedObject
 holds the derived object if any


Protected Attributes

acdk::lang::Object _superObject
bool _finalizeCalled

Private Member Functions

RScriptObject getMostDerived ()
virtual acdk::lang::Object_castFromTopMost (const::acdk::lang::dmi::ClazzInfo *ci)
virtual acdk::lang::Object_castFromObject (IN(acdk::lang::Object) o, const::acdk::lang::dmi::ClazzInfo *ci)
const acdk::lang::dmi::ClazzMethodInfostandardDispatchFromTopMost (IN(acdk::lang::RString) fname, acdk::lang::dmi::ScriptVar &ret, acdk::lang::dmi::ScriptVarArray &args, acdk::lang::dmi::DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const acdk::lang::dmi::ClazzInfo *clazzinfo, const acdk::lang::dmi::ClazzMethodInfo *methinf)

Private Attributes

bool _castRecGuard


Constructor & Destructor Documentation

acdk::cfgscript::ScriptObject::ScriptObject const acdk::lang::dmi::ClazzInfo ci  ) 
 

acdk::cfgscript::ScriptObject::~ScriptObject  ) 
 


Member Function Documentation

virtual acdk::lang::Object* acdk::cfgscript::ScriptObject::_cast const::acdk::lang::dmi::ClazzInfo *  ci  )  [virtual]
 

virtual acdk::lang::Object* acdk::cfgscript::ScriptObject::_castFromObject IN(acdk::lang::Object o,
const::acdk::lang::dmi::ClazzInfo *  ci
[private, virtual]
 

virtual acdk::lang::Object* acdk::cfgscript::ScriptObject::_castFromTopMost const::acdk::lang::dmi::ClazzInfo *  ci  )  [private, virtual]
 

acdk::lang::Object acdk::cfgscript::ScriptObject::_findSuperByClazz const acdk::lang::dmi::ClazzInfo clazzinfo  ) 
 

bool acdk::cfgscript::ScriptObject::_gc_releaseRef bool  force = false  )  const [virtual]
 

may be called by releaseRef() if ObjectHasLocalGc is set

Returns:
true if call the object destroyed

Reimplemented from acdk::lang::ObjectBase.

void acdk::cfgscript::ScriptObject::_invokeFinalize  ) 
 

bool acdk::cfgscript::ScriptObject::_isDmiProxyInterface const acdk::lang::dmi::ClazzInfo ci  )  [static]
 

bool acdk::cfgscript::ScriptObject::_isScriptInterface const acdk::lang::dmi::ClazzInfo ci  )  [static]
 

void acdk::cfgscript::ScriptObject::_setFinalized  ) 
 

const ::acdk::lang::dmi::ClazzMethodInfo* acdk::cfgscript::ScriptObject::abstract_method_dispatch ::acdk::lang::Object This,
IN(acdk::lang::RString fname,
::acdk::lang::dmi::ScriptVar ret,
::acdk::lang::dmi::ScriptVarArray args,
::acdk::lang::dmi::DmiClient dc,
IN(::acdk::lang::RStringArray namedArgs,
int  flags,
const::acdk::lang::dmi::ClazzInfo *  clazzinfo,
const::acdk::lang::dmi::ClazzMethodInfo *  methinf
[static]
 

const ::acdk::lang::dmi::ClazzMethodInfo* acdk::cfgscript::ScriptObject::dispatch ::acdk::lang::Object This,
IN(acdk::lang::RString fname,
::acdk::lang::dmi::ScriptVar ret,
::acdk::lang::dmi::ScriptVarArray args,
::acdk::lang::dmi::DmiClient dc,
IN(::acdk::lang::RStringArray namedArgs,
int  flags,
const::acdk::lang::dmi::ClazzInfo *  clazzinfo,
const::acdk::lang::dmi::ClazzMethodInfo *  methinf
[static]
 

void acdk::cfgscript::ScriptObject::finalize  )  [virtual]
 

This is for java-compatibility.

For real clean using Destructor is a better way. But different to destructors inside finalize() calls to virtual methods will still be dispatched to derived classes.

Reimplemented from acdk::lang::Object.

virtual ::acdk::lang::dmi::ClazzInfo* acdk::cfgscript::ScriptObject::getClazzInfo  )  [virtual]
 

returns the ClazzInfo of this object instance must not be 0

Implements acdk::lang::dmi::StdDispatch.

virtual void acdk::cfgscript::ScriptObject::getCollectableFields FieldReferences fields  )  [virtual]
 

retrun the collectable fields of this object (all Objects fields) will be re-implemented for each class by methods generated by acdkmc If this is manually implemented, the flag ObjectHasLocalGc should be set.

Reimplemented from acdk::lang::ObjectBase.

acdk::lang::Object* acdk::cfgscript::ScriptObject::getDmiTarget bool &  forwarded,
const ::acdk::lang::dmi::ClazzInfo *&  ci
[inline, virtual]
 

implemented of StdDispatch

Reimplemented from acdk::lang::Object.

RScriptObject acdk::cfgscript::ScriptObject::getMostDerived  )  [private]
 

acdk::cfgscript::ScriptObject::INOUT acdk::lang::Object   )  [inline]
 

bool acdk::cfgscript::ScriptObject::isDirectSuper const::acdk::lang::dmi::ClazzInfo *  ci  ) 
 

bool acdk::cfgscript::ScriptObject::isDmiOverLoaded const acdk::lang::dmi::ClazzInfo ci,
IN(RString funcname,
const acdk::lang::dmi::ClazzMethodInfo mi,
acdk::lang::dmi::ClazzMethodArgInfo **const  args
 

reimplemented from StdDispatch Will be called by a DmiProxy to choose native super implementation or to call overloaded script implementation

int acdk::cfgscript::ScriptObject::readEval IN(::acdk::io::RCharReader in  ) 
 

read eval global module

void acdk::cfgscript::ScriptObject::setImplementation IN(RScriptObject impl  ) 
 

void acdk::cfgscript::ScriptObject::setSuperObject IN(acdk::lang::Object obj  ) 
 

const acdk::lang::dmi::ClazzMethodInfo* acdk::cfgscript::ScriptObject::standardDispatch IN(acdk::lang::RString fname,
acdk::lang::dmi::ScriptVar ret,
acdk::lang::dmi::ScriptVarArray args,
acdk::lang::dmi::DmiClient dc,
IN(::acdk::lang::RStringArray namedArgs,
int  flags,
const acdk::lang::dmi::ClazzInfo clazzinfo,
const acdk::lang::dmi::ClazzMethodInfo methinf
 

const acdk::lang::dmi::ClazzMethodInfo* acdk::cfgscript::ScriptObject::standardDispatchFromTopMost IN(acdk::lang::RString fname,
acdk::lang::dmi::ScriptVar ret,
acdk::lang::dmi::ScriptVarArray args,
acdk::lang::dmi::DmiClient dc,
IN(::acdk::lang::RStringArray namedArgs,
int  flags,
const acdk::lang::dmi::ClazzInfo clazzinfo,
const acdk::lang::dmi::ClazzMethodInfo methinf
[private]
 

const ::acdk::lang::dmi::ClazzMethodInfo* acdk::cfgscript::ScriptObject::static_dispatch IN(acdk::lang::RString fname,
::acdk::lang::dmi::ScriptVar ret,
::acdk::lang::dmi::ScriptVarArray args,
::acdk::lang::dmi::DmiClient dc,
IN(::acdk::lang::RStringArray namedArgs,
int  flags,
const::acdk::lang::dmi::ClazzInfo *  clazzinfo,
const::acdk::lang::dmi::ClazzMethodInfo *  methinf
[static]
 


Member Data Documentation

bool acdk::cfgscript::ScriptObject::_castRecGuard [private]
 

RScriptObject acdk::cfgscript::ScriptObject::_derivedObject
 

holds the derived object if any

RObjectArray acdk::cfgscript::ScriptObject::_dmiProxies
 

bool acdk::cfgscript::ScriptObject::_finalizeCalled [protected]
 

RProps acdk::cfgscript::ScriptObject::_locals
 

const acdk::lang::dmi::ClazzInfo* acdk::cfgscript::ScriptObject::_scriptClazzInfo
 

acdk::lang::Object acdk::cfgscript::ScriptObject::_superObject [protected]