Record Class InvalidExpressionException.Issue

java.lang.Object
java.lang.Record
io.github.brantunger.unruly.api.exception.InvalidExpressionException.Issue
Record Components:
severity - Whether the problem stops the expression compiling
line - The line the problem is on, counting from 1, or 0 if it isn't known
column - The column the problem is at, counting from 1, or 0 if it isn't known
message - What the problem is
All Implemented Interfaces:
Serializable
Enclosing class:
InvalidExpressionException

public static record InvalidExpressionException.Issue(InvalidExpressionException.Issue.Severity severity, int line, int column, String message) extends Record implements Serializable
One problem a language found in an expression.
See Also:
  • Constructor Details

  • Method Details

    • equals

      public final boolean equals(@Nullable Object other)
      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:
      other - the object with which to compare
      Returns:
      true if this object is the same as the other argument; false otherwise.
    • 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
    • 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
    • severity

      Returns the value of the severity record component.
      Returns:
      the value of the severity record component
    • line

      public int line()
      Returns the value of the line record component.
      Returns:
      the value of the line record component
    • column

      public int column()
      Returns the value of the column record component.
      Returns:
      the value of the column record component
    • message

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