|
| | JsArray (GenObject *context, unsigned int line, ScriptMutex *mtx=0) |
| |
| | JsArray (ScriptMutex *mtx, const char *name, unsigned int line, bool frozen=false) |
| |
| int32_t | length () const |
| |
| void | setLength (int32_t len) |
| |
| void | push (ExpOperation *item) |
| |
| virtual JsObject * | copy (ScriptMutex *mtx, const ExpOperation &oper) const |
| |
| virtual bool | runAssign (ObjList &stack, const ExpOperation &oper, GenObject *context) |
| |
| virtual bool | runField (ObjList &stack, const ExpOperation &oper, GenObject *context) |
| |
| virtual void | initConstructor (JsFunction *construct) |
| |
| virtual JsObject * | runConstructor (ObjList &stack, const ExpOperation &oper, GenObject *context) |
| |
| | JsObject (const char *name="Object", ScriptMutex *mtx=0, bool frozen=false) |
| |
| | JsObject (ScriptMutex *mtx, const char *name, unsigned int line, bool frozen=0) |
| |
| | JsObject (GenObject *context, unsigned int line, ScriptMutex *mtx=0, bool frozen=false) |
| |
| virtual | ~JsObject () |
| |
| virtual ScriptMutex * | mutex () |
| |
| JsObject * | clone (const ExpOperation &oper) const |
| |
| void | setPrototype (GenObject *context, const String &objName) |
| |
| virtual void | fillFieldNames (ObjList &names) |
| |
| virtual const HashList * | getHashListParams () const |
| |
| 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 ExpOperation * | popValue (ObjList &stack, GenObject *context=0) |
| |
| virtual void | clearField (const String &name) |
| |
| bool | setIntField (const char *name, int64_t val) |
| |
| bool | setBoolField (const char *name, bool val) |
| |
| bool | setStringField (const char *name, const char *val) |
| |
| bool | setObjField (const char *name, JsObject *obj) |
| |
| bool | getIntField (const String &name, int64_t &val) |
| |
| bool | getBoolField (const String &name, bool &val) |
| |
| bool | getStringField (const String &name, String &val) |
| |
| bool | getObjField (const String &name, JsObject *&obj) |
| |
| bool | frozen () const |
| |
| void | freeze () |
| |
| void | lineNo (unsigned int line) |
| |
| unsigned int | lineNo () const |
| |
| int | extractArgs (ObjList &stack, const ExpOperation &oper, GenObject *context, ObjList &arguments) |
| |
| | ScriptContext (const char *name=0) |
| |
| NamedList & | params () |
| |
| const NamedList & | params () const |
| |
| virtual NamedList * | nativeParams () const |
| |
| virtual const String & | toString () const |
| |
| virtual void * | getObject (const String &name) const |
| |
| virtual RefObject * | refObj () |
| |
| virtual bool | copyFields (ObjList &stack, const ScriptContext &original, GenObject *context) |
| |
| virtual void | addFields (const NamedList &list, const char *skipPrefix="__") |
| |
| bool | runMatchingField (ObjList &stack, const ExpOperation &oper, GenObject *context) |
| |
| virtual void | createdObj (GenObject *obj) |
| |
| virtual void | deletedObj (GenObject *obj) |
| |
| virtual void | trackObjs (unsigned int track=0) |
| |
| virtual ObjList * | countAllocations () |
| |
| | RefObject () |
| |
| virtual | ~RefObject () |
| |
| virtual bool | alive () const |
| |
| bool | ref () |
| |
| bool | deref () |
| |
| int | refcount () const |
| |
| virtual void | destruct () |
| |
| | GenObject () |
| |
| virtual | ~GenObject () |
| |
| virtual const String & | traceId () const |
| |
| NamedCounter * | getObjCounter () const |
| |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
| |
| virtual | ~ExpExtender () |
| |
|
| enum | DumpFlags {
DumpFunc = 0x01
, DumpProp = 0x02
, DumpRecursive = 0x10
, DumpType = 0x20
,
DumpProto = 0x40
, DumpPropObjType = 0x80
, DumpFuncOnly = DumpRecursive | DumpProto | DumpFunc
, DumpPropOnly = DumpRecursive | DumpPropObjType | DumpProp
} |
| |
| static void | addObject (NamedList ¶ms, const char *name, JsObject *obj) |
| |
| static void | addConstructor (NamedList ¶ms, const char *name, JsObject *obj) |
| |
| static int | extractArgs (JsObject *obj, ObjList &stack, const ExpOperation &oper, GenObject *context, ObjList &arguments) |
| |
| static JsObject * | buildCallContext (ScriptMutex *mtx, JsObject *thisObj=0) |
| |
| static void | initialize (ScriptContext *context) |
| |
| static void | setLineForObj (JsObject *obj, unsigned int lineNo, bool recursive) |
| |
| static const String & | protoName () |
| |
| static void | deepCopyParams (NamedList &dst, const NamedList &src, ScriptMutex *mtx) |
| |
| static void | dumpRecursive (const GenObject *obj, String &buf, unsigned int flags=0xffffffff) |
| |
| static void | printRecursive (const GenObject *obj, unsigned int flags=0xffffffff) |
| |
| static ExpOperation * | toJSON (const ExpOperation *oper, int spaces) |
| |
| static void | fillFieldNames (ObjList &names, const NamedList &list, bool checkDupl=true, const char *skip=0) |
| |
| static void | fillFieldNames (ObjList &names, const HashList &list) |
| |
| static bool | alive (const RefObject *obj) |
| |
| static bool | efficientIncDec () |
| |
| 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 () |
| |
| static void | toJSON (const NamedString *ns, String &buf, int spaces, int indent=0) |
| |
| static String | strEscape (const char *str) |
| |
Javascript Array.
Javascript Array class, implements arrays of items