Package org.cadixdev.lorenz.model
Interface MethodParameterMapping
-
- All Superinterfaces:
Mapping<MethodParameterMapping,MethodMapping>,MemberMapping<MethodParameterMapping,MethodMapping>,Reversible<MethodParameterMapping,MethodMapping>
- All Known Implementing Classes:
MethodParameterMappingImpl
public interface MethodParameterMapping extends MemberMapping<MethodParameterMapping,MethodMapping>
Represents a de-obfuscation mapping for a method parameter, identified by index.- Since:
- 0.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MethodParameterMappingcopy(MethodMapping parent)Clones this mapping, to a given parent.intgetIndex()Gets the index of the method parameter being mapped.default java.lang.StringgetObfuscatedName()Gets the obfuscated name of the member being represented.default MethodParameterMappingmerge(MethodParameterMapping with, MethodMapping parent)Merges this mapping with another, to a given parent.default MethodParameterMappingreverse(MethodMapping parent)Produces a new object that is a reverse copy of the original.-
Methods inherited from interface org.cadixdev.lorenz.model.Mapping
get, getDeobfuscatedName, getFullDeobfuscatedName, getFullObfuscatedName, getMappings, getOrCreate, getSimpleDeobfuscatedName, getSimpleObfuscatedName, hasDeobfuscatedName, set, setDeobfuscatedName
-
Methods inherited from interface org.cadixdev.lorenz.model.MemberMapping
getParent
-
-
-
-
Method Detail
-
getIndex
int getIndex()
Gets the index of the method parameter being mapped.- Returns:
- The index
-
getObfuscatedName
default java.lang.String getObfuscatedName()
Description copied from interface:MappingGets the obfuscated name of the member being represented.- Specified by:
getObfuscatedNamein interfaceMapping<MethodParameterMapping,MethodMapping>- Returns:
- The obfuscated name
-
reverse
default MethodParameterMapping reverse(MethodMapping parent)
Description copied from interface:ReversibleProduces a new object that is a reverse copy of the original.- Specified by:
reversein interfaceReversible<MethodParameterMapping,MethodMapping>- Parameters:
parent- The parent object- Returns:
- The reversed object
-
merge
default MethodParameterMapping merge(MethodParameterMapping with, MethodMapping parent)
Description copied from interface:MappingMerges this mapping with another, to a given parent.- Specified by:
mergein interfaceMapping<MethodParameterMapping,MethodMapping>- Parameters:
with- The mapping to merge withparent- The parent- Returns:
- The new mapping
-
copy
default MethodParameterMapping copy(MethodMapping parent)
Description copied from interface:MappingClones this mapping, to a given parent.- Specified by:
copyin interfaceMapping<MethodParameterMapping,MethodMapping>- Parameters:
parent- The parent- Returns:
- The cloned mapping
-
-