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.StringdisplayCallTargetName(CallTarget callTarget)The name of the method.java.lang.StringdisplayIdentifier(FrameSlot slot)Converts a slot identifier in the guest language to a display string.java.lang.StringdisplayMethodName(Node node)Describes the name of the method containing a node.java.lang.StringdisplaySourceLocation(Node node)A short description of a source location in terms of source + line number.java.lang.StringdisplayValue(ExecutionContext context, java.lang.Object value)Converts a value in the guest language to a display string.ASTPrintergetASTPrinter()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:VisualizerGets a printer for Truffle ASTs, possibly specialized to be helpful for a specific guest language implementation.- Specified by:
getASTPrinterin interfaceVisualizer
-
displaySourceLocation
public java.lang.String displaySourceLocation(Node node)
Description copied from interface:VisualizerA short description of a source location in terms of source + line number.- Specified by:
displaySourceLocationin interfaceVisualizer
-
displayMethodName
public java.lang.String displayMethodName(Node node)
Description copied from interface:VisualizerDescribes the name of the method containing a node.- Specified by:
displayMethodNamein interfaceVisualizer
-
displayCallTargetName
public java.lang.String displayCallTargetName(CallTarget callTarget)
Description copied from interface:VisualizerThe name of the method.- Specified by:
displayCallTargetNamein interfaceVisualizer
-
displayValue
public java.lang.String displayValue(ExecutionContext context, java.lang.Object value)
Description copied from interface:VisualizerConverts a value in the guest language to a display string.- Specified by:
displayValuein interfaceVisualizer
-
displayIdentifier
public java.lang.String displayIdentifier(FrameSlot slot)
Description copied from interface:VisualizerConverts a slot identifier in the guest language to a display string.- Specified by:
displayIdentifierin interfaceVisualizer
-
-