Interface Visualizer
- All Known Implementing Classes:
DefaultVisualizer
public interface Visualizer
Visualization services for the benefit of instrumentation-based tools, possibly specialized for
each guest language and possibly specialized for relevant information from the underlying Truffle
implementation.
Disclaimer: experimental interface under development.
-
Method Summary
Modifier and TypeMethodDescriptiondisplayCallTargetName
(CallTarget callTarget) The name of the method.displayIdentifier
(FrameSlot slot) Converts a slot identifier in the guest language to a display string.displayMethodName
(Node node) Describes the name of the method containing a node.displaySourceLocation
(Node node) A short description of a source location in terms of source + line number.displayValue
(ExecutionContext context, Object value) Converts a value in the guest language to a display string.Gets a printer for Truffle ASTs, possibly specialized to be helpful for a specific guest language implementation.
-
Method Details
-
getASTPrinter
ASTPrinter getASTPrinter()Gets a printer for Truffle ASTs, possibly specialized to be helpful for a specific guest language implementation. -
displaySourceLocation
A short description of a source location in terms of source + line number. -
displayMethodName
Describes the name of the method containing a node. -
displayCallTargetName
The name of the method. -
displayValue
Converts a value in the guest language to a display string. -
displayIdentifier
Converts a slot identifier in the guest language to a display string.
-