Record Class ScriptDiagnostic
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.scripting.ScriptDiagnostic
- Record Components:
severity- The diagnostic severity.scriptId- The identifier of the affected script.source- The source location, when known.line- The one-based source line, or a negative value when unavailable.column- The one-based source column, or a negative value when unavailable.message- The human-readable diagnostic message.
public record ScriptDiagnostic(ScriptDiagnostic.Severity severity, String scriptId, String source, int line, int column, String message)
extends Record
A compile-time or runtime diagnostic associated with a script.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIndicates how a diagnostic should be presented to the user. -
Constructor Summary
ConstructorsConstructorDescriptionScriptDiagnostic(ScriptDiagnostic.Severity severity, String scriptId, String source, int line, int column, String message) Creates an instance of aScriptDiagnosticrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.message()Returns the value of themessagerecord component.scriptId()Returns the value of thescriptIdrecord component.severity()Returns the value of theseverityrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptDiagnostic
public ScriptDiagnostic(ScriptDiagnostic.Severity severity, String scriptId, String source, int line, int column, String message) Creates an instance of aScriptDiagnosticrecord class.- Parameters:
severity- the value for theseverityrecord componentscriptId- the value for thescriptIdrecord componentsource- the value for thesourcerecord componentline- the value for thelinerecord componentcolumn- the value for thecolumnrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
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. -
severity
-
scriptId
-
source
-
line
-
column
-
message
-