public final class RelatedLocation extends Object
Diagnostic.
role is a stable, non-localized machine value such as
first-marker; message is user-visible explanatory text.
API status: read-only consumption of analyzer-produced related locations is part of Join Analysis Consumption Profile v1. Constructors and factories are producer-oriented and are outside that profile.
| Constructor and Description |
|---|
RelatedLocation(String role,
String message,
SourceSpan span) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getMessage() |
String |
getRole() |
SourceSpan |
getSpan() |
int |
hashCode() |
static RelatedLocation |
of(String role,
String message,
SourceSpan span) |
String |
toString() |
public RelatedLocation(String role, String message, SourceSpan span)
public static RelatedLocation of(String role, String message, SourceSpan span)
public String getMessage()
public SourceSpan getSpan()