Class OutputEvent.EventBody

java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.OutputEvent.EventBody
Enclosing class:
OutputEvent

public static class OutputEvent.EventBody extends JSONBase
  • Method Details

    • getCategory

      public String getCategory()
      The output category. If not specified, 'console' is assumed. Values: 'console', 'stdout', 'stderr', 'telemetry', etc.
    • setCategory

      public OutputEvent.EventBody setCategory(String category)
    • getOutput

      public String getOutput()
      The output to report.
    • setOutput

      public OutputEvent.EventBody setOutput(String output)
    • getGroup

      public String getGroup()
      Support for keeping an output log organized by grouping related messages. 'start': Start a new group in expanded mode. Subsequent output events are members of the group and should be shown indented. The 'output' attribute becomes the name of the group and is not indented. 'startCollapsed': Start a new group in collapsed mode. Subsequent output events are members of the group and should be shown indented (as soon as the group is expanded). The 'output' attribute becomes the name of the group and is not indented. 'end': End the current group and decreases the indentation of subsequent output events. A non empty 'output' attribute is shown as the unindented end of the group.
    • setGroup

      public OutputEvent.EventBody setGroup(String group)
    • getVariablesReference

      public Integer getVariablesReference()
      If an attribute 'variablesReference' exists and its value is > 0, the output contains objects which can be retrieved by passing 'variablesReference' to the 'variables' request. The value should be less than or equal to 2147483647 (2^31 - 1).
    • setVariablesReference

      public OutputEvent.EventBody setVariablesReference(Integer variablesReference)
    • getSource

      public Source getSource()
      An optional source location where the output was produced.
    • setSource

      public OutputEvent.EventBody setSource(Source source)
    • getLine

      public Integer getLine()
      An optional source location line where the output was produced.
    • setLine

      public OutputEvent.EventBody setLine(Integer line)
    • getColumn

      public Integer getColumn()
      An optional source location column where the output was produced.
    • setColumn

      public OutputEvent.EventBody setColumn(Integer column)
    • getData

      public Object getData()
      Optional data to report. For the 'telemetry' category the data will be sent to telemetry, for the other categories the data is shown in JSON format.
    • setData

      public OutputEvent.EventBody setData(Object data)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static OutputEvent.EventBody create(String output)