Record Class InPlaceWrite
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.sharing.InPlaceWrite
- Record Components:
occurrence- the written occurrence: an identifier, orthisas the target of an assignmentwritten- the variable written, or null forthistype- the type of the object written
public record InPlaceWrite(org.antlr.v4.runtime.ParserRuleContext occurrence, ISymbol written, ISymbol type)
extends Record
One in-place write whose reach
ReachOfInPlaceWrite reads.-
Constructor Summary
ConstructorsConstructorDescriptionInPlaceWrite(org.antlr.v4.runtime.ParserRuleContext occurrence, ISymbol written, ISymbol type) Creates an instance of aInPlaceWriterecord 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.ParserRuleContextReturns the value of theoccurrencerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.written()Returns the value of thewrittenrecord component.
-
Constructor Details
-
InPlaceWrite
public InPlaceWrite(org.antlr.v4.runtime.ParserRuleContext occurrence, ISymbol written, ISymbol type) Creates an instance of aInPlaceWriterecord class.- Parameters:
occurrence- the value for theoccurrencerecord componentwritten- the value for thewrittenrecord componenttype- the value for thetyperecord 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). -
occurrence
public org.antlr.v4.runtime.ParserRuleContext occurrence()Returns the value of theoccurrencerecord component.- Returns:
- the value of the
occurrencerecord component
-
written
-
type
-