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 aMethodGraph.Node
between several ambiguously resolved methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MethodGraph.Compiler.Default.Merger.Directional
A directional merger that always returns either the left or right method description.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDescription
merge(MethodDescription left, MethodDescription right)
Merges two ambiguously resolved methods to yield a single representative.
-
-
-
Method Detail
-
merge
MethodDescription merge(MethodDescription left, MethodDescription right)
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.
-
-