class KJSO

Main base class for every KJS object. More...

Full nameKJS::KJSO
Definition#include <object.h>
Inherited byConstructor, Function, Global, Object
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

 KJSO ()

Constructor.

 KJSO (Imp *d)

 KJSO (const KJSO &)

Copy constructor.

KJSO ()

[virtual]

Destructor.

bool  isNull ()

[const]

Returns: True if this object is null, i.e. if there is no data attached to this object. Don't confuse this with the Null object.

Type  type ()

[const]

Returns: the type of the object. One of the KJS::Type enums.

bool  isA (Type t)

[const]

Check whether object is of a certain type

Parameters:
ttype to check for

bool  isA (const char *s)

[const]

Check whether object is of a certain type. Allows checking of host objects, too.

Parameters:
typename (Number, Boolean etc.)

bool  isObject ()

[const]

Use this method when checking for objects. It's safer than checking for a single object type with isA().

bool  derivedFrom (const char *s)

[const]

Examine the inheritance structure of this object.

Parameters:
tName of the base class.

Returns: True if object is of type t or a derived from such a type.

void  setPrototype (const KJSO& p)

Set the internal [[prototype]] property of this object.

Parameters:
pA prototype object.

KJSO  prototype ()

[const]

Returns: The internal [[prototype]] property.

KJSO  get (const UString &p)

[const]

The internal [[Get]] method.

Returns: The value of property p.

bool  hasProperty (const UString &p, bool recursive = true)

[const]

The internal [[HasProperty]] method.

Parameters:
pProperty name.
recursiveIndicates whether prototypes are searched as well.

Returns: Boolean value indicating whether the object already has a member with the given name p.

void  put (const UString &p, const KJSO& v)

The internal [[Put]] method. Sets the specified property to the value v.

Parameters:
pProperty name.
vValue.

bool  canPut (const UString &p)

[const]

The internal [[CanPut]] method.

Parameters:
pProperty name.

Returns: A boolean value indicating whether a [[Put]] operation with p succeed.

void  deleteProperty (const UString &p)

The internal [[Delete]] method. Removes the specified property from the object.

Parameters:
pProperty name.


Generated by: root@porky.devel.redhat.com on Wed May 10 08:57:04 2000, using kdoc 2.0a35.