M - The type of the mappingP - The type of the parentpublic abstract class AbstractMappingImpl<M extends Mapping,P> extends Object implements Mapping<M,P>
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, waitcopy, getFullDeobfuscatedName, getFullObfuscatedName, getSimpleDeobfuscatedName, getSimpleObfuscatedName, mergereverseprotected AbstractMappingImpl(MappingSet mappings, String obfuscatedName, String deobfuscatedName)
mappings - The mappings set, this mapping belongs toobfuscatedName - The obfuscated namedeobfuscatedName - The de-obfuscated namepublic String getObfuscatedName()
MappinggetObfuscatedName in interface Mapping<M extends Mapping,P>public String getDeobfuscatedName()
MappingMapping.setDeobfuscatedName(String).getDeobfuscatedName in interface Mapping<M extends Mapping,P>public M setDeobfuscatedName(String deobfuscatedName)
MappingsetDeobfuscatedName in interface Mapping<M extends Mapping,P>deobfuscatedName - The new de-obfuscated namethis for chainingpublic boolean hasDeobfuscatedName()
MappinghasDeobfuscatedName in interface Mapping<M extends Mapping,P>True if the mapping is mapped, false otherwisepublic MappingSet getMappings()
MappingMappingSet that the mappings belongs to.getMappings in interface Mapping<M extends Mapping,P>protected StringJoiner buildToString()