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 |
setCodeDescription(URL codeDescription)
Set the URL, where the problem is described
|
Diagnostic.Builder |
setSeverity(Diagnostic.Severity severity)
Set the severity of the diagnostic.
|
public static Diagnostic.Builder create(Position startPosition, Position endPosition, String description)
Builder
startOffset
- 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 setCodeDescription(URL codeDescription)
codeDescription
- URL with problem descriptionpublic Diagnostic.Builder addActions(Diagnostic.LazyCodeActions actions)
actions
- set the actions associated with the diagnosticpublic Diagnostic build()
Diagnostic
using the values set to the builder.