Record Class McpCompilerService.McpDiagnostic
java.lang.Object
java.lang.Record
org.ek9lang.mcp.McpCompilerService.McpDiagnostic
- Enclosing class:
McpCompilerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.intcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.(package private) static McpCompilerService.McpDiagnosticfromError(String file, ErrorListener.ErrorDetails error, int errorLevel) (package private) static McpCompilerService.McpDiagnosticfromWarning(String file, ErrorListener.ErrorDetails warning) final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.message()Returns the value of themessagerecord component.Returns the value of therichExplanationrecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpDiagnostic
public McpDiagnostic(String file, int line, int column, String severity, String code, String message, String richExplanation) Creates an instance of aMcpDiagnosticrecord class.- Parameters:
file- the value for thefilerecord componentline- the value for thelinerecord componentcolumn- the value for thecolumnrecord componentseverity- the value for theseverityrecord componentcode- the value for thecoderecord componentmessage- the value for themessagerecord componentrichExplanation- the value for therichExplanationrecord component
-
-
Method Details
-
fromError
static McpCompilerService.McpDiagnostic fromError(String file, ErrorListener.ErrorDetails error, int errorLevel) -
fromWarning
static McpCompilerService.McpDiagnostic fromWarning(String file, ErrorListener.ErrorDetails warning) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
richExplanation
Returns the value of therichExplanationrecord component.- Returns:
- the value of the
richExplanationrecord component
-