Package de.monticore.interpreter.util
Record Class SymbolAccessHandler.SymbolAccess
java.lang.Object
java.lang.Record
de.monticore.interpreter.util.SymbolAccessHandler.SymbolAccess
- Enclosing class:
SymbolAccessHandler
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolAccess(de.monticore.interpreter.calculations.MICalculation getter, Optional<de.monticore.interpreter.setters.MISetter> setter) Creates an instance of aSymbolAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.de.monticore.interpreter.calculations.MICalculationgetter()Returns the value of thegetterrecord component.final inthashCode()Returns a hash code value for this object.Optional<de.monticore.interpreter.setters.MISetter> setter()Returns the value of thesetterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SymbolAccess
public SymbolAccess(de.monticore.interpreter.calculations.MICalculation getter, Optional<de.monticore.interpreter.setters.MISetter> setter) Creates an instance of aSymbolAccessrecord class.- Parameters:
getter- the value for thegetterrecord componentsetter- the value for thesetterrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
getter
public de.monticore.interpreter.calculations.MICalculation getter()Returns the value of thegetterrecord component.- Returns:
- the value of the
getterrecord component
-
setter
Returns the value of thesetterrecord component.- Returns:
- the value of the
setterrecord component
-