|
|
|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::lang::dmi::StdDispatch Class Reference#include <StdDispatch.h>
Inheritance diagram for acdk::lang::dmi::StdDispatch:
List of all members.
Detailed Description
StdDispatch is a basic Interface implemented by every ACDK object and interface for dynamic call an ACDK method.
- Author:
- Roger Rene Kommer (kommer@artefaktur.com)
- Version:
- Revision
- 1.65
- Date:
- Date
- 2005/04/17 11:13:41
|
Public Member Functions |
| virtual | ~StdDispatch () |
| virtual::acdk::lang::dmi::ClazzInfo * | getClazzInfo ()=0 |
| | returns the ClazzInfo of this object instance must not be 0
|
| virtual::acdk::lang::Object * | getDmiTarget (bool &forwarded, const::acdk::lang::dmi::ClazzInfo *&ci)=0 |
| | Method invoke calls should forwarded to the DmiTarget.
|
| ::acdk::lang::Object * | getDmiTarget (const::acdk::lang::dmi::ClazzInfo *&ci) |
| | wrapps the call getDmiTarget(bool& forwarded) with a loop as long forwarded is true
|
| virtual DmiClient & | getDmiClient () |
| | return the DMI client which should be used for this object In normal case this is the AcdkDmiClient.
|
| virtual const ClazzMethodInfo * | standardDispatch (IN(::acdk::lang::RString) fname, ScriptVar &ret, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const ClazzInfo *clazzinfo=0, const ClazzMethodInfo *methinf=0) |
| | calls a method of this object used in generated stub
|
| ScriptVar | invokeMethod (IN(RString) funcname, ScriptVarArray &args, int flags=MiPublic) |
| | simpified interface to standardDispatch
|
| ScriptVar | invokeMethod (IN(RString) funcname, ScriptVarArray &args, IN(NamedArgs) nargs, int flags=MiPublic) |
| ScriptVar | invokeMethod (IN(RString) funcname, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags=MiPublic) |
| | simpified interface to standardDispatch
|
| ScriptVar | invokeMethod (IN(RString) funcname, ScriptVarArray &args, IN(::acdk::lang::RStringArray) namedArgs, int flags=MiPublic) |
| | simpified interface to standardDispatch
|
| virtual ScriptVar | getMember (IN(::acdk::lang::RString) fieldname, DmiClient &dc, int flags, const ClazzInfo *type_requested=0) |
| | retreive a member variable of this object
|
| virtual void | setMember (IN(::acdk::lang::RString) fieldname, const ScriptVar &newval, DmiClient &dc, int flags=MiPublic) |
| | set a member variable.
|
| virtual SysFields | getInternalFields (int flags, const ClazzInfo *clazz=0) |
| | return all fields of this instance using DMI
|
| SysField | getInternalField (IN(RString) name, int flags, const ClazzInfo *clazz=0) |
| | get a field by name.
|
| bool | isDmiOverLoaded (const ClazzInfo *ci, const ClazzMethodInfo *mi) |
| | Used from DmiProxyBase to determine if given method is overwritten by dmi.
|
| virtual bool | isDmiOverLoaded (const ClazzInfo *ci, IN(RString) funcname, const ClazzMethodInfo *mi, ClazzMethodArgInfo **const args) |
| | Used from DmiProxyBase to determine if given method is overwritten by dmi.
|
| ScriptVar | invoke (IN(RString) name) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, const ScriptVar &s7) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, const ScriptVar &s7, const ScriptVar &s8) |
| ScriptVar | invoke (IN(RString) name, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, const ScriptVar &s7, IN(NamedArgs) nargs) |
| ScriptVar | invoke (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, const ScriptVar &s7, const ScriptVar &s8, IN(NamedArgs) nargs) |
| ScriptVar | peek (IN(RString) fieldname, int flags=MiPublic) |
| | Reads a member with given fieldname.
|
| void | poke (IN(RString) fieldname, const ScriptVar &arg, int flags=MiPublic) |
| | Writes a public object field.
|
Static Public Member Functions |
| const ClazzMethodInfo * | _invoke_dynamic (::acdk::lang::Object *This, IN(::acdk::lang::RString) fname, ScriptVar &ret, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const ClazzInfo *clazzinfo, const ClazzMethodInfo *methinf) |
| const ClazzMethodInfo * | _invoke_dynamic_super (::acdk::lang::Object *This, IN(::acdk::lang::RString) fname, ScriptVar &ret, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const ClazzInfo *clazzinfo, const ClazzMethodInfo *methinf) |
| const ClazzMethodInfo * | _invoke_static (IN(::acdk::lang::RString) fname, ScriptVar &ret, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const ClazzInfo *clazzinfo, const ClazzMethodInfo *methinf) |
| const ClazzMethodInfo * | _invoke_static_super (IN(::acdk::lang::RString) fname, ScriptVar &ret, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const ClazzInfo *clazzinfo, const ClazzMethodInfo *methinf) |
| const ClazzMethodInfo * | _invoke_notexistant (::acdk::lang::Object *This, IN(::acdk::lang::RString) fname, ScriptVar &ret, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const ClazzInfo *clazzinfo, const ClazzMethodInfo *methinf) |
| | non existant method.
|
| ScriptVar | invokeStaticMethod (IN(RString) classname, IN(RString) funcname, ScriptVarArray &args, int flags=MiPublic|MiStatic) |
| | simpified interface to StandardDispatch
|
| ScriptVar | invokeStaticMethod (IN(RString) classname, IN(RString) funcname, ScriptVarArray &args, IN(NamedArgs) nargs, int flags=MiPublic|MiStatic) |
| | simpified interface to StandardDispatch with named arguments
|
| ScriptVar | invokeStaticMethod (IN(RString) classname, IN(RString) funcname, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags=MiPublic|MiStatic) |
| | simpified interface to StandardDispatch
|
| ScriptVar | getStaticMember (const ClazzInfo *clazz, IN(::acdk::lang::RString) fieldname, DmiClient &dc, int flags, const ClazzInfo *type_requested=0) |
| | retreive a static member variable
|
| void | setStaticMember (const ClazzInfo *clazz, IN(::acdk::lang::RString) fieldname, const ScriptVar &newval, DmiClient &dc, int flags) |
| | set a static member variable core implementetion
|
| ScriptVar | New (IN(RString) classname, ScriptVarArray &args, DmiClient &dc=AcdkDmiClient::getDmiClient()) |
| | Creates a new Object of given classname.
|
| ScriptVar | New (IN(RString) classname, ScriptVarArray &args, IN(RStringArray) nargs, DmiClient &dc=AcdkDmiClient::getDmiClient()) |
| ScriptVar | New (IN(RString) classname, ScriptVarArray &args, IN(NamedArgs) nargs, DmiClient &dc=AcdkDmiClient::getDmiClient()) |
| ScriptVar | New (IN(RString) name) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4) |
| ScriptVar | New (IN(RString) name, IN(NamedArgs) nargs) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, IN(NamedArgs) nargs) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, IN(NamedArgs) nargs) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, IN(NamedArgs) nargs) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, IN(NamedArgs) nargs) |
| ScriptVar | New (IN(RString) name, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, const ScriptVar &s7) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, const ScriptVar &s7, const ScriptVar &s8) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, const ScriptVar &s7, IN(NamedArgs) nargs) |
| ScriptVar | invoke_static (IN(RString) classname, IN(RString) methodname, const ScriptVar &s0, const ScriptVar &s1, const ScriptVar &s2, const ScriptVar &s3, const ScriptVar &s4, const ScriptVar &s5, const ScriptVar &s6, const ScriptVar &s7, const ScriptVar &s8, IN(NamedArgs) nargs) |
| ScriptVar | peek_static (IN(RString) classname, IN(RString) fieldname, int flags=MiPublic|MiStatic) |
| | reads a static member
|
| void | poke_static (IN(RString) classname, IN(RString) member, const ScriptVar &val, int flags=MiPublic|MiStatic) |
| | Writes a public static class field.
|
| const ClazzMethodInfo * | lookupMethod (const ClazzInfo *&clazz, IN(::acdk::lang::RString) fname, ScriptVarArray &args, IN(RStringArray) namedArgs, DmiClient &dc, int flags, const ClazzMethodInfo *methinf=0) |
| const ClazzMethodInfo * | lookupMethod_cb (const ClazzInfo *&clazz, IN(::acdk::lang::RString) fname, ScriptVarArray &args, IN(RStringArray) namedArgs, DmiClient &dc, int flags, const ClazzMethodInfo *methinf) |
| | standard callback provided by DmiClient.
|
| const ClazzMethodInfo * | lookupMethod (const ClazzInfo *&clazz, IN(::acdk::lang::RString) fname, acdk::lang::dmi::ClazzMethodArgInfo **const args, DmiClient &dc, int flags) |
| const ClazzMethodInfo * | lookupMethodNoPolymorph (const ClazzInfo *&clazz, IN(::acdk::lang::RString) fname, ScriptVarArray &args, IN(RStringArray) namedArgs, DmiClient &dc, int flags, const ClazzMethodInfo *methinf=0) |
| | Same as lookupMethod, but look only for non-polymorphic methods.
|
| const ClazzMethodInfo * | lookupMethod (const ClazzInfo *&clazz, int methodhash, int flags) |
| | find method using the methodhashvalue.
|
| const ClazzMethodInfo * | lookupMethod (const ClazzInfo *&clazz, IN(::acdk::lang::RString) fname, int flags) |
| | Find first function with given name and flags.
|
| const ClazzMethodInfo * | _lookupMethod (const ClazzInfo *&clazz, IN(::acdk::lang::RString) fname, ScriptVarArray &args, DmiClient &dc, int flags, const ClazzMethodInfo *methinf) |
| | ???
|
| const ClazzMethodInfo * | _lookupMethod (const ClazzInfo *&clazz, IN(::acdk::lang::RString) fname, ScriptVarArray &args, IN(RStringArray) namedargs, DmiClient &dc, int flags, const ClazzMethodInfo *methinf) |
| | returns a method if found which matching args and named args
|
| const ClazzMethodInfo * | _lookupMethod (const ClazzInfo *&clazz, IN(::acdk::lang::RString) fname,::acdk::lang::sys::core_vector< ClazzMethodArgInfo > &args, IN(RStringArray) namedargs, DmiClient &dc, int flags) |
| | Finds a method.
|
| void | findFunctions (const ClazzInfo *clazz, IN(::acdk::lang::RString) fname, int flags, ClazzMethodInfoVec &vec) |
| | find all function with given name and flag
|
| const ClazzMethodInfo * | findMethod (const ClazzInfo *&clazz, const FunctionSignature &signature, bool exactMatch=true, int flags=MiIvDeclared) |
| | Search for given method
- exactMatch if true the types of the arguments must match exactly otherwise they only must be assignable
- flags = MiIvDeclared.
|
| ScriptVar | getStaticMember (const ClazzInfo *clazz, const ClazzFieldInfo *field, int flags) |
| | internal implementation to read a static member
|
| void | setStaticMember (const ClazzInfo *clazz, const ClazzFieldInfo *field, const ScriptVar &value, DmiClient &dc, int flags) |
| ScriptVar | _getMember (::acdk::lang::Object *This, const ClazzInfo *clazz, const ClazzFieldInfo *field, IN(::acdk::lang::RString) fieldname, DmiClient &dc, int flags) |
| void | _setMember (::acdk::lang::Object *This, const ScriptVar &val, const ClazzInfo *clazz, const ClazzFieldInfo *field, IN(::acdk::lang::RString) fieldname, DmiClient &dc, int flags) |
Static Protected Member Functions |
| const ClazzMethodInfo * | StandardDispatch (IN(::acdk::lang::RString) fname, ScriptVar &ret, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const ClazzInfo *clazzinfo=0, const ClazzMethodInfo *methinf=0) |
| | This version of StandardDispatch is used in the generated stub and should not called directly.
|
| const ClazzMethodInfo * | StandardDispatch (IN(::acdk::lang::RString) classname, IN(::acdk::lang::RString) fname, ScriptVar &ret, ScriptVarArray &args, DmiClient &dc, IN(::acdk::lang::RStringArray) namedArgs, int flags, const ClazzInfo *clazzinfo=0, const ClazzMethodInfo *methinf=0) |
| | calls a static method of this object This is the core implemention method for the invoke_static family
|
Constructor & Destructor Documentation
| virtual acdk::lang::dmi::StdDispatch::~StdDispatch |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
|
|
non existant method.
Will throw exception |
|
|
Finds a method.
- Parameters:
-
| clazz | the Class where to find |
| fname | name of method |
| args | The parameters. Note if ClazzMethodArgInfo.label is 0 or name of argument will be ignored |
| namedargs | the last n args are named. Can be Nil. |
| dc | used to find out type distance |
| flags | flags of the method |
|
|
|
returns a method if found which matching args and named args
|
|
|
find all function with given name and flag
- Parameters:
-
| clazz | where to find. |
| fname | name of function |
| flags | normally PUBLIC/STATIC |
| vec | all found methods |
|
|
|
Search for given method
- exactMatch if true the types of the arguments must match exactly otherwise they only must be assignable
- flags = MiIvDeclared.
- Returns:
- 0 if method cannot be found.
|
|
|
returns the ClazzInfo of this object instance must not be 0
Implemented in acdk::cfgscript::ScriptObject, BasicArray< T >, acdk::lang::ObjectArrayBase, acdk::lang::System, acdk::lisp::LispObject, acdkx::com::ComObject, acdkx::orb::AcdkObject, acdkx::orb::CorObject, BasicArray< int >, BasicArray< byte >, BasicArray< char >, BasicArray< bool >, and BasicArray< ucchar >. |
| virtual DmiClient& acdk::lang::dmi::StdDispatch::getDmiClient |
( |
|
) |
[virtual] |
|
| ::acdk::lang::Object* acdk::lang::dmi::StdDispatch::getDmiTarget |
( |
const::acdk::lang::dmi::ClazzInfo *& |
ci |
) |
|
|
|
|
wrapps the call getDmiTarget(bool& forwarded) with a loop as long forwarded is true
|
| virtual ::acdk::lang::Object* acdk::lang::dmi::StdDispatch::getDmiTarget |
( |
bool & |
forwarded, |
|
|
const::acdk::lang::dmi::ClazzInfo *& |
ci |
|
) |
[pure virtual] |
|
|
|
get a field by name.
May use getInternalFields if not cannot found by using ClazzInfo - Parameters:
-
| name | name of the field |
| flags | combination of MetaInfoFlags |
| clazz | search in clazz. If 0 clazzInfo for this object will be used |
|
| virtual SysFields acdk::lang::dmi::StdDispatch::getInternalFields |
( |
int |
flags, |
|
|
const ClazzInfo * |
clazz = 0 |
|
) |
[virtual] |
|
|
|
return all fields of this instance using DMI
- Parameters:
-
| flags | combination of Modifier |
| ci | retrieve this ClazzInfo. If 0 clazzInfo for this object will be used |
- See also:
- acdk::lang::dmi::ClazzInfo::getFields();
|
|
|
retreive a member variable of this object
- Parameters:
-
| fieldname | name of the member |
| dc | DmiClient to use to convert types |
| flags | normally MiPublic |
| type_requested | Type for target ScriptVar. if zero no conversion will be done |
- Exceptions:
-
|
|
|
internal implementation to read a static member
- Parameters:
-
| flags | if MiAiOut is set, returns a LValue |
|
|
|
retreive a static member variable
- Parameters:
-
| clazz | the ClazzInfo |
| fieldname | name of the member |
| dc | DmiClient to use to convert types |
| flags | normally MiPublic | MiStatic can also be MiAiOut (| MiAiIn) to retrieve as left hand value |
| type_requested | Type for target ScriptVar. if zero no conversion will be done |
- Exceptions:
-
|
| ScriptVar acdk::lang::dmi::StdDispatch::invoke |
( |
IN(RString) |
name, |
|
|
const ScriptVar & |
s0, |
|
|
const ScriptVar & |
s1, |
|
|
const ScriptVar & |
s2, |
|
|
const ScriptVar & |
s3, |
|
|
const ScriptVar & |
s4, |
|
|
const ScriptVar & |
s5, |
|
|
const ScriptVar & |
s6, |
|
|
const ScriptVar & |
s7, |
|
|
const ScriptVar & |
s8, |
|
|
IN(NamedArgs) |
nargs |
|
) |
[inline] |
|
| ScriptVar acdk::lang::dmi::StdDispatch::invoke_static |
( |
IN(RString) |
classname, |
|
|
IN(RString) |
methodname, |
|
|
const ScriptVar & |
s0, |
|
|
const ScriptVar & |
s1, |
|
|
const ScriptVar & |
s2, |
|
|
const ScriptVar & |
s3, |
|
|
const ScriptVar & |
s4, |
|
|
const ScriptVar & |
s5, |
|
|
const ScriptVar & |
s6, |
|
|
const ScriptVar & |
s7, |
|
|
const ScriptVar & |
s8, |
|
|
IN(NamedArgs) |
nargs |
|
) |
[inline, static] |
|
| ScriptVar acdk::lang::dmi::StdDispatch::invoke_static |
( |
IN(RString) |
classname, |
|
|
IN(RString) |
methodname, |
|
|
const ScriptVar & |
s0, |
|
|
const ScriptVar & |
s1, |
|
|
const ScriptVar & |
s2, |
|
|
const ScriptVar & |
s3, |
|
|
const ScriptVar & |
s4, |
|
|
const ScriptVar & |
s5, |
|
|
const ScriptVar & |
s6, |
|
|
const ScriptVar & |
s7, |
|
|
IN(NamedArgs) |
nargs |
|
) |
[inline, static] |
|
| ScriptVar acdk::lang::dmi::StdDispatch::invoke_static |
( |
IN(RString) |
classname, |
|
|
IN(RString) |
methodname, |
|
|
const ScriptVar & |
s0, |
|
|
const ScriptVar & |
s1, |
|
|
const ScriptVar & |
s2, |
|
|
const ScriptVar & |
s3, |
|
|
const ScriptVar & |
s4, |
|
|
const ScriptVar & |
s5, |
|
|
const ScriptVar & |
s6, |
|
|
IN(NamedArgs) |
nargs |
|
) |
[inline, static] |
|
| ScriptVar acdk::lang::dmi::StdDispatch::invoke_static |
( |
IN(RString) |
classname, |
|
|
IN(RString) |
methodname, |
|
|
const ScriptVar & |
s0, |
|
|
const ScriptVar & |
s1, |
|
|
const ScriptVar & |
s2, |
|
|
const ScriptVar & |
s3, |
|
|
const ScriptVar & |
s4, |
|
|
const ScriptVar & |
s5, |
|
|
const ScriptVar & |
s6, |
|
|
const ScriptVar & |
s7, |
|
|
const ScriptVar & |
s8 |
|
) |
[inline, static] |
|
| ScriptVar acdk::lang::dmi::StdDispatch::invoke_static |
( |
IN(RString) |
classname, |
|
|
IN(RString) |
methodname, |
|
|
const ScriptVar & |
s0, |
|
|
const ScriptVar & |
s1, |
|
|
const ScriptVar & |
s2, |
|
|
const ScriptVar & |
s3, |
|
|
const ScriptVar & |
s4, |
|
|
const ScriptVar & |
s5, |
|
|
const ScriptVar & |
s6, |
|
|
const ScriptVar & |
s7 |
|
) |
[inline, static] |
|
| ScriptVar acdk::lang::dmi::StdDispatch::invoke_static |
( |
IN(RString) |
classname, |
|
|
IN(RString) |
methodname |
|
) |
[inline, static] |
|
|
|
simpified interface to standardDispatch
|
|
|
simpified interface to standardDispatch
|
|
|
simpified interface to standardDispatch
|
|
|
simpified interface to StandardDispatch
|
|
|
simpified interface to StandardDispatch with named arguments
|
|
|
simpified interface to StandardDispatch
|
|
|
Used from DmiProxyBase to determine if given method is overwritten by dmi.
- Parameters:
-
| funcname | name of the function |
| ci | ClazzInfo of the current script object instance |
| mi | ClazzMethodInfo may be 0 if caller doesn't know a method info |
| args | null terminated list of arguments to match |
|
|
|
Used from DmiProxyBase to determine if given method is overwritten by dmi.
- Parameters:
-
- Returns:
- true, if given method is overloaded by DMI scripting object
|
|
|
Find first function with given name and flags.
- See also:
- lookupMethod
|
| const ClazzMethodInfo* acdk::lang::dmi::StdDispatch::lookupMethod |
( |
const ClazzInfo *& |
clazz, |
|
|
int |
methodhash, |
|
|
int |
flags |
|
) |
[static] |
|
|
|
find method using the methodhashvalue.
This method identification in [sS]tandardDispatch will be used if the MiIvViaHash is set - Parameters:
-
| clazz | will be set to class owning the method will not changed if method cannot be found |
| flags | combination of Modifier flags |
- Returns:
- 0 if method cannot be found
|
|
|
- Parameters:
-
| clazz | the class where to find will be set to the ClazzInfo owns the found method |
| fname | name of function |
| args | Arguments of the function |
| namedArgs | names of the named arguements |
| dc | used for parameter converting |
| flags | the given flags the method must be match. in normal case this will be PUBLIC or STATIC | PUBLIC or none |
| methinf | may reinterpreted as int for method has if flags has MiIvViaHash |
|
|
|
standard callback provided by DmiClient.
calls lookupMethod |
|
|
Same as lookupMethod, but look only for non-polymorphic methods.
|
| ScriptVar acdk::lang::dmi::StdDispatch::New |
( |
IN(RString) |
name |
) |
[inline, static] |
|
|
|
Creates a new Object of given classname.
- Parameters:
-
| classname | Name of class |
| sign | signature of methods |
| args | arguments |
| nargs | named arguments |
- See also:
- invoke
- Exceptions:
-
|
| ScriptVar acdk::lang::dmi::StdDispatch::peek |
( |
IN(RString) |
fieldname, |
|
|
int |
flags = MiPublic |
|
) |
|
|
|
|
Reads a member with given fieldname.
- Parameters:
-
| fieldname | field to read |
| flags | normally set to MiPublic can also be MiAiOut (| MiAiIn) to retrieve as left hand value |
- Returns:
- the field value
- Exceptions:
-
|
| ScriptVar acdk::lang::dmi::StdDispatch::peek_static |
( |
IN(RString) |
classname, |
|
|
IN(RString) |
fieldname, |
|
|
int |
flags = MiPublic|MiStatic |
|
) |
[static] |
|
|
|
reads a static member
- Parameters:
-
| classname | name of class |
| fieldname | name of field |
| flags | normally set to MiPublic | MiStatic can also be MiAiOut (| MiAiIn) to retrieve as left hand value |
|
| void acdk::lang::dmi::StdDispatch::poke |
( |
IN(RString) |
fieldname, |
|
|
const ScriptVar & |
arg, |
|
|
int |
flags = MiPublic |
|
) |
|
|
|
|
Writes a public object field.
- Parameters:
-
| fieldname | name of the object member |
| arg | the new value to set |
- Exceptions:
-
|
| void acdk::lang::dmi::StdDispatch::poke_static |
( |
IN(RString) |
classname, |
|
|
IN(RString) |
member, |
|
|
const ScriptVar & |
val, |
|
|
int |
flags = MiPublic|MiStatic |
|
) |
[static] |
|
|
|
Writes a public static class field.
- Parameters:
-
| classname | the name of the class |
| member | the name of the member variable |
| val | the new value |
- Exceptions:
-
|
|
|
set a member variable.
This is the core implementetion. You may use poke() instead
- Parameters:
-
| clazz | the ClazzInfo |
| fieldname | name of the member |
| newval | new value of the member |
| dc | DmiClient to use to convert types |
| flags | normally MiPublic |
- Exceptions:
-
- See also:
- poke
|
|
|
set a static member variable core implementetion
- Parameters:
-
| clazz | the ClazzInfo |
| fieldname | name of the member |
| newval | new value of the member |
| dc | DmiClient to use to convert types |
| flags | normally MiPublic | MiStatic |
- Exceptions:
-
|
|
|
calls a static method of this object This is the core implemention method for the invoke_static family
- Parameters:
-
| classname | name of the class |
| fname | name of function |
| ret | return value of this function |
| args | arguments of the method |
| dc | client, calling this method |
| flags | normally MiPublic | MiStatic |
| namedArgs | The last n values in args are named arguments. if no named arguments passed, caller should pass Nil |
| methinf | If client caches method information |
- Returns:
- the called ClazzMethodInfo. Client may use this cache this value for the next call to improve performance
|
|
|
This version of StandardDispatch is used in the generated stub and should not called directly.
|
|
|
calls a method of this object used in generated stub
- Parameters:
-
| fname | name of function |
| ret | return value of this function |
| args | arguments of the method |
| dc | client, calling this method |
| namedArgs | The last n values in args are named arguments. if no named arguments passed, caller should pass Nil |
| flags | for the method (like static, public) |
| methinf | If client caches method information |
- Exceptions:
-
- Returns:
- the called ClazzMethodInfo. Client may use this cache this value for the next call to improve performance
|
|
|