Record Class ParserSpec
java.lang.Object
java.lang.Record
org.ek9lang.compiler.tokenizer.ParserSpec
public record ParserSpec(Source src, InputStream inputStream, ErrorListener errorListener, TokenConsumptionListener listener)
extends Record
To be used to construct a parser, with a lexer.
-
Constructor Summary
ConstructorsConstructorDescriptionParserSpec(Source src, InputStream inputStream, ErrorListener errorListener, TokenConsumptionListener listener) Creates an instance of aParserSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorListenerrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinputStreamrecord component.listener()Returns the value of thelistenerrecord component.src()Returns the value of thesrcrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParserSpec
public ParserSpec(Source src, InputStream inputStream, ErrorListener errorListener, TokenConsumptionListener listener) Creates an instance of aParserSpecrecord class.- Parameters:
src- the value for thesrcrecord componentinputStream- the value for theinputStreamrecord componenterrorListener- the value for theerrorListenerrecord componentlistener- the value for thelistenerrecord 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). -
src
Returns the value of thesrcrecord component.- Returns:
- the value of the
srcrecord component
-
inputStream
Returns the value of theinputStreamrecord component.- Returns:
- the value of the
inputStreamrecord component
-
errorListener
Returns the value of theerrorListenerrecord component.- Returns:
- the value of the
errorListenerrecord component
-
listener
Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-