|
Yate
|
ExpEvaluator extending interface. More...
#include <yatescript.h>
Public Member Functions | |
| virtual | ~ExpExtender () |
| virtual RefObject * | refObj () |
| virtual bool | hasField (ObjList &stack, const String &name, GenObject *context) const |
| virtual NamedString * | getField (ObjList &stack, const String &name, GenObject *context) const |
| virtual bool | runFunction (ObjList &stack, const ExpOperation &oper, GenObject *context) |
| virtual bool | runField (ObjList &stack, const ExpOperation &oper, GenObject *context) |
| virtual bool | runAssign (ObjList &stack, const ExpOperation &oper, GenObject *context) |
ExpEvaluator extending interface.
This class allows extending ExpEvaluator to implement custom fields and functions
| virtual ~ExpExtender | ( | ) | [inline, virtual] |
Destructor
| virtual NamedString* getField | ( | ObjList & | stack, |
| const String & | name, | ||
| GenObject * | context | ||
| ) | const [virtual] |
Get a pointer to a field in extender
| stack | Evaluation stack in use |
| name | Name of the field to retrieve |
| context | Pointer to arbitrary object passed from evaluation methods |
Reimplemented in ScriptContext.
Check if a certain field is assigned in extender
| stack | Evaluation stack in use |
| name | Name of the field to test |
| context | Pointer to arbitrary object passed from evaluation methods |
Reimplemented in ScriptContext.
Retrieve the reference counted object owning this interface
Reimplemented in ScriptContext.
| virtual bool runAssign | ( | ObjList & | stack, |
| const ExpOperation & | oper, | ||
| GenObject * | context | ||
| ) | [virtual] |
Try to assign a value to a single field
| stack | Evaluation stack in use |
| oper | Field to assign to, contains the field name and new value |
| context | Pointer to arbitrary object passed from evaluation methods |
Reimplemented in JsObject, and ScriptContext.
| virtual bool runField | ( | ObjList & | stack, |
| const ExpOperation & | oper, | ||
| GenObject * | context | ||
| ) | [virtual] |
Try to evaluate a single field
| stack | Evaluation stack in use, field value must be pushed on it |
| oper | Field to evaluate |
| context | Pointer to arbitrary object passed from evaluation methods |
Reimplemented in JsObject, and ScriptContext.
| virtual bool runFunction | ( | ObjList & | stack, |
| const ExpOperation & | oper, | ||
| GenObject * | context | ||
| ) | [virtual] |
Try to evaluate a single function
| stack | Evaluation stack in use, parameters are popped off this stack and results are pushed back on stack |
| oper | Function to evaluate |
| context | Pointer to arbitrary object passed from evaluation methods |
Reimplemented in JsObject, and ScriptContext.
1.7.6.1