com.opera.core.systems.scope.services.ums
Class EcmaScriptDebugger6
java.lang.Object
com.opera.core.systems.scope.AbstractService
com.opera.core.systems.scope.services.ums.EcmaScriptDebugger
com.opera.core.systems.scope.services.ums.EcmaScriptDebugger6
- All Implemented Interfaces:
- IEcmaScriptDebugger
public class EcmaScriptDebugger6
- extends EcmaScriptDebugger
EcmaScript debugger 6.0 implementation handles injection and runtime management to the new
version of debugger
- Author:
- Deniz Turkoglu
|
Method Summary |
java.lang.String |
callFunctionOnObject(java.lang.String using,
int objectId)
The script to be executed on/using an object |
java.lang.Object |
callFunctionOnObject(java.lang.String using,
int objectId,
boolean responseExpected)
|
java.util.List<java.lang.Integer> |
examineObjects(java.lang.Integer id)
|
java.lang.Object |
examineScriptResult(java.lang.Integer id)
|
java.lang.Object |
executeScript(java.lang.String using,
boolean responseExpected)
Executes a script and returns the response (based on responseExpected) |
java.lang.Object |
executeScript(java.lang.String using,
boolean responseExpected,
int runtimeId)
|
java.lang.Integer |
executeScriptOnObject(java.lang.String using,
int objectId)
|
java.lang.Integer |
getObject(java.lang.String using)
Gets the object id using a script |
java.lang.Integer |
getObject(java.lang.String using,
int runtimeId)
|
protected java.lang.Object |
parseEvalReply(Esdbg6Protos.EvalResult result)
|
java.lang.Object |
scriptExecutor(java.lang.String script,
java.lang.Object... params)
Executes the given javascript via eval call |
| Methods inherited from class com.opera.core.systems.scope.services.ums.EcmaScriptDebugger |
addRuntime, buildEval, buildVariable, changeRuntime, changeRuntime, cleanUpRuntimes, cleanUpRuntimes, createAllRuntimes, eval, eval, executeJavascript, executeJavascript, executeJavascript, findRuntime, findRuntime, getRuntimeId, init, listFramePaths, listRuntimes, parseEvalReply, parseNumber, parseValue, processArgument, readyStateChanged, releaseObject, releaseObjects, removeRuntime, resetFramePath, resetRuntimesList, setDriver, setRuntime, updateRuntime |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EcmaScriptDebugger6
public EcmaScriptDebugger6(ScopeServices services,
java.lang.String version)
executeScriptOnObject
public java.lang.Integer executeScriptOnObject(java.lang.String using,
int objectId)
- Specified by:
executeScriptOnObject in interface IEcmaScriptDebugger- Overrides:
executeScriptOnObject in class EcmaScriptDebugger
scriptExecutor
public java.lang.Object scriptExecutor(java.lang.String script,
java.lang.Object... params)
- Description copied from interface:
IEcmaScriptDebugger
- Executes the given javascript via eval call
- Specified by:
scriptExecutor in interface IEcmaScriptDebugger- Overrides:
scriptExecutor in class EcmaScriptDebugger
- Parameters:
script - The script to be executed on hostparams - Array of params, can be string, long or web element(s)
examineObjects
public java.util.List<java.lang.Integer> examineObjects(java.lang.Integer id)
- Specified by:
examineObjects in interface IEcmaScriptDebugger- Overrides:
examineObjects in class EcmaScriptDebugger
examineScriptResult
public java.lang.Object examineScriptResult(java.lang.Integer id)
- Specified by:
examineScriptResult in interface IEcmaScriptDebugger- Overrides:
examineScriptResult in class EcmaScriptDebugger
parseEvalReply
protected java.lang.Object parseEvalReply(Esdbg6Protos.EvalResult result)
callFunctionOnObject
public java.lang.Object callFunctionOnObject(java.lang.String using,
int objectId,
boolean responseExpected)
- Specified by:
callFunctionOnObject in interface IEcmaScriptDebugger- Overrides:
callFunctionOnObject in class EcmaScriptDebugger
callFunctionOnObject
public java.lang.String callFunctionOnObject(java.lang.String using,
int objectId)
- Description copied from interface:
IEcmaScriptDebugger
- The script to be executed on/using an object
- Specified by:
callFunctionOnObject in interface IEcmaScriptDebugger- Overrides:
callFunctionOnObject in class EcmaScriptDebugger
- Parameters:
using - Script with reference to the object "locator"objectId - The object to be used for injection
- Returns:
- The string value returned by the executed Javascript
executeScript
public java.lang.Object executeScript(java.lang.String using,
boolean responseExpected)
- Description copied from interface:
IEcmaScriptDebugger
- Executes a script and returns the response (based on responseExpected)
- Specified by:
executeScript in interface IEcmaScriptDebugger- Overrides:
executeScript in class EcmaScriptDebugger
- Parameters:
using - The script to be injectedresponseExpected - The flag to enable/disable parsing response
- Returns:
- The raw result object if response is expected,
null otherwise
executeScript
public java.lang.Object executeScript(java.lang.String using,
boolean responseExpected,
int runtimeId)
- Overrides:
executeScript in class EcmaScriptDebugger
getObject
public java.lang.Integer getObject(java.lang.String using)
- Description copied from interface:
IEcmaScriptDebugger
- Gets the object id using a script
- Specified by:
getObject in interface IEcmaScriptDebugger- Overrides:
getObject in class EcmaScriptDebugger
- Parameters:
using - the script to find the object
- Returns:
- object id with the result
getObject
public java.lang.Integer getObject(java.lang.String using,
int runtimeId)
- Overrides:
getObject in class EcmaScriptDebugger
Copyright © 2011. All Rights Reserved.