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 are related to a diagnostics, e.g when duplicating a symbol in a scope.
    • Constructor Detail

      • DiagnosticRelatedInformation

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

      • getLocation

        @Pure
        public Location getLocation()
      • setLocation

        public void setLocation​(Location location)
      • getMessage

        @Pure
        public java.lang.String getMessage()
      • setMessage

        public void setMessage​(java.lang.String message)
      • toString

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

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

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