public interface Problem
| Modifier and Type | Method and Description |
|---|---|
default java.util.List<Action> |
actions()
Actions (aka quick fixes) that are able to either fix or address the issue that is causing this
Problem.
|
java.lang.String |
category() |
default java.util.Optional<DiagnosticCode> |
diagnosticCode()
The unique code attached to the diagnostic being reported.
|
default java.util.List<DiagnosticRelatedInformation> |
diagnosticRelatedInforamation()
Deprecated.
use
diagnosticRelatedInformation() instead. |
default java.util.List<DiagnosticRelatedInformation> |
diagnosticRelatedInformation()
The possible releated information for the diagnostic being reported.
|
java.lang.String |
message() |
Position |
position() |
default java.util.Optional<java.lang.String> |
rendered()
If present, the string shown to the user when displaying this Problem.
|
Severity |
severity() |
java.lang.String category()
Severity severity()
java.lang.String message()
Position position()
default java.util.Optional<java.lang.String> rendered()
default java.util.Optional<DiagnosticCode> diagnosticCode()
NOTE: To avoid breaking compatibility we provide a default to account for older Scala versions that do not have codes.
@Deprecated default java.util.List<DiagnosticRelatedInformation> diagnosticRelatedInforamation()
diagnosticRelatedInformation() instead.default java.util.List<DiagnosticRelatedInformation> diagnosticRelatedInformation()
NOTE: To avoid breaking compatibility we provide a default to account for older Scala versions that do not have the concept of "related information".
default java.util.List<Action> actions()
For example given the following code:
trait Example:
def foo(): Unit
def bar(): Unit
class MyExample extends Example
You could expect this to have multiple actions attatched: