/** * Creates a new method mapping, from the given parameters. * * @param parentClass The class mapping, this mapping belongs to * @param signature The signature * @param deobfuscatedName The de-obfuscated name */ public MethodMappingImpl(final ClassMapping parentClass, final MethodSignature signature, final String deobfuscatedName) { super(parentClass, signature.getName(), deobfuscatedName); this.signature = signature; }
/** * Creates a new method mapping, attached to this class mapping, using * the given method signature. * * @param signature The method signature * @return The method mapping */ default MethodMapping createMethodMapping(final MethodSignature signature) { return this.createMethodMapping(signature, signature.getName()); }