• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KJS

KJS::ExecState

KJS::ExecState Class Reference

#include <ExecState.h>

List of all members.


Detailed Description

Represents the current state of script execution.

This object allows you obtain a handle the interpreter that is currently executing the script, and also the current execution context.

Definition at line 42 of file ExecState.h.


Public Member Functions

Interpreter * dynamicInterpreter () const
Interpreter * lexicalInterpreter () const
Context * context () const
void setException (JSValue *e)
void clearException ()
JSValue * exception () const
JSValue ** exceptionSlot ()
bool hadException () const
const CommonIdentifiers & propertyNames () const

Friends

class Interpreter
class FunctionImp
class GlobalFuncImp

Member Function Documentation

Interpreter* KJS::ExecState::dynamicInterpreter (  )  const [inline]

Returns the interpreter associated with this execution state.

Returns:
The interpreter executing the script

Definition at line 52 of file ExecState.h.

Interpreter * KJS::ExecState::lexicalInterpreter (  )  const

Returns the interpreter associated with the current scope's global object.

Returns:
The interpreter currently in scope

Definition at line 31 of file ExecState.cpp.

Context* KJS::ExecState::context (  )  const [inline]

Returns the execution context associated with this execution state.

Returns:
The current execution state context

Definition at line 67 of file ExecState.h.

void KJS::ExecState::setException ( JSValue *  e  )  [inline]

Set the exception associated with this execution state.

Parameters:
e The JSValue of the exception being set

Definition at line 74 of file ExecState.h.

void KJS::ExecState::clearException (  )  [inline]

Clears the exception set on this execution state.

Definition at line 79 of file ExecState.h.

JSValue* KJS::ExecState::exception (  )  const [inline]

Returns the exception associated with this execution state.

Returns:
The current execution state exception

Definition at line 85 of file ExecState.h.

JSValue** KJS::ExecState::exceptionSlot (  )  [inline]

Parameters:
 

Returns:

Definition at line 92 of file ExecState.h.

bool KJS::ExecState::hadException (  )  const [inline]

Use this to check if an exception was thrown in the current execution state.

Returns:
Whether an exception was thrown

Definition at line 100 of file ExecState.h.

const CommonIdentifiers& KJS::ExecState::propertyNames (  )  const [inline]

Definition at line 104 of file ExecState.h.


Friends And Related Function Documentation

friend class Interpreter [friend]

Definition at line 43 of file ExecState.h.

friend class FunctionImp [friend]

Definition at line 44 of file ExecState.h.

friend class GlobalFuncImp [friend]

Definition at line 45 of file ExecState.h.


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

KJS

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal