Class DisassembledInstruction

java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.DisassembledInstruction

public class DisassembledInstruction extends JSONBase
Represents a single disassembled instruction.
  • Method Details

    • getAddress

      public String getAddress()
      The address of the instruction. Treated as a hex value if prefixed with '0x', or as a decimal value otherwise.
    • setAddress

      public DisassembledInstruction setAddress(String address)
    • getInstructionBytes

      public String getInstructionBytes()
      Optional raw bytes representing the instruction and its operands, in an implementation-defined format.
    • setInstructionBytes

      public DisassembledInstruction setInstructionBytes(String instructionBytes)
    • getInstruction

      public String getInstruction()
      Text representing the instruction and its operands, in an implementation-defined format.
    • setInstruction

      public DisassembledInstruction setInstruction(String instruction)
    • getSymbol

      public String getSymbol()
      Name of the symbol that corresponds with the location of this instruction, if any.
    • setSymbol

      public DisassembledInstruction setSymbol(String symbol)
    • getLocation

      public Source getLocation()
      Source location that corresponds to this instruction, if any. Should always be set (if available) on the first instruction returned, but can be omitted afterwards if this instruction maps to the same source file as the previous instruction.
    • setLocation

      public DisassembledInstruction setLocation(Source location)
    • getLine

      public Integer getLine()
      The line within the source location that corresponds to this instruction, if any.
    • setLine

      public DisassembledInstruction setLine(Integer line)
    • getColumn

      public Integer getColumn()
      The column within the line that corresponds to this instruction, if any.
    • setColumn

      public DisassembledInstruction setColumn(Integer column)
    • getEndLine

      public Integer getEndLine()
      The end line of the range that corresponds to this instruction, if any.
    • setEndLine

      public DisassembledInstruction setEndLine(Integer endLine)
    • getEndColumn

      public Integer getEndColumn()
      The end column of the range that corresponds to this instruction, if any.
    • setEndColumn

      public DisassembledInstruction setEndColumn(Integer endColumn)
    • equals

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

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

      public static DisassembledInstruction create(String address, String instruction)