KJS
KJS::ExecState Class Reference
#include <ExecState.h>
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] |
| 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] |
| 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:
KDE 4.0 API Reference