Record Class SymbolWrites.Write
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.SymbolWrites.Write
- Record Components:
target- the reference that is written (its node is the name's identifier)operator- the operator text::=,:,+=,++,:=?, ...
- Enclosing class:
SymbolWrites
public static record SymbolWrites.Write(RecordedSymbols.Reference target, String operator)
extends Record
One write.
-
Constructor Summary
ConstructorsConstructorDescriptionWrite(RecordedSymbols.Reference target, String operator) Creates an instance of aWriterecord 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.booleanA store of a new value (::==:=?) rather than a mutation.intline()1-based line of the write.operator()Returns the value of theoperatorrecord component.target()Returns the value of thetargetrecord component.org.antlr.v4.runtime.Tokentoken()The written name's token (itsgetTokenIndex()orders writes against other positions).final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
token
public org.antlr.v4.runtime.Token token()The written name's token (itsgetTokenIndex()orders writes against other positions). -
line
public int line()1-based line of the write. -
isAssignment
public boolean isAssignment()A store of a new value (::==:=?) rather than a mutation. -
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). -
target
-
operator
-