KJS::StringInstanceImp Class Reference
Inheritance diagram for KJS::StringInstanceImp:

Public Member Functions | |
StringInstanceImp (ObjectImp *proto) | |
StringInstanceImp (ObjectImp *proto, const UString &string) | |
virtual Value | get (ExecState *exec, const Identifier &propertyName) const |
virtual void | put (ExecState *exec, const Identifier &propertyName, const Value &value, int attr=None) |
virtual bool | hasProperty (ExecState *exec, const Identifier &propertyName) const |
virtual bool | deleteProperty (ExecState *exec, const Identifier &propertyName) |
virtual ReferenceList | propList (ExecState *exec, bool recursive) |
virtual const ClassInfo * | classInfo () const |
Static Public Attributes | |
static const ClassInfo | info = {"String", 0, 0, 0} |
Detailed Description
Definition at line 30 of file string_object.h.
Member Function Documentation
|
Implementation of the [[Get]] internal property (implemented by all Objects).
Reimplemented from KJS::ObjectImp. Reimplemented in KJS::StringPrototypeImp. Definition at line 63 of file string_object.cpp. References KJS::ObjectImp::get(), KJS::ObjectImp::internalValue(), KJS::lengthPropertyName, KJS::UString::size(), KJS::Identifier::toArrayIndex(), KJS::Value::toString(), and KJS::ObjectImp::toString(). |
|
Implementation of the [[Put]] internal property (implemented by all Objects).
Reimplemented from KJS::ObjectImp. Definition at line 82 of file string_object.cpp. References KJS::lengthPropertyName, and KJS::ObjectImp::put(). Referenced by KJS::InterpreterImp::initGlobalObject(). |
|
Implementation of the [[HasProperty]] internal property (implemented by all Objects).
Reimplemented from KJS::ObjectImp. Definition at line 89 of file string_object.cpp. References KJS::ObjectImp::hasProperty(), KJS::ObjectImp::internalValue(), KJS::lengthPropertyName, KJS::ObjectImp::toString(), and KJS::Identifier::toULong(). |
|
Implementation of the [[Delete]] internal property (implemented by all Objects).
Reimplemented from KJS::ObjectImp. Definition at line 102 of file string_object.cpp. References KJS::ObjectImp::deleteProperty(), KJS::ObjectImp::internalValue(), KJS::lengthPropertyName, KJS::ObjectImp::toString(), and KJS::Identifier::toULong(). |
|
######### check for duplicates with the propertymap Reimplemented from KJS::ObjectImp. Definition at line 115 of file string_object.cpp. References KJS::ReferenceList::append(), KJS::Identifier::from(), KJS::ObjectImp::hasProperty(), KJS::ObjectImp::internalValue(), KJS::ObjectImp::propList(), KJS::UString::size(), and KJS::Value::toString(). |
|
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 ObjectImp { virtual const ClassInfo *classInfo() const { return &info; } static const ClassInfo info; // ... }; class FooImp : public ObjectImp { virtual const ClassInfo *classInfo() const { return &info; } static const ClassInfo info; // ... }; And in your source file:
const ClassInfo BarImp::info = {0, 0, 0}; // no parent class const ClassInfo FooImp::info = {&BarImp::info, 0, 0};
Reimplemented from KJS::ObjectImp. Reimplemented in KJS::StringPrototypeImp. Definition at line 41 of file string_object.h. References info. |
The documentation for this class was generated from the following files: