KJS::InternalFunctionImp Class Reference
#include <function.h>
Inheritance diagram for KJS::InternalFunctionImp:
Public Member Functions | |
| InternalFunctionImp (FunctionPrototypeImp *funcProto) | |
| InternalFunctionImp (ExecState *exec) | |
| bool | implementsHasInstance () const |
| Boolean | hasInstance (ExecState *exec, const Value &value) |
| virtual const ClassInfo * | classInfo () const |
| Identifier | name () const |
| void | setName (Identifier _ident) |
Public Member Functions inherited from KJS::ObjectImp | |
| ObjectImp (const Object &proto) | |
| ObjectImp (ObjectImp *proto) | |
| ObjectImp () | |
| virtual void | mark () |
| Type | type () const |
| virtual const ClassInfo * | classInfo () const |
| bool | inherits (const ClassInfo *cinfo) const |
| Value | prototype () const |
| void | setPrototype (const Value &proto) |
| virtual UString | className () const |
| virtual Value | get (ExecState *exec, const Identifier &propertyName) const |
| virtual Value | getPropertyByIndex (ExecState *exec, unsigned propertyName) const |
| virtual void | put (ExecState *exec, const Identifier &propertyName, const Value &value, int attr=None) |
| virtual void | putPropertyByIndex (ExecState *exec, unsigned propertyName, const Value &value, int attr=None) |
| virtual bool | canPut (ExecState *exec, const Identifier &propertyName) const |
| virtual bool | hasProperty (ExecState *exec, const Identifier &propertyName) const |
| virtual bool | hasPropertyByIndex (ExecState *exec, unsigned propertyName) const |
| virtual bool | deleteProperty (ExecState *exec, const Identifier &propertyName) |
| virtual bool | deletePropertyByIndex (ExecState *exec, unsigned propertyName) |
| void | deleteAllProperties (ExecState *) |
| virtual Value | defaultValue (ExecState *exec, Type hint) const |
| virtual bool | implementsConstruct () const |
| virtual Object | construct (ExecState *exec, const List &args) |
| virtual bool | implementsCall () const |
| virtual Value | call (ExecState *exec, Object &thisObj, const List &args) |
| virtual bool | implementsHasInstance () const |
| virtual Boolean | hasInstance (ExecState *exec, const Value &value) |
| const ScopeChain & | scope () const |
| void | setScope (const ScopeChain &s) |
| virtual ReferenceList | propList (ExecState *exec, bool recursive=true) |
| Value | internalValue () const |
| void | setInternalValue (const Value &v) |
| void | setInternalValue (ValueImp *v) |
| Value | toPrimitive (ExecState *exec, Type preferredType=UnspecifiedType) const |
| bool | toBoolean (ExecState *exec) const |
| double | toNumber (ExecState *exec) const |
| UString | toString (ExecState *exec) const |
| Object | toObject (ExecState *exec) const |
| ValueImp * | getDirect (const Identifier &propertyName) const |
| void | putDirect (const Identifier &propertyName, ValueImp *value, int attr=0) |
| void | putDirect (const Identifier &propertyName, int value, int attr=0) |
| void | setFunctionName (const Identifier &propertyName) |
Public Member Functions inherited from KJS::ValueImp | |
| ValueImp * | ref () |
| bool | deref () |
| virtual void | mark () |
| bool | marked () const |
| void * | operator new (size_t) |
| void | operator delete (void *) |
| void | setGcAllowed () |
| void | setGcAllowedFast () |
| int | toInteger (ExecState *exec) const |
| int | toInt32 (ExecState *exec) const |
| unsigned int | toUInt32 (ExecState *exec) const |
| unsigned short | toUInt16 (ExecState *exec) const |
| Type | dispatchType () const |
| Value | dispatchToPrimitive (ExecState *exec, Type preferredType=UnspecifiedType) const |
| bool | dispatchToBoolean (ExecState *exec) const |
| double | dispatchToNumber (ExecState *exec) const |
| UString | dispatchToString (ExecState *exec) const |
| bool | dispatchToUInt32 (unsigned &) const |
| Object | dispatchToObject (ExecState *exec) const |
| bool | isDestroyed () const |
Static Public Attributes | |
| static const ClassInfo | info = {"Function", 0, 0, 0} |
Protected Attributes | |
| Identifier | ident |
Protected Attributes inherited from KJS::ObjectImp | |
| PropertyMap | _prop |
Additional Inherited Members | |
Public Attributes inherited from KJS::ValueImp | |
| unsigned short int | refcount |
Detailed Description
Base class for all function objects.
It implements the hasInstance method (for instanceof, which only applies to function objects) and allows to give the function a name, used in toString().
Constructors and prototypes of internal objects (implemented in C++) directly inherit from this. FunctionImp also does, for functions implemented in JS.
Definition at line 41 of file function.h.
Constructor & Destructor Documentation
| InternalFunctionImp::InternalFunctionImp | ( | FunctionPrototypeImp * | funcProto | ) |
Constructor.
For C++-implemented functions, funcProto is usually static_cast<FunctionPrototypeImp*>(exec->interpreter()->builtinFunctionPrototype().imp())
Definition at line 972 of file internal.cpp.
Member Function Documentation
|
inline |
You might want to use the helper function ObjectImp::setFunctionName for this.
Definition at line 57 of file function.h.
The documentation for this class was generated from the following files:
Trinity API Reference
Public Member Functions inherited from