kjs Library API Documentation

KJS::ArgumentsImp Class Reference

Inheritance diagram for KJS::ArgumentsImp:

Inheritance graph
[legend]
Collaboration diagram for KJS::ArgumentsImp:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ArgumentsImp (ExecState *exec, FunctionImp *func, const List &args, ActivationImp *act)
virtual void mark ()
virtual Value get (ExecState *exec, const Identifier &propertyName) const
virtual void put (ExecState *exec, const Identifier &propertyName, const Value &value, int attr=None)
virtual const ClassInfoclassInfo () const

Static Public Attributes

static const ClassInfo info = {"Arguments", 0, 0, 0}

Detailed Description

Definition at line 449 of file internal.h.


Member Function Documentation

Value ArgumentsImp::get ExecState exec,
const Identifier propertyName
const [virtual]
 

Implementation of the [[Get]] internal property (implemented by all Objects).

See also:
Object::get()

Reimplemented from KJS::ObjectImp.

Definition at line 663 of file function.cpp.

References KJS::Object::dynamicCast(), KJS::ActivationImp::get(), KJS::ObjectImp::get(), KJS::Value::imp(), KJS::Object::inherits(), KJS::SimpleNumber::is(), KJS::ValueImp::isDestroyed(), and KJS::Value::isValid().

void ArgumentsImp::put ExecState exec,
const Identifier propertyName,
const Value value,
int  attr = None
[virtual]
 

Implementation of the [[Put]] internal property (implemented by all Objects).

See also:
Object::put()

Reimplemented from KJS::ObjectImp.

Definition at line 677 of file function.cpp.

References KJS::Object::dynamicCast(), KJS::ObjectImp::get(), KJS::Value::imp(), KJS::Object::inherits(), KJS::Value::isValid(), and KJS::ObjectImp::put().

virtual const ClassInfo* KJS::ArgumentsImp::classInfo  )  const [inline, virtual]
 

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};

See also:
inherits()

Reimplemented from KJS::ObjectImp.

Definition at line 459 of file internal.h.

References info.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kjs Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Jul 20 12:35:57 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003