@Generated(value={"Immutables.generator","SMFParseErrorType"}) public final class SMFParseError extends Object implements SMFParseErrorType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFParseError.Builder
Builds instances of type
SMFParseError. |
| Modifier and Type | Method and Description |
|---|---|
static SMFParseError.Builder |
builder()
Creates a builder for
SMFParseError. |
static SMFParseError |
copyOf(SMFParseErrorType instance)
Creates an immutable copy of a
SMFParseErrorType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFParseError that have equal attribute values. |
Optional<Exception> |
exception() |
String |
fullMessage() |
int |
hashCode()
Computes a hash code from attributes:
lexical, message, exception. |
com.io7m.jlexing.core.LexicalPosition<URI> |
lexical() |
String |
message() |
static SMFParseError |
of(com.io7m.jlexing.core.LexicalPosition<URI> lexical,
String message,
Optional<Exception> exception)
Construct a new immutable
SMFParseError instance. |
String |
toString()
Prints the immutable value
SMFParseError with attribute values. |
SMFParseError |
withException(Exception value)
Copy the current immutable object by setting a present value for the optional
exception attribute. |
SMFParseError |
withException(Optional<? extends Exception> optional)
Copy the current immutable object by setting an optional value for the
exception attribute. |
SMFParseError |
withLexical(com.io7m.jlexing.core.LexicalPosition<URI> value)
Copy the current immutable object by setting a value for the
lexical attribute. |
SMFParseError |
withMessage(String value)
Copy the current immutable object by setting a value for the
message attribute. |
public com.io7m.jlexing.core.LexicalPosition<URI> lexical()
lexical in interface SMFParseErrorTypepublic String message()
message in interface SMFErrorTypemessage in interface SMFParseErrorTypemessage attributepublic Optional<Exception> exception()
exception in interface SMFErrorTypeexception in interface SMFParseErrorTypeexception attributepublic final SMFParseError withLexical(com.io7m.jlexing.core.LexicalPosition<URI> value)
lexical attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for lexicalthis objectpublic final SMFParseError withMessage(String value)
message attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for messagethis objectpublic final SMFParseError withException(Exception value)
exception attribute.value - The value for exceptionthis objectpublic final SMFParseError withException(Optional<? extends Exception> optional)
exception attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for exceptionthis objectpublic boolean equals(Object another)
SMFParseError that have equal attribute values.public int hashCode()
lexical, message, exception.public String toString()
SMFParseError with attribute values.public String fullMessage()
Returns a lazily initialized value of the fullMessage attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
fullMessage in interface SMFErrorTypefullMessage in interface SMFParseErrorTypel.name attributepublic static SMFParseError of(com.io7m.jlexing.core.LexicalPosition<URI> lexical, String message, Optional<Exception> exception)
SMFParseError instance.lexical - The value for the lexical attributemessage - The value for the message attributeexception - The value for the exception attributepublic static SMFParseError copyOf(SMFParseErrorType instance)
SMFParseErrorType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SMFParseError.Builder builder()
SMFParseError.Copyright © 2017 <code@io7m.com> http://io7m.com