Package org.cadixdev.lorenz.impl
Class MappingSetModelFactoryImpl
- java.lang.Object
-
- org.cadixdev.lorenz.impl.MappingSetModelFactoryImpl
-
- All Implemented Interfaces:
MappingSetModelFactory
public class MappingSetModelFactoryImpl extends java.lang.Object implements MappingSetModelFactory
A basic implementation ofMappingSetModelFactory.- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description MappingSetModelFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldMappingcreateFieldMapping(ClassMapping parent, org.cadixdev.bombe.type.signature.FieldSignature signature, java.lang.String deobfuscatedName)Creates aFieldMappinglinked to the givenClassMapping.InnerClassMappingcreateInnerClassMapping(ClassMapping parent, java.lang.String obfuscatedName, java.lang.String deobfuscatedName)Creates aInnerClassMappinglinked to the givenClassMapping.MethodMappingcreateMethodMapping(ClassMapping parent, org.cadixdev.bombe.type.signature.MethodSignature signature, java.lang.String deobfuscatedName)Creates aMethodMappinglinked to the givenClassMapping.MethodParameterMappingcreateMethodParameterMapping(MethodMapping parent, int index, java.lang.String deobfuscatedName)Creates aMethodParameterMappinglinked to the givenMethodMapping.TopLevelClassMappingcreateTopLevelClassMapping(MappingSet parent, java.lang.String obfuscatedName, java.lang.String deobfuscatedName)Creates aTopLevelClassMappinglinked to the givenMappingSet.
-
-
-
Method Detail
-
createTopLevelClassMapping
public TopLevelClassMapping createTopLevelClassMapping(MappingSet parent, java.lang.String obfuscatedName, java.lang.String deobfuscatedName)
Description copied from interface:MappingSetModelFactoryCreates aTopLevelClassMappinglinked to the givenMappingSet.- Specified by:
createTopLevelClassMappingin interfaceMappingSetModelFactory- Parameters:
parent- The mapping set to link toobfuscatedName- The obfuscated name of the classdeobfuscatedName- The de-obfuscated name to give the class- Returns:
- The class mapping
-
createInnerClassMapping
public InnerClassMapping createInnerClassMapping(ClassMapping parent, java.lang.String obfuscatedName, java.lang.String deobfuscatedName)
Description copied from interface:MappingSetModelFactoryCreates aInnerClassMappinglinked to the givenClassMapping.- Specified by:
createInnerClassMappingin interfaceMappingSetModelFactory- Parameters:
parent- The class mapping to link toobfuscatedName- The obfuscated name of the classdeobfuscatedName- The de-obfuscated name to give the class- Returns:
- The class mapping
-
createFieldMapping
public FieldMapping createFieldMapping(ClassMapping parent, org.cadixdev.bombe.type.signature.FieldSignature signature, java.lang.String deobfuscatedName)
Description copied from interface:MappingSetModelFactoryCreates aFieldMappinglinked to the givenClassMapping.- Specified by:
createFieldMappingin interfaceMappingSetModelFactory- Parameters:
parent- The class mapping to link tosignature- The signature of the fielddeobfuscatedName- The de-obfuscated name to give the field- Returns:
- The field mapping
-
createMethodMapping
public MethodMapping createMethodMapping(ClassMapping parent, org.cadixdev.bombe.type.signature.MethodSignature signature, java.lang.String deobfuscatedName)
Description copied from interface:MappingSetModelFactoryCreates aMethodMappinglinked to the givenClassMapping.- Specified by:
createMethodMappingin interfaceMappingSetModelFactory- Parameters:
parent- The class mapping to link tosignature- The signature of the obfuscated methoddeobfuscatedName- The de-obfuscated name to give the method- Returns:
- The method mapping
-
createMethodParameterMapping
public MethodParameterMapping createMethodParameterMapping(MethodMapping parent, int index, java.lang.String deobfuscatedName)
Description copied from interface:MappingSetModelFactoryCreates aMethodParameterMappinglinked to the givenMethodMapping.- Specified by:
createMethodParameterMappingin interfaceMappingSetModelFactory- Parameters:
parent- The method mapping to link toindex- The index of the parameterdeobfuscatedName- The de-obfuscated name to give the parameter- Returns:
- The method parameter mapping
-
-