Class OperatorResolvedOn
java.lang.Object
org.ek9lang.compiler.support.operators.OperatorResolvedOn
THE operator an in-place operator resolves to on a receiver type: the search phase 3 made when it resolved it
(
LhsAndRhsAssignmentOrError, StatementOrError) - the operator by its written name, with the
argument's type when it has one. Asked by UnsetKeepingOperator. Hold one.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OperatorResolvedOn
public OperatorResolvedOn()
-
-
Method Details
-
resolve
public Optional<MethodSymbol> resolve(ISymbol receiverType, String operator, Optional<ISymbol> argumentType) The operatoroperatorresolves to onreceiverTypegiven an argument ofargumentType(empty for++and--), when it resolves to exactly one.- Parameters:
receiverType- the type the operator is resolved onoperator- the operator as writtenargumentType- the argument's type, if any- Returns:
- the single best match, if any
-