Record Class ToAst.Result
java.lang.Object
java.lang.Record
org.clafer.ast.ToAst.Result
- Record Components:
model- the modelobjectives- the objectivesassertions- the assertionsdiagnostics- the errors, empty if the model is complete
- Enclosing class:
ToAst
public static record ToAst.Result(AstModel model, Objective[] objectives, Assertion[] assertions, List<Diagnostic> diagnostics)
extends Record
A model built from an explicit model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassertionsrecord component.Returns 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.Returns the value of theobjectivesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(AstModel model, Objective[] objectives, Assertion[] assertions, List<Diagnostic> diagnostics) Creates an instance of aResultrecord class.- Parameters:
model- the value for themodelrecord componentobjectives- the value for theobjectivesrecord componentassertions- the value for theassertionsrecord 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
-
objectives
Returns the value of theobjectivesrecord component.- Returns:
- the value of the
objectivesrecord component
-
assertions
Returns the value of theassertionsrecord component.- Returns:
- the value of the
assertionsrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-