Changeset 2760 in webkit for trunk/JavaScriptCore/kjs/object.h
- Timestamp:
- Nov 19, 2002, 2:02:26 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.h
r2753 r2760 137 137 * @return The specified property, or Undefined 138 138 */ 139 Value get(ExecState *exec, const UString&propertyName) const;139 Value get(ExecState *exec, const Identifier &propertyName) const; 140 140 Value get(ExecState *exec, unsigned propertyName) const; 141 141 … … 149 149 * @param propertyValue The value to set 150 150 */ 151 void put(ExecState *exec, const UString&propertyName,151 void put(ExecState *exec, const Identifier &propertyName, 152 152 const Value &value, int attr = None); 153 153 void put(ExecState *exec, unsigned propertyName, … … 164 164 * @return true if the property can be set, otherwise false 165 165 */ 166 bool canPut(ExecState *exec, const UString&propertyName) const;166 bool canPut(ExecState *exec, const Identifier &propertyName) const; 167 167 168 168 /** … … 176 176 * @return true if the object has the property, otherwise false 177 177 */ 178 bool hasProperty(ExecState *exec, const UString&propertyName) const;178 bool hasProperty(ExecState *exec, const Identifier &propertyName) const; 179 179 bool hasProperty(ExecState *exec, unsigned propertyName) const; 180 180 … … 190 190 * allowed. 191 191 */ 192 bool deleteProperty(ExecState *exec, const UString&propertyName);192 bool deleteProperty(ExecState *exec, const Identifier &propertyName); 193 193 bool deleteProperty(ExecState *exec, unsigned propertyName); 194 194 … … 478 478 */ 479 479 // [[Get]] - must be implemented by all Objects 480 virtual Value get(ExecState *exec, const UString&propertyName) const;480 virtual Value get(ExecState *exec, const Identifier &propertyName) const; 481 481 virtual Value get(ExecState *exec, unsigned propertyName) const; 482 482 … … 487 487 * @see Object::put() 488 488 */ 489 virtual void put(ExecState *exec, const UString&propertyName,489 virtual void put(ExecState *exec, const Identifier &propertyName, 490 490 const Value &value, int attr = None); 491 491 virtual void put(ExecState *exec, unsigned propertyName, … … 498 498 * @see Object::canPut() 499 499 */ 500 virtual bool canPut(ExecState *exec, const UString&propertyName) const;500 virtual bool canPut(ExecState *exec, const Identifier &propertyName) const; 501 501 502 502 /** … … 507 507 */ 508 508 virtual bool hasProperty(ExecState *exec, 509 const UString&propertyName) const;509 const Identifier &propertyName) const; 510 510 virtual bool hasProperty(ExecState *exec, unsigned propertyName) const; 511 511 … … 517 517 */ 518 518 virtual bool deleteProperty(ExecState *exec, 519 const UString&propertyName);519 const Identifier &propertyName); 520 520 virtual bool deleteProperty(ExecState *exec, unsigned propertyName); 521 521 … … 580 580 Object toObject(ExecState *exec) const; 581 581 582 ValueImp* getDirect(const UString& propertyName) const;582 ValueImp* getDirect(const Identifier& propertyName) const; 583 583 private: 584 const HashEntry* findPropertyHashEntry( const UString& propertyName ) const;584 const HashEntry* findPropertyHashEntry( const Identifier& propertyName ) const; 585 585 PropertyMap _prop; 586 586 ValueImp *_proto; … … 641 641 { return imp()->className(); } 642 642 643 inline Value Object::get(ExecState *exec, const UString&propertyName) const643 inline Value Object::get(ExecState *exec, const Identifier &propertyName) const 644 644 { return imp()->get(exec,propertyName); } 645 645 … … 647 647 { return imp()->get(exec,propertyName); } 648 648 649 inline void Object::put(ExecState *exec, const UString&propertyName, const Value &value, int attr)649 inline void Object::put(ExecState *exec, const Identifier &propertyName, const Value &value, int attr) 650 650 { imp()->put(exec,propertyName,value,attr); } 651 651 … … 653 653 { imp()->put(exec,propertyName,value,attr); } 654 654 655 inline bool Object::canPut(ExecState *exec, const UString&propertyName) const655 inline bool Object::canPut(ExecState *exec, const Identifier &propertyName) const 656 656 { return imp()->canPut(exec,propertyName); } 657 657 658 inline bool Object::hasProperty(ExecState *exec, const UString&propertyName) const658 inline bool Object::hasProperty(ExecState *exec, const Identifier &propertyName) const 659 659 { return imp()->hasProperty(exec, propertyName); } 660 660 … … 662 662 { return imp()->hasProperty(exec, propertyName); } 663 663 664 inline bool Object::deleteProperty(ExecState *exec, const UString&propertyName)664 inline bool Object::deleteProperty(ExecState *exec, const Identifier &propertyName) 665 665 { return imp()->deleteProperty(exec,propertyName); } 666 666 … … 704 704 { imp()->setInternalValue(v); } 705 705 706 extern const UStringargumentsPropertyName;707 extern const UStringlengthPropertyName;708 extern const UStringprototypePropertyName;709 extern const UStringspecialPrototypePropertyName;710 extern const UStringtoStringPropertyName;711 extern const UStringvalueOfPropertyName;706 extern const Identifier argumentsPropertyName; 707 extern const Identifier lengthPropertyName; 708 extern const Identifier prototypePropertyName; 709 extern const Identifier specialPrototypePropertyName; 710 extern const Identifier toStringPropertyName; 711 extern const Identifier valueOfPropertyName; 712 712 713 713 }; // namespace
Note:
See TracChangeset
for help on using the changeset viewer.