30 #include "CodeBlock.h" 31 #include "Instruction.h" 212 args <<
qint64(sourceID) << lineno << column;
396 int lineNumber,
int columnNumber)
456 void QScriptEngineAgent::propertyChange(
qint64 scriptId,
459 PropertyChange change)
The QVariant class acts like a union for the most common Qt data types.
virtual void returnEvent(const JSC::DebuggerCallFrame &frame, intptr_t sourceID, int lineno)
QScriptValue property(const QString &name, const ResolveFlags &mode=ResolvePrototype) const
Returns the value of this QScriptValue's property with the given name, using the given mode to resolv...
virtual void scriptUnload(qint64 id)
This function is called when the engine has discarded the script identified by the given id...
#define QT_END_NAMESPACE
This macro expands to.
void clearCurrentException()
QScriptEngineAgent * q_ptr
QScriptEngine * engine() const
Returns the QScriptEngine that this agent is associated with.
static QScriptEnginePrivate * get(QScriptEngine *q)
QScopedPointer< QScriptEngineAgentPrivate > d_ptr
qint32 toInt32() const
Returns the signed 32-bit integer value of this QScriptValue, using the conversion rules described in...
QList< QScriptEngineAgent * > ownedAgents
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
QScriptEngineAgent(QScriptEngine *engine)
Constructs a QScriptEngineAgent object for the given engine.
virtual void exceptionThrow(qint64 scriptId, const QScriptValue &exception, bool hasHandler)
This function is called when the given exception has occurred in the engine, in the script identified...
virtual ~QScriptEngineAgent()
Destroys this QScriptEngineAgent.
virtual void scriptLoad(qint64 id, const QString &program, const QString &fileName, int baseLineNumber)
This function is called when the engine has parsed a script and has associated it with the given id...
void setCurrentException(QScriptValue exception)
const T value(const Key &key) const
Returns the value associated with the key.
JSC::ExecState * currentFrame
virtual void evaluateStop(const JSC::JSValue &returnValue, intptr_t sourceID)
void append(const T &t)
Inserts value at the end of the list.
The QScriptEngine class provides an environment for evaluating Qt Script code.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QVariant extension(Extension extension, const QVariant &argument=QVariant())
This virtual function can be reimplemented in a QScriptEngineAgent subclass to provide support for ex...
virtual void exceptionCatch(qint64 scriptId, const QScriptValue &exception)
This function is called when the given exception is about to be caught, in the script identified by s...
JSC::JSGlobalObject * originalGlobalObject() const
virtual void exceptionThrow(const JSC::DebuggerCallFrame &frame, intptr_t sourceID, bool hasHandler)
QHash< intptr_t, QScript::UStringSourceProviderWithFeedback * > loadedScripts
virtual void functionExit(const JSC::JSValue &returnValue, intptr_t sourceID)
virtual bool supportsExtension(Extension extension) const
Returns true if the QScriptEngineAgent supports the given extension; otherwise, false is returned...
virtual void functionEntry(qint64 scriptId)
This function is called when a script function is called in the engine.
virtual void contextPop()
This function is called when the current script context is about to be popped.
QScriptEnginePrivate * engine
virtual void exceptionCatch(const JSC::DebuggerCallFrame &frame, intptr_t sourceID)
virtual void positionChange(qint64 scriptId, int lineNumber, int columnNumber)
This function is called when the engine is about to execute a new statement in the script identified ...
virtual void didReachBreakpoint(const JSC::DebuggerCallFrame &frame, intptr_t sourceID, int lineno)
virtual void contextPush()
This function is called when a new script context has been pushed.
JSC::JSGlobalData * globalData
QScriptValue scriptValueFromJSCValue(JSC::JSValue value)
Extension
This enum specifies the possible extensions to a QScriptEngineAgent.
void agentDeleted(QScriptEngineAgent *agent)
The QScriptValue class acts as a container for the Qt Script data types.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
virtual void functionExit(qint64 scriptId, const QScriptValue &returnValue)
This function is called when the currently executing script function is about to return.
static QString fileName(const QString &fileUrl)
The QScriptEngineAgent class provides an interface to report events pertaining to QScriptEngine execu...
virtual void atStatement(const JSC::DebuggerCallFrame &, intptr_t sourceID, int lineno)