KJS
KJS::Arguments Class Reference
#include <function.h>

Detailed Description
Definition at line 92 of file function.h.
Public Member Functions | |
| Arguments (ExecState *exec, FunctionImp *func, const List &args, ActivationImp *act) | |
| virtual void | mark () |
| virtual bool | getOwnPropertySlot (ExecState *, const Identifier &, PropertySlot &) |
| virtual void | put (ExecState *exec, const Identifier &propertyName, JSValue *value, int attr=None) |
| virtual bool | deleteProperty (ExecState *exec, const Identifier &propertyName) |
| virtual const ClassInfo * | classInfo () const |
Static Public Attributes | |
| static const ClassInfo | info = {"Arguments", 0, 0, 0} |
Constructor & Destructor Documentation
| KJS::Arguments::Arguments | ( | ExecState * | exec, | |
| FunctionImp * | func, | |||
| const List & | args, | |||
| ActivationImp * | act | |||
| ) |
Definition at line 453 of file function.cpp.
Member Function Documentation
| void KJS::Arguments::mark | ( | ) | [virtual] |
| bool KJS::Arguments::getOwnPropertySlot | ( | ExecState * | exec, | |
| const Identifier & | propertyName, | |||
| PropertySlot & | slot | |||
| ) | [virtual] |
| void KJS::Arguments::put | ( | ExecState * | exec, | |
| const Identifier & | propertyName, | |||
| JSValue * | value, | |||
| int | attr = None | |||
| ) | [virtual] |
Sets the specified property.
See ECMA 8.6.2.2
- Parameters:
-
exec The current execution state propertyName The name of the property to set propertyValue The value to set
Reimplemented from KJS::JSObject.
Definition at line 493 of file function.cpp.
| bool KJS::Arguments::deleteProperty | ( | ExecState * | exec, | |
| const Identifier & | propertyName | |||
| ) | [virtual] |
Removes the specified property from the object.
See ECMA 8.6.2.5
- Parameters:
-
exec The current execution state propertyName The name of the property to delete
- Returns:
- true if the property was successfully deleted or did not exist on the object. false if deleting the specified property is not allowed.
Reimplemented from KJS::JSObject.
Definition at line 502 of file function.cpp.
| virtual const ClassInfo* KJS::Arguments::classInfo | ( | ) | const [inline, virtual] |
A pointer to a ClassInfo struct for this class.
This provides a basic facility for run-time type information, and can be used to check an object's class an inheritance (see inherits()). This should always return a statically declared pointer, or 0 to indicate that there is no class information.
This is primarily useful if you have application-defined classes that you wish to check against for casting purposes.
For example, to specify the class info for classes FooImp and BarImp, where FooImp inherits from BarImp, you would add the following in your class declarations:
class BarImp : public JSObject { virtual const ClassInfo *classInfo() const { return &info; } static const ClassInfo info; // ... }; class FooImp : public JSObject { virtual const ClassInfo *classInfo() const { return &info; } static const ClassInfo info; // ... };
And in your source file:
const ClassInfo BarImp::info = {"Bar", 0, 0, 0}; // no parent class const ClassInfo FooImp::info = {"Foo", &BarImp::info, 0, 0};
- See also:
- inherits()
Reimplemented from KJS::JSObject.
Definition at line 99 of file function.h.
Member Data Documentation
const ClassInfo KJS::Arguments::info = {"Arguments", 0, 0, 0} [static] |
Definition at line 100 of file function.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference