public class Diagnostic extends Object
Diagnostic.Builder
to create an instance.Modifier and Type | Class and Description |
---|---|
static class |
Diagnostic.Builder
The build for the Diagnostic.
|
static interface |
Diagnostic.LazyCodeActions
Interface to compute Diagnostic's CodeActions lazily.
|
static interface |
Diagnostic.ReporterControl
Allows to trigger diagnostics collection.
|
static class |
Diagnostic.Severity |
Modifier and Type | Method and Description |
---|---|
static Diagnostic.ReporterControl |
findReporterControl(Lookup context,
FileObject file)
Returns a Control object appropriate for the context and the file.
|
Diagnostic.LazyCodeActions |
getActions()
The actions associated with the diagnostic.
|
String |
getCode()
The code of the diagnostic.
|
String |
getDescription()
The description of the diagnostic.
|
Position |
getEndPosition()
The end offset of the diagnostic.
|
Diagnostic.Severity |
getSeverity()
The severity of the diagnostic.
|
Position |
getStartPosition()
The start offset of the diagnostic.
|
public Position getStartPosition()
public Position getEndPosition()
public String getDescription()
public Diagnostic.Severity getSeverity()
public String getCode()
public Diagnostic.LazyCodeActions getActions()
public static Diagnostic.ReporterControl findReporterControl(@NullAllowed Lookup context, @NullAllowed FileObject file)
null
if no suitable LSP can be found.context
- the Optional. Context used to identify the LSP client. If null
,
the default Lookup will be used.file
- Optional. The file or folder whose diagnostic will be reported.