Interface MappingSetModelFactory

  • All Known Implementing Classes:
    MappingSetModelFactoryImpl

    public interface MappingSetModelFactory
    A 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 Detail

      • createTopLevelClassMapping

        TopLevelClassMapping createTopLevelClassMapping​(MappingSet parent,
                                                        java.lang.String obfuscatedName,
                                                        java.lang.String deobfuscatedName)
        Creates a TopLevelClassMapping linked to the given MappingSet.
        Parameters:
        parent - The mapping set to link to
        obfuscatedName - The obfuscated name of the class
        deobfuscatedName - 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 a InnerClassMapping linked to the given ClassMapping.
        Parameters:
        parent - The class mapping to link to
        obfuscatedName - The obfuscated name of the class
        deobfuscatedName - 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 a FieldMapping linked to the given ClassMapping.
        Parameters:
        parent - The class mapping to link to
        signature - The signature of the field
        deobfuscatedName - 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 a MethodMapping linked to the given ClassMapping.
        Parameters:
        parent - The class mapping to link to
        signature - The signature of the obfuscated method
        deobfuscatedName - The de-obfuscated name to give the method
        Returns:
        The method mapping
      • createMethodParameterMapping

        MethodParameterMapping createMethodParameterMapping​(MethodMapping parent,
                                                            int index,
                                                            java.lang.String deobfuscatedName)
        Creates a MethodParameterMapping linked to the given MethodMapping.
        Parameters:
        parent - The method mapping to link to
        index - The index of the parameter
        deobfuscatedName - The de-obfuscated name to give the parameter
        Returns:
        The method parameter mapping
        Since:
        0.4.0