Qt 4.8
|
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend. More...
#include <qscriptdebuggercommand_p.h>
Public Functions | |
QVariant | attribute (Attribute attribute, const QVariant &defaultValue=QVariant()) const |
Returns the value of the given attribute, or defaultValue if the attribute is not defined. More... | |
QHash< Attribute, QVariant > | attributes () const |
QScriptBreakpointData | breakpointData () const |
int | breakpointId () const |
int | contextIndex () const |
QString | fileName () const |
Returns the FileName attribute of this command converted to a string. More... | |
int | iteratorId () const |
int | lineNumber () const |
Returns the LineNumber attribute of this command converted to an int. More... | |
QString | name () const |
bool | operator!= (const QScriptDebuggerCommand &other) const |
Returns true if this QScriptDebuggerCommand is not equal to the other command, otherwise returns false. More... | |
QScriptDebuggerCommand & | operator= (const QScriptDebuggerCommand &other) |
Assigns the other value to this QScriptDebuggerCommand. More... | |
bool | operator== (const QScriptDebuggerCommand &other) const |
Returns true if this QScriptDebuggerCommand is equal to the other command, otherwise returns false. More... | |
QString | program () const |
QScriptDebuggerCommand () | |
Constructs a QScriptDebuggerCommand of type None. More... | |
QScriptDebuggerCommand (Type type) | |
Constructs a QScriptDebuggerCommand of the given type, with no attributes defined. More... | |
QScriptDebuggerCommand (const QScriptDebuggerCommand &other) | |
Constructs a QScriptDebuggerCommand that is a copy of the other command. More... | |
qint64 | scriptId () const |
Returns the ScriptID attribute of this command converted to a qint64. More... | |
QScriptDebuggerValue | scriptValue () const |
void | setAttribute (Attribute attribute, const QVariant &value) |
Sets the value of the given attribute. More... | |
void | setBreakpointData (const QScriptBreakpointData &data) |
void | setBreakpointId (int id) |
void | setContextIndex (int index) |
void | setFileName (const QString &fileName) |
void | setIteratorId (int id) |
void | setLineNumber (int lineNumber) |
void | setName (const QString &name) |
void | setProgram (const QString &program) |
void | setScriptId (qint64 id) |
void | setScriptValue (const QScriptDebuggerValue &value) |
void | setSnapshotId (int id) |
void | setSubordinateScriptValue (const QScriptDebuggerValue &value) |
int | snapshotId () const |
QScriptDebuggerValue | subordinateScriptValue () const |
Type | type () const |
Returns the type of this command. More... | |
~QScriptDebuggerCommand () | |
Destroys this QScriptDebuggerCommand. More... | |
Properties | |
QScopedPointer< QScriptDebuggerCommandPrivate > | d_ptr |
Friends | |
Q_AUTOTEST_EXPORT QDataStream & | operator<< (QDataStream &, const QScriptDebuggerCommand &) |
Writes the given command to the specified stream. More... | |
Q_AUTOTEST_EXPORT QDataStream & | operator>> (QDataStream &, QScriptDebuggerCommand &) |
Reads a QScriptDebuggerCommand from the specified stream into the given command. More... | |
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
A debugger command is described by a command type and zero or more attributes. Such commands are generated internally by the QScriptDebuggerFrontend class (through the scheduleXXX commands). A command is typically passed on to a QScriptDebuggerCommandExecutor that applies the command to a QScriptDebuggerBackend.
Definition at line 68 of file qscriptdebuggercommand_p.h.
Enumerator | |
---|---|
ScriptID | |
FileName | |
LineNumber | |
Program | |
BreakpointID | |
BreakpointData | |
ContextIndex | |
ScriptValue | |
StepCount | |
IteratorID | |
Name | |
SubordinateScriptValue | |
SnapshotID | |
UserAttribute | |
MaxUserAttribute |
Definition at line 131 of file qscriptdebuggercommand_p.h.
Definition at line 74 of file qscriptdebuggercommand_p.h.
QScriptDebuggerCommand::QScriptDebuggerCommand | ( | ) |
Constructs a QScriptDebuggerCommand of type None.
Definition at line 94 of file qscriptdebuggercommand.cpp.
QScriptDebuggerCommand::QScriptDebuggerCommand | ( | Type | type | ) |
Constructs a QScriptDebuggerCommand of the given type, with no attributes defined.
Definition at line 104 of file qscriptdebuggercommand.cpp.
QScriptDebuggerCommand::QScriptDebuggerCommand | ( | const QScriptDebuggerCommand & | other | ) |
Constructs a QScriptDebuggerCommand that is a copy of the other command.
Definition at line 114 of file qscriptdebuggercommand.cpp.
QScriptDebuggerCommand::~QScriptDebuggerCommand | ( | ) |
Destroys this QScriptDebuggerCommand.
Definition at line 123 of file qscriptdebuggercommand.cpp.
QVariant QScriptDebuggerCommand::attribute | ( | Attribute | attribute, |
const QVariant & | defaultValue = QVariant() |
||
) | const |
Returns the value of the given attribute, or defaultValue if the attribute is not defined.
Definition at line 149 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), and setAttribute().
QHash< QScriptDebuggerCommand::Attribute, QVariant > QScriptDebuggerCommand::attributes | ( | ) | const |
Definition at line 169 of file qscriptdebuggercommand.cpp.
QScriptBreakpointData QScriptDebuggerCommand::breakpointData | ( | ) | const |
Definition at line 253 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), and QScriptDebuggerPrivate::handleResponse().
int QScriptDebuggerCommand::breakpointId | ( | ) | const |
Definition at line 241 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), and QScriptDebuggerPrivate::handleResponse().
|
static |
Definition at line 657 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleClearExceptions().
int QScriptDebuggerCommand::contextIndex | ( | ) | const |
Definition at line 277 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
|
static |
Definition at line 558 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleContextsCheckpoint().
|
static |
Definition at line 368 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleContinue().
|
static |
Definition at line 445 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteAllBreakpoints().
|
static |
Definition at line 438 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteBreakpoint().
|
static |
Definition at line 598 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteScriptObjectSnapshot().
|
static |
Definition at line 621 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleDeleteScriptValueIterator().
|
static |
Definition at line 628 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleEvaluate().
QString QScriptDebuggerCommand::fileName | ( | ) | const |
Returns the FileName attribute of this command converted to a string.
This function is provided for convenience.
Definition at line 181 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), and setFileName().
|
static |
Definition at line 410 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleForceReturn().
|
static |
Definition at line 544 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetActivationObject().
|
static |
Definition at line 504 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetBacktrace().
|
static |
Definition at line 457 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetBreakpointData().
|
static |
Definition at line 451 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetBreakpoints().
|
static |
Definition at line 574 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetCompletions().
|
static |
Definition at line 510 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextCount().
|
static |
Definition at line 530 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextId().
|
static |
Definition at line 523 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextInfo().
|
static |
Definition at line 516 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetContextState().
|
static |
Definition at line 613 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetPropertiesByIterator().
|
static |
Definition at line 564 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetPropertyExpressionValue().
|
static |
Definition at line 551 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetScopeChain().
|
static |
Definition at line 478 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetScriptData().
|
static |
Definition at line 472 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetScripts().
|
static |
Definition at line 491 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetScriptsDelta().
|
static |
Definition at line 537 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleGetThisObject().
|
static |
Definition at line 362 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleInterrupt().
int QScriptDebuggerCommand::iteratorId | ( | ) | const |
Definition at line 289 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
int QScriptDebuggerCommand::lineNumber | ( | ) | const |
Returns the LineNumber attribute of this command converted to an int.
This function is provided for convenience.
Definition at line 199 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), and setLineNumber().
QString QScriptDebuggerCommand::name | ( | ) | const |
Definition at line 301 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), and setName().
|
static |
Definition at line 583 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleNewScriptObjectSnapshot().
|
static |
Definition at line 605 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleNewScriptValueIterator().
bool QScriptDebuggerCommand::operator!= | ( | const QScriptDebuggerCommand & | other | ) | const |
Returns true if this QScriptDebuggerCommand is not equal to the other command, otherwise returns false.
Definition at line 357 of file qscriptdebuggercommand.cpp.
QScriptDebuggerCommand & QScriptDebuggerCommand::operator= | ( | const QScriptDebuggerCommand & | other | ) |
Assigns the other value to this QScriptDebuggerCommand.
Definition at line 130 of file qscriptdebuggercommand.cpp.
bool QScriptDebuggerCommand::operator== | ( | const QScriptDebuggerCommand & | other | ) | const |
Returns true if this QScriptDebuggerCommand is equal to the other command, otherwise returns false.
Definition at line 341 of file qscriptdebuggercommand.cpp.
QString QScriptDebuggerCommand::program | ( | ) | const |
Definition at line 229 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), and setProgram().
|
static |
Definition at line 497 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleResolveScript().
|
static |
Definition at line 418 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerFrontendPrivate::event().
|
static |
Definition at line 394 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleRunToLocation().
|
static |
Definition at line 402 of file qscriptdebuggercommand.cpp.
qint64 QScriptDebuggerCommand::scriptId | ( | ) | const |
Returns the ScriptID attribute of this command converted to a qint64.
This function is provided for convenience.
Definition at line 217 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
|
static |
Definition at line 589 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleScriptObjectSnapshotCapture().
|
static |
Definition at line 485 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleScriptsCheckpoint().
QScriptDebuggerValue QScriptDebuggerCommand::scriptValue | ( | ) | const |
Definition at line 265 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
|
static |
Definition at line 639 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleScriptValueToString().
Sets the value of the given attribute.
Definition at line 159 of file qscriptdebuggercommand.cpp.
Referenced by getCompletions(), getPropertyExpressionValue(), stepIntoCommand(), and stepOverCommand().
|
static |
Definition at line 424 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleSetBreakpoint().
|
static |
Definition at line 431 of file qscriptdebuggercommand.cpp.
void QScriptDebuggerCommand::setBreakpointData | ( | const QScriptBreakpointData & | data | ) |
Definition at line 259 of file qscriptdebuggercommand.cpp.
Referenced by setBreakpointCommand(), and setBreakpointDataCommand().
|
static |
Definition at line 464 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleSetBreakpointData().
void QScriptDebuggerCommand::setBreakpointId | ( | int | id | ) |
Definition at line 247 of file qscriptdebuggercommand.cpp.
Referenced by deleteBreakpointCommand(), getBreakpointDataCommand(), and setBreakpointDataCommand().
void QScriptDebuggerCommand::setContextIndex | ( | int | index | ) |
Definition at line 283 of file qscriptdebuggercommand.cpp.
Referenced by evaluateCommand(), forceReturnCommand(), getActivationObjectCommand(), getCompletions(), getContextIdCommand(), getContextInfoCommand(), getContextStateCommand(), getPropertyExpressionValue(), getScopeChainCommand(), and getThisObjectCommand().
void QScriptDebuggerCommand::setFileName | ( | const QString & | fileName | ) |
Definition at line 187 of file qscriptdebuggercommand.cpp.
Referenced by evaluateCommand(), resolveScriptCommand(), and runToLocationCommand().
void QScriptDebuggerCommand::setIteratorId | ( | int | id | ) |
Definition at line 295 of file qscriptdebuggercommand.cpp.
Referenced by deleteScriptValueIteratorCommand(), and getPropertiesByIteratorCommand().
void QScriptDebuggerCommand::setLineNumber | ( | int | lineNumber | ) |
Definition at line 205 of file qscriptdebuggercommand.cpp.
Referenced by evaluateCommand(), getPropertyExpressionValue(), and runToLocationCommand().
void QScriptDebuggerCommand::setName | ( | const QString & | name | ) |
Definition at line 307 of file qscriptdebuggercommand.cpp.
Referenced by setScriptValuePropertyCommand().
void QScriptDebuggerCommand::setProgram | ( | const QString & | program | ) |
Definition at line 235 of file qscriptdebuggercommand.cpp.
Referenced by evaluateCommand().
void QScriptDebuggerCommand::setScriptId | ( | qint64 | id | ) |
Definition at line 223 of file qscriptdebuggercommand.cpp.
Referenced by getScriptDataCommand(), and runToLocationCommand().
void QScriptDebuggerCommand::setScriptValue | ( | const QScriptDebuggerValue & | value | ) |
Definition at line 271 of file qscriptdebuggercommand.cpp.
Referenced by forceReturnCommand(), newScriptValueIteratorCommand(), scriptObjectSnapshotCaptureCommand(), scriptValueToStringCommand(), and setScriptValuePropertyCommand().
|
static |
Definition at line 646 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleSetScriptValueProperty().
void QScriptDebuggerCommand::setSnapshotId | ( | int | id | ) |
Definition at line 331 of file qscriptdebuggercommand.cpp.
Referenced by deleteScriptObjectSnapshotCommand(), and scriptObjectSnapshotCaptureCommand().
void QScriptDebuggerCommand::setSubordinateScriptValue | ( | const QScriptDebuggerValue & | value | ) |
Definition at line 319 of file qscriptdebuggercommand.cpp.
Referenced by setScriptValuePropertyCommand().
int QScriptDebuggerCommand::snapshotId | ( | ) | const |
Definition at line 325 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
|
static |
Definition at line 374 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleStepInto().
|
static |
Definition at line 388 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleStepOut().
|
static |
Definition at line 381 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandSchedulerFrontend::scheduleStepOver().
QScriptDebuggerValue QScriptDebuggerCommand::subordinateScriptValue | ( | ) | const |
Definition at line 313 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
QScriptDebuggerCommand::Type QScriptDebuggerCommand::type | ( | ) | const |
Returns the type of this command.
Definition at line 139 of file qscriptdebuggercommand.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), QScriptDebuggerPrivate::handleResponse(), newScriptValueIteratorCommand(), operator>>(), QScriptDebuggerCommand(), QScriptDebuggerPrivate::scheduleCommand(), and scriptObjectSnapshotCaptureCommand().
|
friend |
Writes the given command to the specified stream.
Definition at line 672 of file qscriptdebuggercommand.cpp.
|
friend |
Reads a QScriptDebuggerCommand from the specified stream into the given command.
Definition at line 695 of file qscriptdebuggercommand.cpp.
|
private |
Definition at line 258 of file qscriptdebuggercommand_p.h.
Referenced by operator<<(), operator=(), operator>>(), and QScriptDebuggerCommand().