Changeset 9768 in webkit for trunk/JavaScriptCore/kjs/object.h
- Timestamp:
- Jul 14, 2005, 11:27:04 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.h
r9582 r9768 18 18 * You should have received a copy of the GNU Library General Public License 19 19 * along with this library; see the file COPYING.LIB. If not, write to 20 * the Free Software Foundation, Inc., 5 9 Temple Place - Suite 330,21 * Boston, MA 0211 1-1307, USA.20 * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, 21 * Boston, MA 02110-1301, USA. 22 22 * 23 23 */ … … 102 102 * a null object will be returned (i.e. one with it's internal pointer set 103 103 * to 0). If you do not know for sure whether the value is of type 104 * ObjectType, you should check the @ref isNull() methods afterwards before104 * ObjectType, you should check the isValid() methods afterwards before 105 105 * calling any methods on the Object. 106 106 * … … 246 246 * 247 247 * If an error occurs during construction, the execution state's exception 248 * will be set. This can be tested for with @refExecState::hadException().248 * will be set. This can be tested for with ExecState::hadException(). 249 249 * Under some circumstances, the exception object may also be returned. 250 250 * … … 301 301 302 302 /** 303 * Checks whether value delegates behavio ur to this object. Used by the303 * Checks whether value delegates behavior to this object. Used by the 304 304 * instanceof operator. 305 305 * 306 306 * @param exec The current execution state 307 307 * @param value The value to check 308 * @return true if value delegates behavio ur to this object, otherwise308 * @return true if value delegates behavior to this object, otherwise 309 309 * false 310 310 */ … … 317 317 * inside other functions: 318 318 * 319 * \code 319 320 * function f() { 320 321 * … … 327 328 * } 328 329 * f.prototype = new String(); 330 * \endcode 329 331 * 330 332 * When the function f.b is executed, its scope will include properties of … … 407 409 * A pointer to a ClassInfo struct for this class. This provides a basic 408 410 * facility for run-time type information, and can be used to check an 409 * object's class an inheritance (see @refinherits()). This should411 * object's class an inheritance (see inherits()). This should 410 412 * always return a statically declared pointer, or 0 to indicate that 411 413 * there is no class information. … … 418 420 * class declarations: 419 421 * 422 * \code 420 423 * class BarImp : public ObjectImp { 421 424 * virtual const ClassInfo *classInfo() const { return &info; } … … 429 432 * // ... 430 433 * }; 434 * \endcode 431 435 * 432 436 * And in your source file: 433 437 * 438 * \code 434 439 * const ClassInfo BarImp::info = {0, 0, 0}; // no parent class 435 440 * const ClassInfo FooImp::info = {&BarImp::info, 0, 0}; 441 * \endcode 436 442 * 437 443 * @see inherits() … … 453 459 * 454 460 * If you have a handle to a statically declared ClassInfo, such as in the 455 * @refclassInfo() example, you can check for inheritance without needing461 * classInfo() example, you can check for inheritance without needing 456 462 * an instance of the other class: 457 463 * … … 483 489 * 484 490 * The default implementation uses classInfo(). 485 * You should either implement @refclassInfo(), or486 * if you simply need a classname, you can reimplement @refclassName()491 * You should either implement classInfo(), or 492 * if you simply need a classname, you can reimplement className() 487 493 * instead. 488 494 * … … 661 667 662 668 /** 663 * Array of error names corresponding to @refErrorType669 * Array of error names corresponding to ErrorType 664 670 */ 665 671 static const char * const * const errorNames;
Note:
See TracChangeset
for help on using the changeset viewer.