Record Class Token
java.lang.Object
java.lang.Record
org.clafer.frontend.Token
- Record Components:
kind- the kindtext- the source text of the tokenspan- where the token is
A token: its kind, its text exactly as written, and where it is.
-
Constructor Summary
ConstructorsConstructorDescriptionToken(TokenKind kind, String text, SourceSpan span) Creates an instance of aTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleankind()Returns the value of thekindrecord component.span()Returns the value of thespanrecord component.text()Returns the value of thetextrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Token
-
-
Method Details
-
isSymbol
-
isWord
-
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). -
kind
-
text
-
span
-