public class Diagnostic
extends java.lang.Object
Constructor and Description |
---|
Diagnostic() |
Diagnostic(Range range,
java.lang.String message) |
Diagnostic(Range range,
java.lang.String message,
DiagnosticSeverity severity,
java.lang.String source) |
Diagnostic(Range range,
java.lang.String message,
DiagnosticSeverity severity,
java.lang.String source,
java.lang.String code) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Number> |
getCode()
The diagnostic's code.
|
DiagnosticCodeDescription |
getCodeDescription()
An optional property to describe the error code.
|
java.lang.Object |
getData()
A data entry field that is preserved between a `textDocument/publishDiagnostics`
notification and `textDocument/codeAction` request.
|
java.lang.String |
getMessage()
The diagnostic's message.
|
Range |
getRange()
The range at which the message applies
|
java.util.List<DiagnosticRelatedInformation> |
getRelatedInformation()
An array of related diagnostic information, e.g.
|
DiagnosticSeverity |
getSeverity()
The diagnostic's severity.
|
java.lang.String |
getSource()
A human-readable string describing the source of this diagnostic, e.g.
|
java.util.List<DiagnosticTag> |
getTags()
Additional metadata about the diagnostic.
|
int |
hashCode() |
void |
setCode(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Number> code)
The diagnostic's code.
|
void |
setCode(java.lang.Number code) |
void |
setCode(java.lang.String code) |
void |
setCodeDescription(DiagnosticCodeDescription codeDescription)
An optional property to describe the error code.
|
void |
setData(java.lang.Object data)
A data entry field that is preserved between a `textDocument/publishDiagnostics`
notification and `textDocument/codeAction` request.
|
void |
setMessage(java.lang.String message)
The diagnostic's message.
|
void |
setRange(Range range)
The range at which the message applies
|
void |
setRelatedInformation(java.util.List<DiagnosticRelatedInformation> relatedInformation)
An array of related diagnostic information, e.g.
|
void |
setSeverity(DiagnosticSeverity severity)
The diagnostic's severity.
|
void |
setSource(java.lang.String source)
A human-readable string describing the source of this diagnostic, e.g.
|
void |
setTags(java.util.List<DiagnosticTag> tags)
Additional metadata about the diagnostic.
|
java.lang.String |
toString() |
public Diagnostic()
public Diagnostic(Range range, java.lang.String message)
public Diagnostic(Range range, java.lang.String message, DiagnosticSeverity severity, java.lang.String source)
public Diagnostic(Range range, java.lang.String message, DiagnosticSeverity severity, java.lang.String source, java.lang.String code)
@Pure public Range getRange()
public void setRange(Range range)
@Pure public DiagnosticSeverity getSeverity()
public void setSeverity(DiagnosticSeverity severity)
@Pure public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Number> getCode()
public void setCode(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Number> code)
public void setCode(java.lang.String code)
public void setCode(java.lang.Number code)
@Pure public DiagnosticCodeDescription getCodeDescription()
public void setCodeDescription(DiagnosticCodeDescription codeDescription)
@Pure public java.lang.String getSource()
public void setSource(java.lang.String source)
@Pure public java.lang.String getMessage()
public void setMessage(java.lang.String message)
@Pure public java.util.List<DiagnosticTag> getTags()
public void setTags(java.util.List<DiagnosticTag> tags)
@Pure public java.util.List<DiagnosticRelatedInformation> getRelatedInformation()
public void setRelatedInformation(java.util.List<DiagnosticRelatedInformation> relatedInformation)
@Pure public java.lang.Object getData()
public void setData(java.lang.Object data)
@Pure public java.lang.String toString()
toString
in class java.lang.Object
@Pure public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@Pure public int hashCode()
hashCode
in class java.lang.Object