public class MappingSetImpl extends Object implements MappingSet
MappingSet
.Constructor and Description |
---|
MappingSetImpl() |
MappingSetImpl(MappingSetModelFactory modelFactory) |
Modifier and Type | Method and Description |
---|---|
TopLevelClassMapping |
createTopLevelClassMapping(String obfuscatedName,
String deobfuscatedName)
Creates a top-level class mapping with the given obfuscated and de-obfuscated
names.
|
CascadingFieldTypeProvider |
getFieldTypeProvider()
Gets the field type provider in use for this set of mappings.
|
MappingSetModelFactory |
getModelFactory()
Gets the underlying model factory, that is used to construct
the implementation classes for all the models.
|
Optional<TopLevelClassMapping> |
getTopLevelClassMapping(String obfuscatedName)
Gets the top-level class mapping of the given obfuscated name of the
class mapping, should it exist.
|
Collection<TopLevelClassMapping> |
getTopLevelClassMappings()
Gets an immutable collection of all of the top-level class
mappings of the mapping set.
|
boolean |
hasTopLevelClassMapping(String obfuscatedName)
Establishes whether the mapping set contains a top-level class
mapping of the given obfuscated name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFieldTypeProvider, computeClassMapping, create, create, deobfuscate, deobfuscate, getClassMapping, getOrCreateClassMapping, getOrCreateTopLevelClassMapping, removeFieldTypeProvider
public MappingSetImpl()
public MappingSetImpl(MappingSetModelFactory modelFactory)
public MappingSetModelFactory getModelFactory()
MappingSet
getModelFactory
in interface MappingSet
public Collection<TopLevelClassMapping> getTopLevelClassMappings()
MappingSet
getTopLevelClassMappings
in interface MappingSet
public TopLevelClassMapping createTopLevelClassMapping(String obfuscatedName, String deobfuscatedName)
MappingSet
createTopLevelClassMapping
in interface MappingSet
obfuscatedName
- The obfuscated name of the top-level classdeobfuscatedName
- The de-obfuscated name of the top-level classpublic Optional<TopLevelClassMapping> getTopLevelClassMapping(String obfuscatedName)
MappingSet
getTopLevelClassMapping
in interface MappingSet
obfuscatedName
- The obfuscated name of the top-level class mappingOptional
public boolean hasTopLevelClassMapping(String obfuscatedName)
MappingSet
hasTopLevelClassMapping
in interface MappingSet
obfuscatedName
- The obfuscated name of the top-level class
mappingtrue
should a top-level class mapping of the
given obfuscated name exist in the mapping set;
false
otherwisepublic CascadingFieldTypeProvider getFieldTypeProvider()
MappingSet
getFieldTypeProvider
in interface MappingSet