public static enum MethodGraph.Compiler.Default.Merger.Directional extends java.lang.Enum<MethodGraph.Compiler.Default.Merger.Directional> implements MethodGraph.Compiler.Default.Merger
MethodGraph.Compiler.Default.Merger.Directional
Enum Constant and Description |
---|
LEFT
A merger that always returns the left method, i.e.
|
RIGHT
A merger that always returns the right method, i.e.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
left
true if the left method should be returned when merging methods. |
Modifier and Type | Method and Description |
---|---|
MethodDescription |
merge(MethodDescription left,
MethodDescription right)
Merges two ambiguously resolved methods to yield a single representative.
|
static MethodGraph.Compiler.Default.Merger.Directional |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MethodGraph.Compiler.Default.Merger.Directional[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodGraph.Compiler.Default.Merger.Directional LEFT
public static final MethodGraph.Compiler.Default.Merger.Directional RIGHT
private final boolean left
true
if the left method should be returned when merging methods.public static MethodGraph.Compiler.Default.Merger.Directional[] values()
for (MethodGraph.Compiler.Default.Merger.Directional c : MethodGraph.Compiler.Default.Merger.Directional.values()) System.out.println(c);
public static MethodGraph.Compiler.Default.Merger.Directional valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic MethodDescription merge(MethodDescription left, MethodDescription right)
merge
in interface MethodGraph.Compiler.Default.Merger
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.