Record Class ToIr.Result
java.lang.Object
java.lang.Record
org.clafer.frontend.ToIr.Result
- Record Components:
model- the explicit IR, or an empty model if the model has errors before this passdiagnostics- the errors of the files, the parser, the checks, the symbols and this pass; an error without a position is at 1:1errors- the errors without a position, as the compiler gives them: of reading the files, and of the checks of the whole model (ModelChecks), e.g., clafers named after keywordsscopes- the scopes of the explicit model's scope file, if it has no errorsfiles- the files of the model, whose lines the diagnostics are innames- what the names refer to, for the language server, orNames.Noneif the model has errors before the resolver
- Enclosing class:
ToIr
public static record ToIr.Result(Ir.Model model, List<Diagnostic> diagnostics, List<String> errors, Optional<Scopes> scopes, ModelFiles files, Names names)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(Ir.Model model, List<Diagnostic> diagnostics, List<String> errors, Optional<Scopes> scopes, ModelFiles files, Names names) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.messages()model()Returns the value of themodelrecord component.names()Returns the value of thenamesrecord component.scopes()Returns the value of thescopesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(Ir.Model model, List<Diagnostic> diagnostics, List<String> errors, Optional<Scopes> scopes, ModelFiles files, Names names) Creates an instance of aResultrecord class.- Parameters:
model- the value for themodelrecord componentdiagnostics- the value for thediagnosticsrecord componenterrors- the value for theerrorsrecord componentscopes- the value for thescopesrecord componentfiles- the value for thefilesrecord componentnames- the value for thenamesrecord component
-
-
Method Details
-
messages
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
model
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-
errors
-
scopes
-
files
-
names
-