• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kjs
 

kjs

  • KJS
  • InternalFunctionImp
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
KJS::InternalFunctionImp Class Reference

#include <function.h>

Inheritance diagram for KJS::InternalFunctionImp:
KJS::FunctionImp KJS::FunctionPrototypeImp

Public Member Functions

 InternalFunctionImp (FunctionPrototypeImp *funcProto)
 InternalFunctionImp (ExecState *exec)
bool implementsHasInstance () const
Boolean hasInstance (ExecState *exec, const Value &value)
virtual const ClassInfo * classInfo () const
Identifier name () const
void setName (Identifier _ident)
- Public Member Functions inherited from KJS::ObjectImp
 ObjectImp (const Object &proto)
 ObjectImp (ObjectImp *proto)
 ObjectImp ()
virtual void mark ()
Type type () const
virtual const ClassInfo * classInfo () const
bool inherits (const ClassInfo *cinfo) const
Value prototype () const
void setPrototype (const Value &proto)
virtual UString className () const
virtual Value get (ExecState *exec, const Identifier &propertyName) const
virtual Value getPropertyByIndex (ExecState *exec, unsigned propertyName) const
virtual void put (ExecState *exec, const Identifier &propertyName, const Value &value, int attr=None)
virtual void putPropertyByIndex (ExecState *exec, unsigned propertyName, const Value &value, int attr=None)
virtual bool canPut (ExecState *exec, const Identifier &propertyName) const
virtual bool hasProperty (ExecState *exec, const Identifier &propertyName) const
virtual bool hasPropertyByIndex (ExecState *exec, unsigned propertyName) const
virtual bool deleteProperty (ExecState *exec, const Identifier &propertyName)
virtual bool deletePropertyByIndex (ExecState *exec, unsigned propertyName)
void deleteAllProperties (ExecState *)
virtual Value defaultValue (ExecState *exec, Type hint) const
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)
virtual bool implementsHasInstance () const
virtual Boolean hasInstance (ExecState *exec, const Value &value)
const ScopeChain & scope () const
void setScope (const ScopeChain &s)
virtual ReferenceList propList (ExecState *exec, bool recursive=true)
Value internalValue () const
void setInternalValue (const Value &v)
void setInternalValue (ValueImp *v)
Value toPrimitive (ExecState *exec, Type preferredType=UnspecifiedType) const
bool toBoolean (ExecState *exec) const
double toNumber (ExecState *exec) const
UString toString (ExecState *exec) const
Object toObject (ExecState *exec) const
ValueImp * getDirect (const Identifier &propertyName) const
void putDirect (const Identifier &propertyName, ValueImp *value, int attr=0)
void putDirect (const Identifier &propertyName, int value, int attr=0)
void setFunctionName (const Identifier &propertyName)
- Public Member Functions inherited from KJS::ValueImp
ValueImp * ref ()
bool deref ()
virtual void mark ()
bool marked () const
void * operator new (size_t)
void operator delete (void *)
void setGcAllowed ()
void setGcAllowedFast ()
int toInteger (ExecState *exec) const
int toInt32 (ExecState *exec) const
unsigned int toUInt32 (ExecState *exec) const
unsigned short toUInt16 (ExecState *exec) const
Type dispatchType () const
Value dispatchToPrimitive (ExecState *exec, Type preferredType=UnspecifiedType) const
bool dispatchToBoolean (ExecState *exec) const
double dispatchToNumber (ExecState *exec) const
UString dispatchToString (ExecState *exec) const
bool dispatchToUInt32 (unsigned &) const
Object dispatchToObject (ExecState *exec) const
bool isDestroyed () const

Static Public Attributes

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

Protected Attributes

Identifier ident
- Protected Attributes inherited from KJS::ObjectImp
PropertyMap _prop

Additional Inherited Members

- Public Attributes inherited from KJS::ValueImp
unsigned short int refcount

Detailed Description

Base class for all function objects.

It implements the hasInstance method (for instanceof, which only applies to function objects) and allows to give the function a name, used in toString().

Constructors and prototypes of internal objects (implemented in C++) directly inherit from this. FunctionImp also does, for functions implemented in JS.

Definition at line 40 of file function.h.

Constructor & Destructor Documentation

InternalFunctionImp::InternalFunctionImp ( FunctionPrototypeImp *  funcProto)

Constructor.

For C++-implemented functions, funcProto is usually static_cast<FunctionPrototypeImp*>(exec->interpreter()->builtinFunctionPrototype().imp())

Definition at line 971 of file internal.cpp.

Member Function Documentation

void KJS::InternalFunctionImp::setName ( Identifier  _ident)
inline

You might want to use the helper function ObjectImp::setFunctionName for this.

Definition at line 56 of file function.h.


The documentation for this class was generated from the following files:
  • function.h
  • internal.cpp

kjs

Skip menu "kjs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kjs

Skip menu "kjs"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kjs by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.