Class NoteTypeParameterOrdered
java.lang.Object
org.ek9lang.compiler.phase3.NoteTypeParameterOrdered
- All Implemented Interfaces:
BiConsumer<IAggregateSymbol, MethodSymbol>
final class NoteTypeParameterOrdered
extends Object
implements BiConsumer<IAggregateSymbol, MethodSymbol>
Records, on a conceptual
T, that the body being resolved compares its values with <=>
(item <=> other.item over item as T?) - one ordering step (D89, D91 step 4). Written in the generic's
own hand-written <=>, or in a body that <=> reaches through calls (NoteOrderingThroughCall),
it makes that <=> only as total as T's, which is judged where T is given its type (read by
TypeParameterOrderedInOwnComparison, judged by phase4/ParameterisedTypeOrError, E07188).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IAggregateSymbol owner, MethodSymbol operator) Record the step whenowneris a bareTandoperatoris its<=>.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
NoteTypeParameterOrdered
NoteTypeParameterOrdered(SymbolsAndScopes symbolsAndScopes)
-
-
Method Details
-
accept
Record the step whenowneris a bareTandoperatoris its<=>.- Specified by:
acceptin interfaceBiConsumer<IAggregateSymbol, MethodSymbol>- Parameters:
owner- the type the operator was resolved onoperator- the operator it resolved to
-