public class MethodMappingImpl extends AbstractMemberMappingImpl<MethodMapping,ClassMapping> implements MethodMapping
MethodMapping.| Constructor and Description |
|---|
MethodMappingImpl(ClassMapping parentClass,
org.cadixdev.bombe.type.signature.MethodSignature signature,
String deobfuscatedName)
Creates a new method mapping, from the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected StringJoiner |
buildToString() |
MethodParameterMapping |
createParameterMapping(int index,
String deobfuscatedName)
Creates a
MethodParameterMapping parented by this method, of
the given integer index. |
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
boolean |
hasParameterMapping(int index)
Establishes whether the method mapping contains a parameter mapping
of the integer index.
|
getParentgetDeobfuscatedName, getMappings, getObfuscatedName, hasDeobfuscatedName, setDeobfuscatedName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopy, getDeobfuscatedDescriptor, getDeobfuscatedSignature, getDescriptor, getFullDeobfuscatedName, getFullObfuscatedName, getObfuscatedDescriptor, getOrCreateParameterMapping, hasMappings, merge, reversegetParentgetDeobfuscatedName, getMappings, getObfuscatedName, getSimpleDeobfuscatedName, getSimpleObfuscatedName, hasDeobfuscatedName, setDeobfuscatedNamepublic MethodMappingImpl(ClassMapping parentClass, org.cadixdev.bombe.type.signature.MethodSignature signature, String deobfuscatedName)
parentClass - The class mapping, this mapping belongs tosignature - The signaturedeobfuscatedName - The de-obfuscated namepublic org.cadixdev.bombe.type.signature.MethodSignature getSignature()
MethodMappinggetSignature in interface MethodMappingpublic Collection<MethodParameterMapping> getParameterMappings()
MethodMappingMethodParameterMappings
that belong to this method.getParameterMappings in interface MethodMappingpublic MethodParameterMapping createParameterMapping(int index, String deobfuscatedName)
MethodMappingMethodParameterMapping parented by this method, of
the given integer index.createParameterMapping in interface MethodMappingindex - The index of the parameterdeobfuscatedName - The de-obfuscated name to give the parameterpublic Optional<MethodParameterMapping> getParameterMapping(int index)
MethodMappingMethodParameterMapping, if present, of the given
integer index.getParameterMapping in interface MethodMappingindex - The index of the parameterOptionalpublic boolean hasParameterMapping(int index)
MethodMappinghasParameterMapping in interface MethodMappingindex - The index of the parametertrue should a parameter mapping of the given
index exists in the method mapping; false otherwiseprotected StringJoiner buildToString()
buildToString in class AbstractMappingImpl<MethodMapping,ClassMapping>public boolean equals(Object obj)
equals in class AbstractMemberMappingImpl<MethodMapping,ClassMapping>public int hashCode()
hashCode in class AbstractMemberMappingImpl<MethodMapping,ClassMapping>