Record Class MagicLiteralTracker.LiteralRecord
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.MagicLiteralTracker.LiteralRecord
- Enclosing class:
MagicLiteralTracker
-
Constructor Summary
ConstructorsConstructorDescriptionLiteralRecord(String literalText, String literalType, String filePath, org.antlr.v4.runtime.Token sourceToken) Creates an instance of aLiteralRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filePath()Returns the value of thefilePathrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theliteralTextrecord component.Returns the value of theliteralTyperecord component.org.antlr.v4.runtime.TokenReturns the value of thesourceTokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LiteralRecord
LiteralRecord(String literalText, String literalType, String filePath, org.antlr.v4.runtime.Token sourceToken) Creates an instance of aLiteralRecordrecord class.- Parameters:
literalText- the value for theliteralTextrecord componentliteralType- the value for theliteralTyperecord componentfilePath- the value for thefilePathrecord componentsourceToken- the value for thesourceTokenrecord 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). -
literalText
Returns the value of theliteralTextrecord component.- Returns:
- the value of the
literalTextrecord component
-
literalType
Returns the value of theliteralTyperecord component.- Returns:
- the value of the
literalTyperecord component
-
filePath
Returns the value of thefilePathrecord component.- Returns:
- the value of the
filePathrecord component
-
sourceToken
public org.antlr.v4.runtime.Token sourceToken()Returns the value of thesourceTokenrecord component.- Returns:
- the value of the
sourceTokenrecord component
-