Example usage for org.objectweb.asm.commons Remapper mapMethodName

List of usage examples for org.objectweb.asm.commons Remapper mapMethodName

Introduction

In this page you can find the example usage for org.objectweb.asm.commons Remapper mapMethodName.

Prototype

public String mapMethodName(final String owner, final String name, final String descriptor) 

Source Link

Document

Maps a method name to its new name.

Usage

From source file:nova.core.wrapper.mc.forge.v17.asm.lib.ObfMapping.java

License:Open Source License

public ObfMapping map(Remapper mapper) {
    if (isMethod()) {
        s_name = mapper.mapMethodName(s_owner, s_name, s_desc);
    } else if (isField()) {
        s_name = mapper.mapFieldName(s_owner, s_name, s_desc);
    }//from  w ww  . ja v  a 2s .  com

    s_owner = mapper.mapType(s_owner);

    if (isMethod()) {
        s_desc = mapper.mapMethodDesc(s_desc);
    } else if (s_desc.length() > 0) {
        s_desc = mapper.mapDesc(s_desc);
    }

    return this;
}