kjs Library API Documentation

KJS::ExecState Class Reference

Represents the current state of script execution. More...

#include <interpreter.h>

Collaboration diagram for KJS::ExecState:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Interpreterinterpreter () 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 )() = defaultConfirm

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 439 of file interpreter.h.


Member Function Documentation

Interpreter* KJS::ExecState::interpreter  )  const [inline]
 

Returns the interpreter associated with this execution state.

Returns:
The interpreter executing the script

Definition at line 453 of file interpreter.h.

Referenced by KJS::StatementNode::abortStatement(), KJS::RegExpObjectImp::arrayOfMatches(), KJS::cacheGlobalObject(), KJS::StringProtoFuncImp::call(), KJS::RegExpProtoFuncImp::call(), KJS::FunctionProtoFuncImp::call(), KJS::GlobalFuncImp::call(), KJS::FunctionImp::call(), KJS::DateProtoFuncImp::call(), KJS::StringObjectImp::construct(), KJS::RegExpObjectImp::construct(), KJS::ObjectObjectImp::construct(), KJS::NumberObjectImp::construct(), KJS::FunctionObjectImp::construct(), KJS::DeclaredFunctionImp::construct(), KJS::ErrorObjectImp::construct(), KJS::DateObjectImp::construct(), KJS::BooleanObjectImp::construct(), KJS::ArrayObjectImp::construct(), KJS::Error::create(), KJS::ObjectImp::defaultValue(), KJS::FuncExprNode::evaluate(), KJS::FunctionCallNode::evaluate(), KJS::PropertyValueNode::evaluate(), KJS::ArrayNode::evaluate(), KJS::ElementNode::evaluate(), KJS::RegExpNode::evaluate(), KJS::ThrowNode::execute(), KJS::StatementNode::hitStatement(), KJS::FuncDeclNode::processFuncDecl(), KJS::NumberImp::toObject(), KJS::StringImp::toObject(), and KJS::BooleanImp::toObject().

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

Returns the execution context associated with this execution state.

Returns:
The current execution state context

Definition at line 460 of file interpreter.h.

Referenced by KJS::GlobalFuncImp::call(), KJS::FunctionImp::call(), KJS::FuncExprNode::evaluate(), KJS::VarDeclNode::evaluate(), KJS::ThisNode::evaluate(), KJS::ResolveNode::evaluateReference(), KJS::TryNode::execute(), KJS::CatchNode::execute(), KJS::LabelNode::execute(), KJS::SwitchNode::execute(), KJS::WithNode::execute(), KJS::BreakNode::execute(), KJS::ContinueNode::execute(), KJS::ForInNode::execute(), KJS::ForNode::execute(), KJS::WhileNode::execute(), KJS::DoWhileNode::execute(), KJS::FunctionImp::get(), KJS::StatementNode::hitStatement(), KJS::FuncDeclNode::processFuncDecl(), KJS::VarDeclNode::processVarDecls(), and KJS::Reference::putValue().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kjs Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Jul 20 12:36:03 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003