Class DefaultVisualizer
- java.lang.Object
-
- com.oracle.truffle.api.instrument.impl.DefaultVisualizer
-
- All Implemented Interfaces:
Visualizer
public class DefaultVisualizer extends java.lang.Object implements Visualizer
-
-
Constructor Summary
Constructors Constructor Description DefaultVisualizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
displayCallTargetName(CallTarget callTarget)
The name of the method.java.lang.String
displayIdentifier(FrameSlot slot)
Converts a slot identifier in the guest language to a display string.java.lang.String
displayMethodName(Node node)
Describes the name of the method containing a node.java.lang.String
displaySourceLocation(Node node)
A short description of a source location in terms of source + line number.java.lang.String
displayValue(ExecutionContext context, java.lang.Object value)
Converts a value in the guest language to a display string.ASTPrinter
getASTPrinter()
Gets a printer for Truffle ASTs, possibly specialized to be helpful for a specific guest language implementation.
-
-
-
Method Detail
-
getASTPrinter
public ASTPrinter getASTPrinter()
Description copied from interface:Visualizer
Gets a printer for Truffle ASTs, possibly specialized to be helpful for a specific guest language implementation.- Specified by:
getASTPrinter
in interfaceVisualizer
-
displaySourceLocation
public java.lang.String displaySourceLocation(Node node)
Description copied from interface:Visualizer
A short description of a source location in terms of source + line number.- Specified by:
displaySourceLocation
in interfaceVisualizer
-
displayMethodName
public java.lang.String displayMethodName(Node node)
Description copied from interface:Visualizer
Describes the name of the method containing a node.- Specified by:
displayMethodName
in interfaceVisualizer
-
displayCallTargetName
public java.lang.String displayCallTargetName(CallTarget callTarget)
Description copied from interface:Visualizer
The name of the method.- Specified by:
displayCallTargetName
in interfaceVisualizer
-
displayValue
public java.lang.String displayValue(ExecutionContext context, java.lang.Object value)
Description copied from interface:Visualizer
Converts a value in the guest language to a display string.- Specified by:
displayValue
in interfaceVisualizer
-
displayIdentifier
public java.lang.String displayIdentifier(FrameSlot slot)
Description copied from interface:Visualizer
Converts a slot identifier in the guest language to a display string.- Specified by:
displayIdentifier
in interfaceVisualizer
-
-