Package com.evolveum.axiom.lang.antlr
Record Class RecognitionsSet
java.lang.Object
java.lang.Record
com.evolveum.axiom.lang.antlr.RecognitionsSet
public record RecognitionsSet(int startState, org.antlr.v4.runtime.misc.IntervalSet recognizedTokens)
extends Record
Created by Dominik.
-
Constructor Summary
ConstructorsConstructorDescriptionRecognitionsSet(int startState, org.antlr.v4.runtime.misc.IntervalSet recognizedTokens) Creates an instance of aRecognitionsSetrecord 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.org.antlr.v4.runtime.misc.IntervalSetReturns the value of therecognizedTokensrecord component.intReturns the value of thestartStaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecognitionsSet
public RecognitionsSet(int startState, org.antlr.v4.runtime.misc.IntervalSet recognizedTokens) Creates an instance of aRecognitionsSetrecord class.- Parameters:
startState- the value for thestartStaterecord componentrecognizedTokens- the value for therecognizedTokensrecord component
-
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
startState
public int startState()Returns the value of thestartStaterecord component.- Returns:
- the value of the
startStaterecord component
-
recognizedTokens
public org.antlr.v4.runtime.misc.IntervalSet recognizedTokens()Returns the value of therecognizedTokensrecord component.- Returns:
- the value of the
recognizedTokensrecord component
-