java.lang.Object
swim.codec.Diagnostic
- All Implemented Interfaces:
Display
Informational message attached to an input location.
-
Method Summary
Modifier and TypeMethodDescriptioncause()
Returns theDiagnostic
cause of this diagnostic, forming a linked chain of diagnostics, ornull
if this diagnostic has no cause.static Diagnostic
static Diagnostic
static Diagnostic
static Diagnostic
static Diagnostic
static Diagnostic
create
(Input input, Tag tag, Severity severity, Diagnostic cause) <T> Output<T>
Writes a human readable, display-formatted string representation of this object tooutput
.static Diagnostic
static Diagnostic
static Diagnostic
expected
(int expected, Input input, String note, Diagnostic cause) static Diagnostic
expected
(int expected, Input input, Diagnostic cause) static Diagnostic
static Diagnostic
static Diagnostic
expected
(int expected, Input input, Severity severity, String note, Diagnostic cause) static Diagnostic
expected
(int expected, Input input, Severity severity, Diagnostic cause) static Diagnostic
static Diagnostic
static Diagnostic
expected
(String expected, Input input, String note, Diagnostic cause) static Diagnostic
expected
(String expected, Input input, Diagnostic cause) static Diagnostic
static Diagnostic
static Diagnostic
static Diagnostic
expected
(String expected, Input input, Severity severity, Diagnostic cause) input()
Returns theInput
source to which this diagnostic is attached.message()
Returns the help message that describes this diagnostic.static Diagnostic
static Diagnostic
static Diagnostic
message
(String message, Input input, String note, Diagnostic cause) static Diagnostic
message
(String message, Input input, Diagnostic cause) static Diagnostic
static Diagnostic
static Diagnostic
static Diagnostic
message
(String message, Input input, Severity severity, Diagnostic cause) note()
Returns an informative comment on the source context to which this diagnostic is attached.severity()
Returns the level of importance of this diagnostic.tag()
Returns the annotated locationTag
in theinput
to which this diagnostic is attached.toString()
toString
(OutputSettings settings) static Diagnostic
unexpected
(Input input) static Diagnostic
unexpected
(Input input, String note) static Diagnostic
unexpected
(Input input, String note, Diagnostic cause) static Diagnostic
unexpected
(Input input, Diagnostic cause) static Diagnostic
unexpected
(Input input, Severity severity) static Diagnostic
unexpected
(Input input, Severity severity, String note) static Diagnostic
unexpected
(Input input, Severity severity, String note, Diagnostic cause) static Diagnostic
unexpected
(Input input, Severity severity, Diagnostic cause)
-
Method Details
-
input
Returns theInput
source to which this diagnostic is attached. -
tag
Returns the annotated locationTag
in theinput
to which this diagnostic is attached. -
severity
Returns the level of importance of this diagnostic. -
message
Returns the help message that describes this diagnostic. -
note
Returns an informative comment on the source context to which this diagnostic is attached. -
cause
Returns theDiagnostic
cause of this diagnostic, forming a linked chain of diagnostics, ornull
if this diagnostic has no cause. -
display
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
. -
toString
-
toString
-
create
public static Diagnostic create(Input input, Tag tag, Severity severity, String message, String note, Diagnostic cause) -
create
-
create
public static Diagnostic create(Input input, Tag tag, Severity severity, String message, Diagnostic cause) -
create
-
create
-
create
-
message
public static Diagnostic message(String message, Input input, Severity severity, String note, Diagnostic cause) -
message
-
message
-
message
-
message
-
message
-
message
-
message
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
expected
public static Diagnostic expected(int expected, Input input, Severity severity, String note, Diagnostic cause) -
expected
-
expected
-
expected
-
expected
-
expected
-
expected
-
expected
-
expected
public static Diagnostic expected(String expected, Input input, Severity severity, String note, Diagnostic cause) -
expected
-
expected
public static Diagnostic expected(String expected, Input input, Severity severity, Diagnostic cause) -
expected
-
expected
-
expected
-
expected
-
expected
-