public enum MethodMergeStrategy extends Enum<MethodMergeStrategy>
This enum represents a configuration value for determining how strictly method mappings will be merged via
MappingSetMerger. Use it with MergeConfig and MappingSetMerger.create(MappingSet, MappingSet, MergeConfig).
| Enum Constant and Description |
|---|
LOOSE
Match the same as
STRICT, but also match more broadly:
For continuation merges, the deobfuscated output name and obfuscated input descriptor of the left mapping
can match the obfuscated input signature of the right mapping.
For duplicate merges, the obfuscated input name and deobfuscated output descriptor of the left mapping
can match the obfuscated input signature of the right mapping.
For more information regarding continuation and duplicate merges, see the Continuations and Duplicates
section of MappingSetMergerHandler. |
STRICT
Only match exactly.
|
| Modifier and Type | Method and Description |
|---|---|
static MethodMergeStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodMergeStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodMergeStrategy STRICT
MappingSetMergerHandler.public static final MethodMergeStrategy LOOSE
STRICT, but also match more broadly:
MappingSetMergerHandler.public static MethodMergeStrategy[] values()
for (MethodMergeStrategy c : MethodMergeStrategy.values()) System.out.println(c);
public static MethodMergeStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null