Class CustomPreview
java.lang.Object
com.oracle.truffle.tools.chromeinspector.types.CustomPreview
Custom preview of an object through devtools formatter, which is registered as
devtoolsFormatters array on the global object. The array contains formatter objects,
which may have header, hasBody and body properties, whose
values are executables. The executables accept the object to format and an optional
context. The return value of header and body is a JsonML
[tag-name, attributes, element-list] tuple that is then converted into a DOM element
in the client UI. The return value of hasBody is just true or
false depending on whether the body should be shown, or not. The header
may return null if the formatter should not be applied on the object.
The element list may contain child template objects of the following form:
The following HTML tags are allowed: ["object", {"object": objectToInspect, "config": configObject}] The child element is
then created by applying formatter to objectToInspect and configObject.
div, span, ol, li, table, tr, td.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Objectvalue2JSON(com.oracle.truffle.api.debug.DebugValue value, InspectorExecutionContext context)
-
Method Details
-
value2JSON
public static Object value2JSON(com.oracle.truffle.api.debug.DebugValue value, InspectorExecutionContext context)
-