Package net.bytebuddy.dynamic.scaffold
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.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
A directional merger that always returns either the left or right method description. -
Method Summary
Modifier and TypeMethodDescriptionmerge
(MethodDescription left, MethodDescription right) Merges two ambiguously resolved methods to yield a single representative.
-
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.
-