Package org.eclipse.lsp4j
Class DiagnosticRelatedInformation
- java.lang.Object
-
- org.eclipse.lsp4j.DiagnosticRelatedInformation
-
public class DiagnosticRelatedInformation extends java.lang.ObjectRepresents 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 Summary
Constructors Constructor Description DiagnosticRelatedInformation()DiagnosticRelatedInformation(Location location, java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)LocationgetLocation()The location of this related diagnostic information.java.lang.StringgetMessage()The message of this related diagnostic information.inthashCode()voidsetLocation(Location location)The location of this related diagnostic information.voidsetMessage(java.lang.String message)The message of this related diagnostic information.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-