Class OwnOperatorTaking

java.lang.Object
org.ek9lang.compiler.support.sameness.OwnOperatorTaking

public final class OwnOperatorTaking extends Object
The owner's own non-abstract operator of one name taking exactly that one type, if any - what OverriddenSamenessSignatures asks of each inherited signature. Hold one.
  • Constructor Details

    • OwnOperatorTaking

      public OwnOperatorTaking()
  • Method Details

    • of

      public Optional<MethodSymbol> of(IAggregateSymbol owner, String name, ISymbol parameterType)
      The owner's own non-abstract operator of this name taking exactly that one type, if any.
      Parameters:
      owner - the type whose own scope is read
      name - the operator, e.g. "=="
      parameterType - the one parameter type it must take
      Returns:
      the operator, if declared