| Modifier and Type | Field and Description |
|---|---|
| private Either | code
The diagnostic's code. |
| private DiagnosticCodeDescription | codeDescription
An optional property to describe the error code. |
| private Object | data
A data entry field that is preserved between a `textDocument/publishDiagnostics` notification and `textDocument/codeAction` request. |
| private String | message
The diagnostic's message. |
| private Range | range
The range at which the message applies |
| private List | relatedInformation
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property. |
| private DiagnosticSeverity | severity
The diagnostic's severity. |
| private String | source
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. |
| private List | tags
Additional metadata about the diagnostic. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Diagnostic(final Range range, final String message, final DiagnosticSeverity severity, final String source)
|
| public | Diagnostic(final Range range, final String message, final DiagnosticSeverity severity, final String source, final String code)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Either | |
| public DiagnosticCodeDescription | |
| public Object | getData()
A data entry field that is preserved between a `textDocument/publishDiagnostics` notification and `textDocument/codeAction` request. |
| public String | |
| public Range | |
| public List | getRelatedInformation()
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property. |
| public DiagnosticSeverity | |
| public String | getSource()
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. |
| public List | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | setCodeDescription(final DiagnosticCodeDescription codeDescription)
An optional property to describe the error code. |
| public void | |
| public void | |
| public void | |
| public void | setRelatedInformation(final List<DiagnosticRelatedInformation> relatedInformation)
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property. |
| public void | |
| public void | |
| public void | |
| public String |
| code | back to summary |
|---|---|
| private Either<String, Integer> code The diagnostic's code. Can be omitted. | |
| codeDescription | back to summary |
|---|---|
| private DiagnosticCodeDescription codeDescription An optional property to describe the error code. Since 3.16.0 | |
| data | back to summary |
|---|---|
| private Object data A data entry field that is preserved between a `textDocument/publishDiagnostics` notification and `textDocument/codeAction` request. Since 3.16.0 | |
| message | back to summary |
|---|---|
| private String message The diagnostic's message. | |
| range | back to summary |
|---|---|
| private Range range The range at which the message applies | |
| relatedInformation | back to summary |
|---|---|
| private List<DiagnosticRelatedInformation> relatedInformation An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property. Since 3.7.0 | |
| severity | back to summary |
|---|---|
| private DiagnosticSeverity severity The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint. | |
| source | back to summary |
|---|---|
| private String source A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. | |
| tags | back to summary |
|---|---|
| private List<DiagnosticTag> tags Additional metadata about the diagnostic. Since 3.15.0 | |
| Diagnostic | back to summary |
|---|---|
| public Diagnostic() | |
| Diagnostic | back to summary |
|---|---|
| public Diagnostic(final Range range, final String message) | |
| Diagnostic | back to summary |
|---|---|
| public Diagnostic(final Range range, final String message, final DiagnosticSeverity severity, final String source) | |
| Diagnostic | back to summary |
|---|---|
| public Diagnostic(final Range range, final String message, final DiagnosticSeverity severity, final String source, final String code) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getCode | back to summary |
|---|---|
| public Either The diagnostic's code. Can be omitted. | |
| getCodeDescription | back to summary |
|---|---|
| public DiagnosticCodeDescription getCodeDescription() An optional property to describe the error code. Since 3.16.0 | |
| getData | back to summary |
|---|---|
| public Object getData() A data entry field that is preserved between a `textDocument/publishDiagnostics` notification and `textDocument/codeAction` request. Since 3.16.0 | |
| getMessage | back to summary |
|---|---|
| public String getMessage() The diagnostic's message.
| |
| getRange | back to summary |
|---|---|
| public Range getRange() The range at which the message applies
| |
| getRelatedInformation | back to summary |
|---|---|
| public List An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property. Since 3.7.0 | |
| getSeverity | back to summary |
|---|---|
| public DiagnosticSeverity getSeverity() The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint. | |
| getSource | back to summary |
|---|---|
| public String getSource() A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. | |
| getTags | back to summary |
|---|---|
| public List Additional metadata about the diagnostic. Since 3.15.0 | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setCode | back to summary |
|---|---|
| public void setCode(final Either<String, Integer> code) The diagnostic's code. Can be omitted. | |
| setCode | back to summary |
|---|---|
| public void setCode(final String code) | |
| setCode | back to summary |
|---|---|
| public void setCode(final Integer code) | |
| setCodeDescription | back to summary |
|---|---|
| public void setCodeDescription(final DiagnosticCodeDescription codeDescription) An optional property to describe the error code. Since 3.16.0 | |
| setData | back to summary |
|---|---|
| public void setData(final Object data) A data entry field that is preserved between a `textDocument/publishDiagnostics` notification and `textDocument/codeAction` request. Since 3.16.0 | |
| setMessage | back to summary |
|---|---|
| public void setMessage(final String message) The diagnostic's message. | |
| setRange | back to summary |
|---|---|
| public void setRange(final Range range) The range at which the message applies | |
| setRelatedInformation | back to summary |
|---|---|
| public void setRelatedInformation(final List<DiagnosticRelatedInformation> relatedInformation) An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property. Since 3.7.0 | |
| setSeverity | back to summary |
|---|---|
| public void setSeverity(final DiagnosticSeverity severity) The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint. | |
| setSource | back to summary |
|---|---|
| public void setSource(final String source) A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. | |
| setTags | back to summary |
|---|---|
| public void setTags(final List<DiagnosticTag> tags) Additional metadata about the diagnostic. Since 3.15.0 | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |