Interface MethodGraph.Compiler.Default.Merger

All Known Implementing Classes:
MethodGraph.Compiler.Default.Merger.Directional
Enclosing class:
MethodGraph.Compiler.Default<T>

public static interface MethodGraph.Compiler.Default.Merger
Implementations are responsible for identifying a representative method for a MethodGraph.Node between several ambiguously resolved methods.
  • Method Details

    • merge

      Merges two ambiguously resolved methods to yield a single representative.
      Parameters:
      left - The left method description, i.e. the method that was discovered first or was previously merged.
      right - The right method description, i.e. the method that was discovered last.
      Returns:
      A method description compatible to both method's types that is used as a representative.