Class OperatorResolvedOn

java.lang.Object
org.ek9lang.compiler.support.operators.OperatorResolvedOn

public final class OperatorResolvedOn extends Object
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 Details

    • OperatorResolvedOn

      public OperatorResolvedOn()
  • Method Details

    • resolve

      public Optional<MethodSymbol> resolve(ISymbol receiverType, String operator, Optional<ISymbol> argumentType)
      The operator operator resolves to on receiverType given an argument of argumentType (empty for ++ and --), when it resolves to exactly one.
      Parameters:
      receiverType - the type the operator is resolved on
      operator - the operator as written
      argumentType - the argument's type, if any
      Returns:
      the single best match, if any