Record Class SleighUtils.SleighParseErrorEntry

java.lang.Object
java.lang.Record
ghidra.pcode.exec.SleighUtils.SleighParseErrorEntry
Record Components:
header - the header / title for the message
message - the detail message
start - the character position where the syntax error starts
stop - the character position where the syntax error ends
Enclosing class:
SleighUtils

public static record SleighUtils.SleighParseErrorEntry(String header, String message, int start, int stop) extends Record
A Sleigh parsing error
  • Constructor Details

    • SleighParseErrorEntry

      public SleighParseErrorEntry(String header, String message, int start, int stop)
      Creates an instance of a SleighParseErrorEntry record class.
      Parameters:
      header - the value for the header record component
      message - the value for the message record component
      start - the value for the start record component
      stop - the value for the stop record component
  • Method Details

    • fullMessage

      public String fullMessage()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • header

      public String header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • start

      public int start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • stop

      public int stop()
      Returns the value of the stop record component.
      Returns:
      the value of the stop record component