Class DeclaredOperator

java.lang.Object
org.ek9lang.compiler.support.operators.DeclaredOperator
All Implemented Interfaces:
BiFunction<IAggregateSymbol, String, Optional<MethodSymbol>>

public final class DeclaredOperator extends Object implements BiFunction<IAggregateSymbol, String, Optional<MethodSymbol>>
THE operator of one name a type declares in its OWN scope, preferring the overload that takes the type itself when there are several (ExactSingleParameter) - and otherwise ANY overload (a zero-argument $ or ? has no parameter to match). ⚠️ For ==/<=> that fallback can be a comparison with an unrelated type; a caller that must call the type's sameness uses NearestSelfComparisonAbove (D19). Hold one and apply it.