|
Yate
|
Script parsed code. More...
#include <yatescript.h>
Public Member Functions | |
| virtual bool | initialize (ScriptContext *context) const =0 |
| virtual bool | evaluate (ScriptRun &runner, ObjList &results) const =0 |
| virtual ScriptRun * | createRunner (ScriptContext *context, const char *title=0) |
| virtual void | getFileLine (unsigned int line, String &fileName, unsigned int &fileLine, bool wholePath=true) |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| virtual void * | getObject (const String &name) const |
| virtual bool | alive () const |
| bool | ref () |
| bool | deref () |
| int | refcount () const |
| virtual void | destruct () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Additional Inherited Members | |
Static Public Member Functions inherited from RefObject | |
| static bool | alive (const RefObject *obj) |
| static bool | efficientIncDec () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Protected Member Functions inherited from RefObject | |
| virtual void | zeroRefs () |
| bool | resurrect () |
| virtual void | destroyed () |
Script parsed code.
Preparsed script code fragment ready to be executed
|
inlinevirtual |
Create a runner adequate for this block of parsed code
| context | Script context, must not be NULL |
| title | An optional name for the runner |
Evaluation of a single code expression
| runner | Reference to the runtime to use in evaluation |
| results | List to fill with expression results |
|
inlinevirtual |
Get the file name and the file line from which this code line was interpreted
| line | Code line |
| fileName | On output, it contains the file name associated with code line |
| fileLine | On output, it contains the file line associated with code line |
| wholePath | If true, file name contains the whole file path, otherwise just the filename |
|
pure virtual |
Context initializer for language specific globals
| context | Pointer to the context to initialize |