public final class InspectorRuntime extends RuntimeDomain
eventHandler| Constructor and Description |
|---|
InspectorRuntime(InspectorExecutionContext context) |
| Modifier and Type | Method and Description |
|---|---|
Params |
callFunctionOn(String objectId,
String functionDeclaration,
com.oracle.truffle.tools.utils.json.JSONArray arguments,
boolean silent,
boolean returnByValue,
boolean generatePreview,
boolean awaitPromise,
int executionContextId,
String objectGroup) |
Params |
compileScript(String expression,
String sourceURL,
boolean persistScript,
long executionContextId) |
void |
doDisable() |
void |
doEnable() |
Params |
evaluate(String expression,
String objectGroup,
boolean includeCommandLineAPI,
boolean silent,
int contextId,
boolean returnByValue,
boolean generatePreview,
boolean awaitPromise) |
Params |
getProperties(String objectId,
boolean ownProperties,
boolean accessorPropertiesOnly,
boolean generatePreview) |
void |
notifyConsoleAPICalled(String type,
Object text) |
void |
releaseObject(String objectId) |
void |
releaseObjectGroup(String objectGroup) |
void |
runIfWaitingForDebugger(InspectServerSession.CommandPostProcessor postProcessor) |
void |
setCustomObjectFormatterEnabled(boolean enabled) |
executionContextCreated, executionContextDestroyeddisable, enable, isEnabled, notifyDisabled, setEventHandlerpublic InspectorRuntime(InspectorExecutionContext context)
public Params compileScript(String expression, String sourceURL, boolean persistScript, long executionContextId) throws CommandProcessException
compileScript in class RuntimeDomainCommandProcessExceptionpublic Params evaluate(String expression, String objectGroup, boolean includeCommandLineAPI, boolean silent, int contextId, boolean returnByValue, boolean generatePreview, boolean awaitPromise) throws CommandProcessException
evaluate in class RuntimeDomainCommandProcessExceptionpublic Params getProperties(String objectId, boolean ownProperties, boolean accessorPropertiesOnly, boolean generatePreview) throws CommandProcessException
getProperties in class RuntimeDomainCommandProcessExceptionpublic Params callFunctionOn(String objectId, String functionDeclaration, com.oracle.truffle.tools.utils.json.JSONArray arguments, boolean silent, boolean returnByValue, boolean generatePreview, boolean awaitPromise, int executionContextId, String objectGroup) throws CommandProcessException
callFunctionOn in class RuntimeDomainCommandProcessExceptionpublic void releaseObject(String objectId)
releaseObject in class RuntimeDomainpublic void releaseObjectGroup(String objectGroup)
releaseObjectGroup in class RuntimeDomainpublic void runIfWaitingForDebugger(InspectServerSession.CommandPostProcessor postProcessor)
runIfWaitingForDebugger in class RuntimeDomainpublic void notifyConsoleAPICalled(String type, Object text)
notifyConsoleAPICalled in class RuntimeDomainpublic void setCustomObjectFormatterEnabled(boolean enabled)
setCustomObjectFormatterEnabled in class RuntimeDomain