public class Mapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,ClassData> |
mappings
A
Map tying each plain class name to its class data. |
| Constructor and Description |
|---|
Mapper() |
| Modifier and Type | Method and Description |
|---|---|
ClassData |
getClassData(java.lang.String name)
Gets the
ClassData given the plain name. |
FieldData |
getFieldData(java.lang.String parent,
java.lang.String name)
Gets the mapped name of a field.
|
Mapper |
getInverted()
Builds a new
Mapper that functions in reverse to this one (i.e. |
MethodData |
getMethodData(java.lang.String parent,
java.lang.String name,
java.lang.String descriptor)
Gets the mapped name of a method
|
java.util.Map<java.lang.String,ClassData> |
getRawMappings()
Gets the "raw mappings".
|
protected final java.util.Map<java.lang.String,ClassData> mappings
Map tying each plain class name to its class data.public ClassData getClassData(java.lang.String name) throws MappingNotFoundException
ClassData given the plain name.name - the plain internal name of the desired classMappingNotFoundException - if no mapping is foundpublic MethodData getMethodData(java.lang.String parent, java.lang.String name, java.lang.String descriptor) throws MappingNotFoundException
parent - the plain internal name of the parent classname - the plain method namedescriptor - the descriptor of the methodMappingNotFoundException - if no mapping is foundpublic FieldData getFieldData(java.lang.String parent, java.lang.String name) throws MappingNotFoundException
parent - the plain internal name of the parent classname - the field's plain nameMappingNotFoundException - if no mapping is foundpublic java.util.Map<java.lang.String,ClassData> getRawMappings()
Map tying each ClassData to the class' plain name