public interface MethodMapping extends MemberMapping<MethodMapping,ClassMapping>
| Modifier and Type | Method and Description |
|---|---|
default MethodMapping |
copy(ClassMapping parent)
Clones this mapping, to a given parent.
|
MethodParameterMapping |
createParameterMapping(int index,
String deobfuscatedName)
Creates a
MethodParameterMapping parented by this method, of
the given integer index. |
default String |
getDeobfuscatedDescriptor()
Gets the de-obfuscated descriptor of the method.
|
default org.cadixdev.bombe.type.signature.MethodSignature |
getDeobfuscatedSignature()
Gets the de-obfuscated signature of this method mapping.
|
default org.cadixdev.bombe.type.MethodDescriptor |
getDescriptor()
Gets the
MethodDescriptor of the method. |
default String |
getFullDeobfuscatedName()
Gets the fully-qualified de-obfuscated name of the member.
|
default String |
getFullObfuscatedName()
Gets the fully-qualified obfuscated name of the member.
|
default String |
getObfuscatedDescriptor()
Gets the obfuscated descriptor of the method.
|
default MethodParameterMapping |
getOrCreateParameterMapping(int index)
Gets, or creates should it not exist, a parameter mapping of the
given integer index.
|
Optional<MethodParameterMapping> |
getParameterMapping(int index)
Gets a
MethodParameterMapping, if present, of the given
integer index. |
Collection<MethodParameterMapping> |
getParameterMappings()
Gets an immutable view of all the
MethodParameterMappings
that belong to this method. |
org.cadixdev.bombe.type.signature.MethodSignature |
getSignature()
Gets the signature of this method mapping.
|
default boolean |
hasMappings()
Establishes whether the method mapping has a de-obfuscation mapping, or
has some mappings within it.
|
boolean |
hasParameterMapping(int index)
Establishes whether the method mapping contains a parameter mapping
of the integer index.
|
default MethodMapping |
merge(MethodMapping with,
ClassMapping parent)
Merges this mapping with another, to a given parent.
|
default MethodMapping |
reverse(ClassMapping parent)
Produces a new object that is a reverse copy of the original.
|
getParentgetDeobfuscatedName, getMappings, getObfuscatedName, getSimpleDeobfuscatedName, getSimpleObfuscatedName, hasDeobfuscatedName, setDeobfuscatedNameorg.cadixdev.bombe.type.signature.MethodSignature getSignature()
default org.cadixdev.bombe.type.signature.MethodSignature getDeobfuscatedSignature()
default org.cadixdev.bombe.type.MethodDescriptor getDescriptor()
MethodDescriptor of the method.MethodSignature.getDescriptor()default String getObfuscatedDescriptor()
MethodSignature.getDescriptor(),
MethodDescriptor.toString()default String getDeobfuscatedDescriptor()
MethodSignature.getDescriptor(),
MappingSet.deobfuscate(MethodDescriptor)Collection<MethodParameterMapping> getParameterMappings()
MethodParameterMappings
that belong to this method.MethodParameterMapping createParameterMapping(int index, String deobfuscatedName)
MethodParameterMapping parented by this method, of
the given integer index.index - The index of the parameterdeobfuscatedName - The de-obfuscated name to give the parameterOptional<MethodParameterMapping> getParameterMapping(int index)
MethodParameterMapping, if present, of the given
integer index.index - The index of the parameterOptionaldefault MethodParameterMapping getOrCreateParameterMapping(int index)
index - The index of the parameterboolean hasParameterMapping(int index)
index - The index of the parametertrue should a parameter mapping of the given
index exists in the method mapping; false otherwisedefault boolean hasMappings()
true if the method mappings has mappings;
false otherwisedefault String getFullObfuscatedName()
MappinggetFullObfuscatedName in interface Mapping<MethodMapping,ClassMapping>default String getFullDeobfuscatedName()
MappinggetFullDeobfuscatedName in interface Mapping<MethodMapping,ClassMapping>default MethodMapping reverse(ClassMapping parent)
Reversiblereverse in interface Reversible<MethodMapping,ClassMapping>parent - The parent objectdefault MethodMapping merge(MethodMapping with, ClassMapping parent)
Mappingmerge in interface Mapping<MethodMapping,ClassMapping>with - The mapping to merge withparent - The parentdefault MethodMapping copy(ClassMapping parent)
Mappingcopy in interface Mapping<MethodMapping,ClassMapping>parent - The parent