Record Class ExplicitParser.Result
java.lang.Object
java.lang.Record
org.clafer.frontend.ExplicitParser.Result
- Record Components:
model- the tree, with what could be readdiagnostics- the errors of the lexer and the parser, by position; empty if the model was read completely
- Enclosing class:
ExplicitParser
public static record ExplicitParser.Result(Ir.Model model, List<Diagnostic> diagnostics)
extends Record
A parsed model.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(Ir.Model model, List<Diagnostic> diagnostics) 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.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
model- the value for themodelrecord componentdiagnostics- the value for thediagnosticsrecord 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. 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
-