Record Class ConflictingTokens
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase1.ConflictingTokens
-
Constructor Summary
ConstructorsConstructorDescriptionConflictingTokens(IToken tokenInError, IToken firstUse, ISymbol symbol) Creates an instance of aConflictingTokensrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.firstUse()Returns the value of thefirstUserecord component.final inthashCode()Returns a hash code value for this object.symbol()Returns the value of thesymbolrecord component.Returns the value of thetokenInErrorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConflictingTokens
Creates an instance of aConflictingTokensrecord class.- Parameters:
tokenInError- the value for thetokenInErrorrecord componentfirstUse- the value for thefirstUserecord componentsymbol- the value for thesymbolrecord 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). -
tokenInError
Returns the value of thetokenInErrorrecord component.- Returns:
- the value of the
tokenInErrorrecord component
-
firstUse
Returns the value of thefirstUserecord component.- Returns:
- the value of the
firstUserecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-