public interface MappingSetModelFactory
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.
Modifier and Type | Method and Description |
---|---|
FieldMapping |
createFieldMapping(ClassMapping parent,
org.cadixdev.bombe.type.signature.FieldSignature signature,
String deobfuscatedName)
Creates a
FieldMapping linked to the given ClassMapping . |
InnerClassMapping |
createInnerClassMapping(ClassMapping parent,
String obfuscatedName,
String deobfuscatedName)
Creates a
InnerClassMapping linked to the given ClassMapping . |
MethodMapping |
createMethodMapping(ClassMapping parent,
org.cadixdev.bombe.type.signature.MethodSignature signature,
String deobfuscatedName)
Creates a
MethodMapping linked to the given ClassMapping . |
MethodParameterMapping |
createMethodParameterMapping(MethodMapping parent,
int index,
String deobfuscatedName)
Creates a
MethodParameterMapping linked to the given MethodMapping . |
TopLevelClassMapping |
createTopLevelClassMapping(MappingSet parent,
String obfuscatedName,
String deobfuscatedName)
Creates a
TopLevelClassMapping linked to the given MappingSet . |
TopLevelClassMapping createTopLevelClassMapping(MappingSet parent, String obfuscatedName, String deobfuscatedName)
TopLevelClassMapping
linked to the given MappingSet
.parent
- The mapping set to link toobfuscatedName
- The obfuscated name of the classdeobfuscatedName
- The de-obfuscated name to give the classInnerClassMapping createInnerClassMapping(ClassMapping parent, String obfuscatedName, String deobfuscatedName)
InnerClassMapping
linked to the given ClassMapping
.parent
- The class mapping to link toobfuscatedName
- The obfuscated name of the classdeobfuscatedName
- The de-obfuscated name to give the classFieldMapping createFieldMapping(ClassMapping parent, org.cadixdev.bombe.type.signature.FieldSignature signature, String deobfuscatedName)
FieldMapping
linked to the given ClassMapping
.parent
- The class mapping to link tosignature
- The signature of the fielddeobfuscatedName
- The de-obfuscated name to give the fieldMethodMapping createMethodMapping(ClassMapping parent, org.cadixdev.bombe.type.signature.MethodSignature signature, String deobfuscatedName)
MethodMapping
linked to the given ClassMapping
.parent
- The class mapping to link tosignature
- The signature of the obfuscated methoddeobfuscatedName
- The de-obfuscated name to give the methodMethodParameterMapping createMethodParameterMapping(MethodMapping parent, int index, String deobfuscatedName)
MethodParameterMapping
linked to the given MethodMapping
.parent
- The method mapping to link toindex
- The index of the parameterdeobfuscatedName
- The de-obfuscated name to give the parameter