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

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

Introduction

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

Prototype

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

Source Link

Document

Maps a field 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 .  jav  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;
}