Package com.evolveum.axiom.lang.antlr
Record Class TokenCustom
java.lang.Object
java.lang.Record
com.evolveum.axiom.lang.antlr.TokenCustom
Created by Dominik.
Record represent token (symbol type) with specific properties.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTokenCustom
(int type, TokenCustom.IdentifierContext identifierContext) Creates an instance of aTokenCustom
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.Returns the value of theidentifierContext
record component.final String
toString()
Returns a string representation of this record class.int
type()
Returns the value of thetype
record component.
-
Constructor Details
-
TokenCustom
Creates an instance of aTokenCustom
record class.- Parameters:
type
- the value for thetype
record componentidentifierContext
- the value for theidentifierContext
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
type
public int type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
identifierContext
Returns the value of theidentifierContext
record component.- Returns:
- the value of the
identifierContext
record component
-