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

Detailed Description
Definition at line 108 of file function.h.
Public Member Functions | |
| ActivationImp (FunctionImp *function, const List &arguments) | |
| ~ActivationImp () | |
| virtual bool | getOwnPropertySlot (ExecState *exec, 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 void | getPropertyNames (ExecState *, PropertyNameArray &) |
| void | putLocal (int propertyID, JSValue *value) |
| void | putLocalChecked (int propertyID, JSValue *value) |
| JSValue ** | getLocalDirect (int propertyID) |
| bool | isLocalReadOnly (int propertyID) |
| virtual const ClassInfo * | classInfo () const |
| virtual void | mark () |
| virtual bool | isActivation () const |
| void | releaseArguments () |
| void | setupLocals () |
| void | setupFunctionLocals (ExecState *exec) |
Static Public Attributes | |
| static const ClassInfo | info = {"Activation", 0, 0, 0} |
Constructor & Destructor Documentation
| KJS::ActivationImp::ActivationImp | ( | FunctionImp * | function, | |
| const List & | arguments | |||
| ) |
Definition at line 517 of file function.cpp.
| KJS::ActivationImp::~ActivationImp | ( | ) |
Definition at line 638 of file function.cpp.
Member Function Documentation
| bool KJS::ActivationImp::getOwnPropertySlot | ( | ExecState * | exec, | |
| const Identifier & | propertyName, | |||
| PropertySlot & | slot | |||
| ) | [virtual] |
| void KJS::ActivationImp::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 609 of file function.cpp.
| bool KJS::ActivationImp::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 597 of file function.cpp.
| void KJS::ActivationImp::getPropertyNames | ( | ExecState * | exec, | |
| PropertyNameArray & | props | |||
| ) | [virtual] |
| void KJS::ActivationImp::putLocal | ( | int | propertyID, | |
| JSValue * | value | |||
| ) | [inline] |
Definition at line 119 of file function.h.
| void KJS::ActivationImp::putLocalChecked | ( | int | propertyID, | |
| JSValue * | value | |||
| ) | [inline] |
Definition at line 125 of file function.h.
| JSValue** KJS::ActivationImp::getLocalDirect | ( | int | propertyID | ) | [inline] |
Definition at line 130 of file function.h.
| bool KJS::ActivationImp::isLocalReadOnly | ( | int | propertyID | ) | [inline] |
Definition at line 135 of file function.h.
| virtual const ClassInfo* KJS::ActivationImp::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 139 of file function.h.
| void KJS::ActivationImp::mark | ( | ) | [virtual] |
| virtual bool KJS::ActivationImp::isActivation | ( | ) | const [inline, virtual] |
| void KJS::ActivationImp::releaseArguments | ( | ) | [inline] |
Definition at line 144 of file function.h.
| void KJS::ActivationImp::setupLocals | ( | ) |
Definition at line 523 of file function.cpp.
| void KJS::ActivationImp::setupFunctionLocals | ( | ExecState * | exec | ) |
Definition at line 534 of file function.cpp.
Member Data Documentation
const ClassInfo KJS::ActivationImp::info = {"Activation", 0, 0, 0} [static] |
Definition at line 140 of file function.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference