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

kjs

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

#include <internal.h>

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

Public Member Functions

 FunctionImp (ExecState *exec, const Identifier &n=Identifier::null())
virtual Value get (ExecState *exec, const Identifier &propertyName) const
virtual void put (ExecState *exec, const Identifier &propertyName, const Value &value, int attr=None)
virtual bool hasProperty (ExecState *exec, const Identifier &propertyName) const
virtual bool deleteProperty (ExecState *exec, const Identifier &propertyName)
virtual bool implementsCall () const
virtual Value call (ExecState *exec, Object &thisObj, const List &args)
void addParameter (const Identifier &n)
Identifier parameterProperty (int index) const
UString parameterString () const
virtual CodeType codeType () const =0
virtual Completion execute (ExecState *exec)=0
int firstLine () const
int lastLine () const
int sourceId () const
virtual const ClassInfo * classInfo () const
- Public Member Functions inherited from KJS::InternalFunctionImp
 InternalFunctionImp (FunctionPrototypeImp *funcProto)
 InternalFunctionImp (ExecState *exec)
bool implementsHasInstance () const
Boolean hasInstance (ExecState *exec, const Value &value)
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", &InternalFunctionImp::info, 0, 0}
- Static Public Attributes inherited from KJS::InternalFunctionImp
static const ClassInfo info = {"Function", 0, 0, 0}

Protected Attributes

Parameter * param
int line0
int line1
int sid
- Protected Attributes inherited from KJS::InternalFunctionImp
Identifier ident
- Protected Attributes inherited from KJS::ObjectImp
PropertyMap _prop

Friends

class ActivationImp

Additional Inherited Members

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

Detailed Description

Implementation class for functions implemented in JS.

Definition at line 390 of file internal.h.


The documentation for this class was generated from the following files:
  • internal.h
  • function.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
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kjs by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |