Record Class ClaferLexer.Result
java.lang.Object
java.lang.Record
org.clafer.frontend.ClaferLexer.Result
- Record Components:
tokens- the tokens for the parser, ending withTokenKind.EOFothers- the comments and escapes, in orderdiagnostics- the errors, in order
- Enclosing class:
ClaferLexer
public static record ClaferLexer.Result(List<Token> tokens, List<Token> others, List<Diagnostic> diagnostics)
extends Record
The tokens of a model.
-
Constructor Summary
Constructors -
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.others()Returns the value of theothersrecord component.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 componentothers- the value for theothersrecord 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
-
others
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-