Record Class Layout.Result
java.lang.Object
java.lang.Record
org.clafer.frontend.Layout.Result
- Record Components:
tokens- the tokens for the parser, ending withTokenKind.EOFdiagnostics- the errors
- Enclosing class:
Layout
The tokens with the layout made explicit.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(List<Token> tokens, 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.tokens()Returns the value of thetokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
tokens- the value for thetokensrecord 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). -
tokens
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-