Record Class ConstrainedConstructionResolver.Site
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.ConstrainedConstructionResolver.Site
- Record Components:
constructorParamType- the RESOLVED constructor's single parameter type — i.e. the base type the argument was actually matched against. Read from resolution rather than re-derived, so a consumer can tell whether an implicit promotion was applied to reach it (e.g. an Integer literal reaching aFloat-based constraint).
- Enclosing class:
ConstrainedConstructionResolver
static record ConstrainedConstructionResolver.Site(AggregateSymbol constrainedType, ConstraintExpr constraint, ISymbol argSymbol, ISymbol constructorParamType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSite(AggregateSymbol constrainedType, ConstraintExpr constraint, ISymbol argSymbol, ISymbol constructorParamType) Creates an instance of aSiterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargSymbolrecord component.Returns the value of theconstrainedTyperecord component.Returns the value of theconstraintrecord component.Returns the value of theconstructorParamTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Site
Site(AggregateSymbol constrainedType, ConstraintExpr constraint, ISymbol argSymbol, ISymbol constructorParamType) Creates an instance of aSiterecord class.- Parameters:
constrainedType- the value for theconstrainedTyperecord componentconstraint- the value for theconstraintrecord componentargSymbol- the value for theargSymbolrecord componentconstructorParamType- the value for theconstructorParamTyperecord 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). -
constrainedType
Returns the value of theconstrainedTyperecord component.- Returns:
- the value of the
constrainedTyperecord component
-
constraint
Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-
argSymbol
Returns the value of theargSymbolrecord component.- Returns:
- the value of the
argSymbolrecord component
-
constructorParamType
Returns the value of theconstructorParamTyperecord component.- Returns:
- the value of the
constructorParamTyperecord component
-