Package org.cadixdev.lorenz
Interface MappingSetModelFactory
-
- All Known Implementing Classes:
MappingSetModelFactoryImpl
public interface MappingSetModelFactoryA factory intended to facilitate the creating of the many models in Lorenz.The intention of this factory is to allow the Lorenz implementation to be mixed with custom implementation, allowing developers to avoid having to write lots of standard code.
- Since:
- 0.3.0
-
-
Method Summary
All Methods Instance Methods Abstract 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
TopLevelClassMapping createTopLevelClassMapping(MappingSet parent, java.lang.String obfuscatedName, java.lang.String deobfuscatedName)
Creates aTopLevelClassMappinglinked to the givenMappingSet.- 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
InnerClassMapping createInnerClassMapping(ClassMapping parent, java.lang.String obfuscatedName, java.lang.String deobfuscatedName)
Creates aInnerClassMappinglinked to the givenClassMapping.- 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
FieldMapping createFieldMapping(ClassMapping parent, org.cadixdev.bombe.type.signature.FieldSignature signature, java.lang.String deobfuscatedName)
Creates aFieldMappinglinked to the givenClassMapping.- 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
- Since:
- 0.4.0
-
createMethodMapping
MethodMapping createMethodMapping(ClassMapping parent, org.cadixdev.bombe.type.signature.MethodSignature signature, java.lang.String deobfuscatedName)
Creates aMethodMappinglinked to the givenClassMapping.- 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
MethodParameterMapping createMethodParameterMapping(MethodMapping parent, int index, java.lang.String deobfuscatedName)
Creates aMethodParameterMappinglinked to the givenMethodMapping.- 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
- Since:
- 0.4.0
-
-