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 Details

    • getASTPrinter

      ASTPrinter getASTPrinter()
      Gets a printer for Truffle ASTs, possibly specialized to be helpful for a specific guest language implementation.
    • displaySourceLocation

      String displaySourceLocation(Node node)
      A short description of a source location in terms of source + line number.
    • displayMethodName

      String displayMethodName(Node node)
      Describes the name of the method containing a node.
    • displayCallTargetName

      String displayCallTargetName(CallTarget callTarget)
      The name of the method.
    • displayValue

      String displayValue(ExecutionContext context, Object value)
      Converts a value in the guest language to a display string.
    • displayIdentifier

      String displayIdentifier(FrameSlot slot)
      Converts a slot identifier in the guest language to a display string.