• 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)
 

Static Public Attributes

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

Protected Attributes

Identifier ident
 

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() [1/2]

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.

◆ InternalFunctionImp() [2/2]

InternalFunctionImp::InternalFunctionImp ( ExecState *  exec)

Definition at line 976 of file internal.cpp.

Member Function Documentation

◆ classInfo()

virtual const ClassInfo * KJS::InternalFunctionImp::classInfo ( ) const
inlinevirtual

Definition at line 52 of file function.h.

◆ hasInstance()

Boolean InternalFunctionImp::hasInstance ( ExecState *  exec,
const Value &  value 
)

Definition at line 986 of file internal.cpp.

◆ implementsHasInstance()

bool InternalFunctionImp::implementsHasInstance ( ) const

Definition at line 981 of file internal.cpp.

◆ name()

Identifier KJS::InternalFunctionImp::name ( ) const
inline

Definition at line 54 of file function.h.

◆ setName()

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.

Member Data Documentation

◆ ident

Identifier KJS::InternalFunctionImp::ident
protected

Definition at line 59 of file function.h.

◆ info

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

Definition at line 53 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.9.4
This website is maintained by Timothy Pearson.