Package ch.so.agi.gretl.lsp.analysis
Record Class AnalysisResult
java.lang.Object
java.lang.Record
ch.so.agi.gretl.lsp.analysis.AnalysisResult
public record AnalysisResult(TextDocument document, GretlScript script, GretlMetadata metadata, List<org.eclipse.lsp4j.Diagnostic> diagnostics)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnalysisResult(TextDocument document, GretlScript script, GretlMetadata metadata, List<org.eclipse.lsp4j.Diagnostic> diagnostics) Creates an instance of aAnalysisResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.lsp4j.Diagnostic>Returns the value of thediagnosticsrecord component.document()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.script()Returns the value of thescriptrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnalysisResult
public AnalysisResult(TextDocument document, GretlScript script, GretlMetadata metadata, List<org.eclipse.lsp4j.Diagnostic> diagnostics) Creates an instance of aAnalysisResultrecord class.- Parameters:
document- the value for thedocumentrecord componentscript- the value for thescriptrecord componentmetadata- the value for themetadatarecord componentdiagnostics- the value for thediagnosticsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
script
Returns the value of thescriptrecord component.- Returns:
- the value of the
scriptrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-