public class MethodMappingImpl extends AbstractMemberMappingImpl<MethodMapping,ClassMapping> implements MethodMapping
MethodMapping
.Constructor and Description |
---|
MethodMappingImpl(ClassMapping parentClass,
me.jamiemansfield.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
MethodParameterMapping s
that belong to this method. |
me.jamiemansfield.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.
|
getParent
getDeobfuscatedName, getMappings, getObfuscatedName, hasDeobfuscatedName, setDeobfuscatedName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeobfuscatedDescriptor, getDescriptor, getFullDeobfuscatedName, getFullObfuscatedName, getObfuscatedDescriptor, getOrCreateParameterMapping, hasMappings
getParent
getDeobfuscatedName, getMappings, getObfuscatedName, getSimpleDeobfuscatedName, getSimpleObfuscatedName, hasDeobfuscatedName, setDeobfuscatedName
public MethodMappingImpl(ClassMapping parentClass, me.jamiemansfield.bombe.type.signature.MethodSignature signature, String deobfuscatedName)
parentClass
- The class mapping, this mapping belongs tosignature
- The signaturedeobfuscatedName
- The de-obfuscated namepublic me.jamiemansfield.bombe.type.signature.MethodSignature getSignature()
MethodMapping
getSignature
in interface MethodMapping
public Collection<MethodParameterMapping> getParameterMappings()
MethodMapping
MethodParameterMapping
s
that belong to this method.getParameterMappings
in interface MethodMapping
public MethodParameterMapping createParameterMapping(int index, String deobfuscatedName)
MethodMapping
MethodParameterMapping
parented by this method, of
the given integer index.createParameterMapping
in interface MethodMapping
index
- The index of the parameterdeobfuscatedName
- The de-obfuscated name to give the parameterpublic Optional<MethodParameterMapping> getParameterMapping(int index)
MethodMapping
MethodParameterMapping
, if present, of the given
integer index.getParameterMapping
in interface MethodMapping
index
- The index of the parameterOptional
public boolean hasParameterMapping(int index)
MethodMapping
hasParameterMapping
in interface MethodMapping
index
- 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>
public boolean equals(Object obj)
equals
in class AbstractMemberMappingImpl<MethodMapping,ClassMapping>
public int hashCode()
hashCode
in class AbstractMemberMappingImpl<MethodMapping,ClassMapping>