Package org.cadixdev.lorenz.model
Interface FieldMapping
-
- All Superinterfaces:
Mapping<FieldMapping,ClassMapping>,MemberMapping<FieldMapping,ClassMapping>,Reversible<FieldMapping,ClassMapping>
- All Known Implementing Classes:
FieldMappingImpl
public interface FieldMapping extends MemberMapping<FieldMapping,ClassMapping>
Represents a de-obfuscation mapping for fields.- Since:
- 0.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FieldMappingcopy(ClassMapping parent)Clones this mapping, to a given parent.default org.cadixdev.bombe.type.signature.FieldSignaturegetDeobfuscatedSignature()Gets the de-obfuscated signature of this field mapping.default java.lang.StringgetFullDeobfuscatedName()Gets the fully-qualified de-obfuscated name of the member.default java.lang.StringgetFullObfuscatedName()Gets the fully-qualified obfuscated name of the member.default java.lang.StringgetObfuscatedName()Gets the obfuscated name of the member being represented.org.cadixdev.bombe.type.signature.FieldSignaturegetSignature()Gets the signature of this field mapping.default java.util.Optional<org.cadixdev.bombe.type.FieldType>getType()Gets theFieldTypeof the field, if at all available.default FieldMappingmerge(FieldMapping with, ClassMapping parent)Merges this mapping with another, to a given parent.default FieldMappingreverse(ClassMapping parent)Produces a new object that is a reverse copy of the original.-
Methods inherited from interface org.cadixdev.lorenz.model.Mapping
get, getDeobfuscatedName, getMappings, getOrCreate, getSimpleDeobfuscatedName, getSimpleObfuscatedName, hasDeobfuscatedName, set, setDeobfuscatedName
-
Methods inherited from interface org.cadixdev.lorenz.model.MemberMapping
getParent
-
-
-
-
Method Detail
-
getSignature
org.cadixdev.bombe.type.signature.FieldSignature getSignature()
Gets the signature of this field mapping.- Returns:
- The signature
- Since:
- 0.4.0
-
getDeobfuscatedSignature
default org.cadixdev.bombe.type.signature.FieldSignature getDeobfuscatedSignature()
Gets the de-obfuscated signature of this field mapping.- Returns:
- The signature
- Since:
- 0.5.0
-
getObfuscatedName
default java.lang.String getObfuscatedName()
Description copied from interface:MappingGets the obfuscated name of the member being represented.- Specified by:
getObfuscatedNamein interfaceMapping<FieldMapping,ClassMapping>- Returns:
- The obfuscated name
-
getType
default java.util.Optional<org.cadixdev.bombe.type.FieldType> getType()
Gets theFieldTypeof the field, if at all available.- Returns:
- The type, wrapped in an
Optional - Since:
- 0.4.0
-
getFullObfuscatedName
default java.lang.String getFullObfuscatedName()
Description copied from interface:MappingGets the fully-qualified obfuscated name of the member.- Specified by:
getFullObfuscatedNamein interfaceMapping<FieldMapping,ClassMapping>- Returns:
- The fully-qualified obfuscated name
-
getFullDeobfuscatedName
default java.lang.String getFullDeobfuscatedName()
Description copied from interface:MappingGets the fully-qualified de-obfuscated name of the member.- Specified by:
getFullDeobfuscatedNamein interfaceMapping<FieldMapping,ClassMapping>- Returns:
- The fully-qualified de-obfuscated name
-
reverse
default FieldMapping reverse(ClassMapping parent)
Description copied from interface:ReversibleProduces a new object that is a reverse copy of the original.- Specified by:
reversein interfaceReversible<FieldMapping,ClassMapping>- Parameters:
parent- The parent object- Returns:
- The reversed object
-
merge
default FieldMapping merge(FieldMapping with, ClassMapping parent)
Description copied from interface:MappingMerges this mapping with another, to a given parent.- Specified by:
mergein interfaceMapping<FieldMapping,ClassMapping>- Parameters:
with- The mapping to merge withparent- The parent- Returns:
- The new mapping
-
copy
default FieldMapping copy(ClassMapping parent)
Description copied from interface:MappingClones this mapping, to a given parent.- Specified by:
copyin interfaceMapping<FieldMapping,ClassMapping>- Parameters:
parent- The parent- Returns:
- The cloned mapping
-
-