M
- The type of the mappingpublic abstract class AbstractMappingImpl<M extends Mapping> extends Object implements Mapping<M>
Mapping
.Modifier | Constructor and Description |
---|---|
protected |
AbstractMappingImpl(MappingSet mappings,
String obfuscatedName,
String deobfuscatedName)
Creates a new de-obfuscation mapping, based on the given obfuscated name
and de-obfuscated name.
|
Modifier and Type | Method and Description |
---|---|
protected StringJoiner |
buildToString() |
boolean |
equals(Object obj) |
String |
getDeobfuscatedName()
Gets the de-obfuscated name of the member being represented.
|
MappingSet |
getMappings()
Gets the
MappingSet that the mappings belongs to. |
String |
getObfuscatedName()
Gets the obfuscated name of the member being represented.
|
boolean |
hasDeobfuscatedName()
Establishes whether the mapping has had a de-obfuscated name set.
|
int |
hashCode() |
M |
setDeobfuscatedName(String deobfuscatedName)
Sets the de-obfuscated name of the member.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFullDeobfuscatedName, getFullObfuscatedName, getSimpleDeobfuscatedName, getSimpleObfuscatedName
protected AbstractMappingImpl(MappingSet mappings, String obfuscatedName, String deobfuscatedName)
mappings
- The mappings set, this mapping belongs toobfuscatedName
- The obfuscated namedeobfuscatedName
- The de-obfuscated namepublic String getObfuscatedName()
Mapping
getObfuscatedName
in interface Mapping<M extends Mapping>
public String getDeobfuscatedName()
Mapping
Mapping.setDeobfuscatedName(String)
.getDeobfuscatedName
in interface Mapping<M extends Mapping>
public M setDeobfuscatedName(String deobfuscatedName)
Mapping
setDeobfuscatedName
in interface Mapping<M extends Mapping>
deobfuscatedName
- The new de-obfuscated namethis
for chainingpublic boolean hasDeobfuscatedName()
Mapping
hasDeobfuscatedName
in interface Mapping<M extends Mapping>
True
if the mapping is mapped, false
otherwisepublic MappingSet getMappings()
Mapping
MappingSet
that the mappings belongs to.getMappings
in interface Mapping<M extends Mapping>
protected StringJoiner buildToString()