Record Class SyntaxProbe.Parsed
java.lang.Object
java.lang.Record
org.ek9lang.compiler.repair.SyntaxProbe.Parsed
- Enclosing class:
SyntaxProbe
public static record SyntaxProbe.Parsed(EK9Parser.CompilationUnitContext compilationUnit, org.antlr.v4.runtime.CommonTokenStream tokenStream)
extends Record
A parse tree and the token stream it came from (HIDDEN-channel comments included).
-
Constructor Summary
ConstructorsConstructorDescriptionParsed(EK9Parser.CompilationUnitContext compilationUnit, org.antlr.v4.runtime.CommonTokenStream tokenStream) Creates an instance of aParsedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilationUnitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.antlr.v4.runtime.CommonTokenStreamReturns the value of thetokenStreamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Parsed
public Parsed(EK9Parser.CompilationUnitContext compilationUnit, org.antlr.v4.runtime.CommonTokenStream tokenStream) Creates an instance of aParsedrecord class.- Parameters:
compilationUnit- the value for thecompilationUnitrecord componenttokenStream- the value for thetokenStreamrecord 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). -
compilationUnit
Returns the value of thecompilationUnitrecord component.- Returns:
- the value of the
compilationUnitrecord component
-
tokenStream
public org.antlr.v4.runtime.CommonTokenStream tokenStream()Returns the value of thetokenStreamrecord component.- Returns:
- the value of the
tokenStreamrecord component
-