Class EvaluateResponse.ResponseBody

java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.EvaluateResponse.ResponseBody
Enclosing class:
EvaluateResponse

public static class EvaluateResponse.ResponseBody extends JSONBase
  • Method Details

    • getResult

      public String getResult()
      The result of the evaluate request.
    • setResult

      public EvaluateResponse.ResponseBody setResult(String result)
    • getType

      public String getType()
      The optional type of the evaluate result. This attribute should only be returned by a debug adapter if the client has passed the value true for the 'supportsVariableType' capability of the 'initialize' request.
    • setType

      public EvaluateResponse.ResponseBody setType(String type)
    • getPresentationHint

      public VariablePresentationHint getPresentationHint()
      Properties of a evaluate result that can be used to determine how to render the result in the UI.
    • setPresentationHint

      public EvaluateResponse.ResponseBody setPresentationHint(VariablePresentationHint presentationHint)
    • getVariablesReference

      public int getVariablesReference()
      If variablesReference is > 0, the evaluate result is structured and its children can be retrieved by passing variablesReference to the VariablesRequest. The value should be less than or equal to 2147483647 (2^31 - 1).
    • setVariablesReference

      public EvaluateResponse.ResponseBody setVariablesReference(int variablesReference)
    • getNamedVariables

      public Integer getNamedVariables()
      The number of named child variables. The client can use this optional information to present the variables in a paged UI and fetch them in chunks. The value should be less than or equal to 2147483647 (2^31 - 1).
    • setNamedVariables

      public EvaluateResponse.ResponseBody setNamedVariables(Integer namedVariables)
    • getIndexedVariables

      public Integer getIndexedVariables()
      The number of indexed child variables. The client can use this optional information to present the variables in a paged UI and fetch them in chunks. The value should be less than or equal to 2147483647 (2^31 - 1).
    • setIndexedVariables

      public EvaluateResponse.ResponseBody setIndexedVariables(Integer indexedVariables)
    • getMemoryReference

      public String getMemoryReference()
      Optional memory reference to a location appropriate for this result. For pointer type eval results, this is generally a reference to the memory address contained in the pointer. This attribute should be returned by a debug adapter if the client has passed the value true for the 'supportsMemoryReferences' capability of the 'initialize' request.
    • setMemoryReference

      public EvaluateResponse.ResponseBody setMemoryReference(String memoryReference)
    • equals

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

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

      public static EvaluateResponse.ResponseBody create(String result, Integer variablesReference)