KJS-API
Go to the documentation of this file.
25 #include "kjs/value.h"
26 #include "kjs/object.h"
27 #include "kjs/protect.h"
28 #include "kjs/ExecState.h"
29 #include "kjs/JSVariableObject.h"
45 gcProtectNullTolerant(
JSVALUE(
this));
50 gcUnprotectNullTolerant(
JSVALUE(
this));
53 gcProtectNullTolerant(
JSVALUE(
this));
60 gcUnprotectNullTolerant(
JSVALUE(
this));
98 JSObject* builtinArray = exec->lexicalInterpreter()->builtinArray();
99 JSObject* newArray = builtinArray->construct(exec, List());
100 newArray->put(exec, exec->propertyNames().length, jsNumber(len),
101 DontDelete|ReadOnly|DontEnum);
116 kWarning() <<
"converDateTimeHelper() not implemented, yet";
120 return jsNumber(42.0);
132 return JSVALUE(
this)->isUndefined();
137 return JSVALUE(
this)->isNull();
142 return JSVALUE(
this)->isBoolean();
147 return JSVALUE(
this)->isNumber();
152 return JSVALUE(
this)->isString();
157 return JSVALUE(
this)->isObject();
164 return JSVALUE(
this)->toBoolean(exec);
171 return JSVALUE(
this)->toNumber(exec);
178 return JSVALUE(
this)->toInt32(exec);
195 if (v == jsUndefined || v == jsNull())
200 JSObject* o = v->toObject(exec);
213 JSObject* o = v->toObject(exec);
235 const QString &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 21:57:25 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.