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 SummaryConstructorsConstructorDescriptionParserSpec(Source src, InputStream inputStream, ErrorListener errorListener, TokenConsumptionListener listener) Creates an instance of aParserSpecrecord class.
- 
Method SummaryModifier 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- 
ParserSpecpublic ParserSpec(Source src, InputStream inputStream, ErrorListener errorListener, TokenConsumptionListener listener) Creates an instance of aParserSpecrecord class.- Parameters:
- src- the value for the- srcrecord component
- inputStream- the value for the- inputStreamrecord component
- errorListener- the value for the- errorListenerrecord component
- listener- the value for the- listenerrecord component
 
 
- 
- 
Method Details- 
toString
- 
hashCode
- 
equalsIndicates 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).
- 
srcReturns the value of thesrcrecord component.- Returns:
- the value of the srcrecord component
 
- 
inputStreamReturns the value of theinputStreamrecord component.- Returns:
- the value of the inputStreamrecord component
 
- 
errorListenerReturns the value of theerrorListenerrecord component.- Returns:
- the value of the errorListenerrecord component
 
- 
listenerReturns the value of thelistenerrecord component.- Returns:
- the value of the listenerrecord component
 
 
-