KJS::NumberObjectImp Class Reference
Inheritance diagram for KJS::NumberObjectImp:

Detailed Description
Definition at line 75 of file number_object.h.
Public Types | |
NaNValue | |
NegInfinity | |
PosInfinity | |
MaxValue | |
MinValue | |
enum | { NaNValue, NegInfinity, PosInfinity, MaxValue, MinValue } |
Public Member Functions | |
NumberObjectImp (ExecState *exec, FunctionPrototypeImp *funcProto, NumberPrototypeImp *numberProto) | |
virtual bool | implementsConstruct () const |
virtual Object | construct (ExecState *exec, const List &args) |
virtual bool | implementsCall () const |
virtual Value | call (ExecState *exec, Object &thisObj, const List &args) |
Value | get (ExecState *exec, const Identifier &p) const |
Value | getValueProperty (ExecState *exec, int token) const |
virtual const ClassInfo * | classInfo () const |
Completion | execute (const List &) |
Object | construct (const List &) |
Static Public Attributes | |
static const ClassInfo | info = {"Function", &InternalFunctionImp::info, &numberTable, 0} |
Member Function Documentation
Implementation of the [[Call]] internal property.
- See also:
- Object::call()
Reimplemented from KJS::ObjectImp.
Definition at line 498 of file number_object.cpp.
virtual const ClassInfo* KJS::NumberObjectImp::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::InternalFunctionImp.
Definition at line 89 of file number_object.h.
Implementation of the [[Construct]] internal property.
- See also:
- Object::construct()
Reimplemented from KJS::ObjectImp.
Definition at line 476 of file number_object.cpp.
Value NumberObjectImp::get | ( | ExecState * | exec, | |
const Identifier & | p | |||
) | const [virtual] |
Implementation of the [[Get]] internal property (implemented by all Objects).
- See also:
- Object::get()
Reimplemented from KJS::ObjectImp.
Definition at line 446 of file number_object.cpp.
The documentation for this class was generated from the following files: