Class DiagnosticRelatedInformation


  • public class DiagnosticRelatedInformation
    extends java.lang.Object
    Represents a related message and source code location for a diagnostic. This should be used to point to code locations that cause or related to a diagnostics, e.g when duplicating a symbol in a scope.

    Since 3.7.0

    • Constructor Detail

      • DiagnosticRelatedInformation

        public DiagnosticRelatedInformation()
      • DiagnosticRelatedInformation

        public DiagnosticRelatedInformation​(Location location,
                                            java.lang.String message)
    • Method Detail

      • getLocation

        public Location getLocation()
        The location of this related diagnostic information.
      • setLocation

        public void setLocation​(Location location)
        The location of this related diagnostic information.
      • getMessage

        public java.lang.String getMessage()
        The message of this related diagnostic information.
      • setMessage

        public void setMessage​(java.lang.String message)
        The message of this related diagnostic information.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object