public static final class Diagnostic.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
Diagnostic.Builder |
addActions(Diagnostic.LazyCodeActions actions)
Set the actions associated with the diagnostic.
|
Diagnostic |
build()
Create the
Diagnostic using the values set to the builder. |
static Diagnostic.Builder |
create(Position startPosition,
Position endPosition,
String description)
Create a new
Builder |
Diagnostic.Builder |
setCode(String code)
Set the code of the diagnostic.
|
Diagnostic.Builder |
setSeverity(Diagnostic.Severity severity)
Set the severity of the diagnostic.
|
public static Diagnostic.Builder create(Position startPosition, Position endPosition, String description)
BuilderstartOffset - the start offset of the diagnosticendOffset - the end offset of the diagnosticdescription - the description of the diagnosticpublic Diagnostic.Builder setSeverity(Diagnostic.Severity severity)
severity - severity of the diagnosticpublic Diagnostic.Builder setCode(String code)
code - code of the diagnosticpublic Diagnostic.Builder addActions(Diagnostic.LazyCodeActions actions)
actions - set the actions associated with the diagnosticpublic Diagnostic build()
Diagnostic using the values set to the builder.