Changeset 35027 in webkit for trunk/JavaScriptCore/kjs/StringObject.h
- Timestamp:
- Jul 6, 2008, 7:49:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/StringObject.h
r34861 r35027 27 27 namespace KJS { 28 28 29 class StringObject : public JSWrapperObject {30 public:31 StringObject(ExecState*, JSObject* prototype);32 StringObject(ExecState*, JSObject* prototype, const UString&);29 class StringObject : public JSWrapperObject { 30 public: 31 StringObject(ExecState*, JSObject* prototype); 32 StringObject(ExecState*, JSObject* prototype, const UString&); 33 33 34 static StringObject* create(ExecState*, JSString*);34 static StringObject* create(ExecState*, JSString*); 35 35 36 virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);37 virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);36 virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&); 37 virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&); 38 38 39 virtual void put(ExecState* exec, const Identifier& propertyName, JSValue*);40 virtual bool deleteProperty(ExecState*, const Identifier& propertyName);41 virtual void getPropertyNames(ExecState*, PropertyNameArray&);39 virtual void put(ExecState* exec, const Identifier& propertyName, JSValue*); 40 virtual bool deleteProperty(ExecState*, const Identifier& propertyName); 41 virtual void getPropertyNames(ExecState*, PropertyNameArray&); 42 42 43 virtual const ClassInfo* classInfo() const { return &info; }44 static const ClassInfo info;43 virtual const ClassInfo* classInfo() const { return &info; } 44 static const ClassInfo info; 45 45 46 JSString* internalValue() const { return static_cast<JSString*>(JSWrapperObject::internalValue());}46 JSString* internalValue() const { return static_cast<JSString*>(JSWrapperObject::internalValue());} 47 47 48 protected:49 StringObject(JSObject* prototype, JSString*);48 protected: 49 StringObject(JSObject* prototype, JSString*); 50 50 51 private:52 virtual UString toString(ExecState*) const;53 virtual UString toThisString(ExecState*) const;54 virtual JSString* toThisJSString(ExecState*);51 private: 52 virtual UString toString(ExecState*) const; 53 virtual UString toThisString(ExecState*) const; 54 virtual JSString* toThisJSString(ExecState*); 55 55 }; 56 56
Note:
See TracChangeset
for help on using the changeset viewer.