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

kjs

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

#include <interpreter.h>

Public Member Functions

Interpreter * dynamicInterpreter () const
 
Interpreter * interpreter () const
 
Interpreter * lexicalInterpreter () const
 
Context context () const
 
void setException (const Value &e)
 
void clearException ()
 
Value exception () const
 
bool hadException ()
 

Static Public Member Functions

static void requestTerminate ()
 

Static Public Attributes

static bool(* confirmTerminate )()
 

Friends

class InterpreterImp
 
class FunctionImp
 
class GlobalFuncImp
 
class TryNode
 
class VarDeclNode
 
class FuncDeclNode
 

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 state context.

Definition at line 438 of file interpreter.h.

Member Function Documentation

◆ clearException()

void ExecState::clearException ( )

Definition at line 368 of file interpreter.cpp.

◆ context()

Context KJS::ExecState::context ( ) const
inline

Returns the execution context associated with this execution state.

Returns
The current execution state context

Definition at line 470 of file interpreter.h.

◆ dynamicInterpreter()

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

Returns the interpreter associated with this execution state.

Returns
The interpreter executing the script

Definition at line 452 of file interpreter.h.

◆ exception()

Value KJS::ExecState::exception ( ) const
inline

Definition at line 474 of file interpreter.h.

◆ hadException()

bool ExecState::hadException ( )

Definition at line 380 of file interpreter.cpp.

◆ interpreter()

Interpreter * KJS::ExecState::interpreter ( ) const
inline

Definition at line 455 of file interpreter.h.

◆ lexicalInterpreter()

Interpreter * ExecState::lexicalInterpreter ( ) const

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

Returns
The interpreter currently in scope

Definition at line 394 of file interpreter.cpp.

◆ requestTerminate()

static void KJS::ExecState::requestTerminate ( )
inlinestatic

Definition at line 481 of file interpreter.h.

◆ setException()

void ExecState::setException ( const Value &  e)

Definition at line 358 of file interpreter.cpp.

Friends And Related Function Documentation

◆ FuncDeclNode

friend class FuncDeclNode
friend

Definition at line 444 of file interpreter.h.

◆ FunctionImp

friend class FunctionImp
friend

Definition at line 440 of file interpreter.h.

◆ GlobalFuncImp

friend class GlobalFuncImp
friend

Definition at line 441 of file interpreter.h.

◆ InterpreterImp

friend class InterpreterImp
friend

Definition at line 439 of file interpreter.h.

◆ TryNode

friend class TryNode
friend

Definition at line 442 of file interpreter.h.

◆ VarDeclNode

friend class VarDeclNode
friend

Definition at line 443 of file interpreter.h.

Member Data Documentation

◆ confirmTerminate

bool(* ExecState::confirmTerminate)()=defaultConfirm
staticdefault

Definition at line 485 of file interpreter.h.


The documentation for this class was generated from the following files:
  • interpreter.h
  • interpreter.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.