Class AbstractClassMappingImpl<M extends ClassMapping,​P>

    • Constructor Detail

      • AbstractClassMappingImpl

        protected AbstractClassMappingImpl​(MappingSet mappings,
                                           java.lang.String obfuscatedName,
                                           java.lang.String deobfuscatedName)
        Creates a new class mapping, from the given parameters.
        Parameters:
        mappings - The mappings set, this mapping belongs to
        obfuscatedName - The obfuscated name
        deobfuscatedName - The de-obfuscated name
    • Method Detail

      • getFieldsByName

        public java.util.Map<java.lang.String,​FieldMapping> getFieldsByName()
        Description copied from interface: ClassMapping
        Gets an immutable map of all of the field mappings of the class mapping, by the field name.
        Specified by:
        getFieldsByName in interface ClassMapping<M extends ClassMapping,​P>
        Returns:
        The field mappings by name
      • createFieldMapping

        public FieldMapping createFieldMapping​(org.cadixdev.bombe.type.signature.FieldSignature signature,
                                               java.lang.String deobfuscatedName)
        Description copied from interface: ClassMapping
        Creates a new field mapping, attached to this class mapping, using the given signature and de-obfuscated name.
        Specified by:
        createFieldMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        signature - The signature of the field
        deobfuscatedName - The de-obfuscated name of the field
        Returns:
        The field mapping
      • hasFieldMapping

        public boolean hasFieldMapping​(org.cadixdev.bombe.type.signature.FieldSignature signature)
        Description copied from interface: ClassMapping
        Establishes whether the class mapping contains a field mapping of the given signature.
        Specified by:
        hasFieldMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        signature - The signature of the field mapping
        Returns:
        true should a field mapping of the given signature exists in the class mapping; false otherwise
      • hasFieldMapping

        public boolean hasFieldMapping​(java.lang.String obfuscatedName)
        Description copied from interface: ClassMapping
        Establishes whether the class mapping contains a field mapping of the given obfuscated name.
        Specified by:
        hasFieldMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        obfuscatedName - The obfuscated name of the field mapping
        Returns:
        true should a field mapping of the given obfuscated name exists in the class mapping; false otherwise
      • getMethodMapping

        public java.util.Optional<MethodMapping> getMethodMapping​(org.cadixdev.bombe.type.signature.MethodSignature signature)
        Description copied from interface: ClassMapping
        Gets the method mapping of the given method signature of the class mapping, should it exist.
        Specified by:
        getMethodMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        signature - The signature of the method mapping
        Returns:
        The method mapping, wrapped in an Optional
      • createMethodMapping

        public MethodMapping createMethodMapping​(org.cadixdev.bombe.type.signature.MethodSignature signature,
                                                 java.lang.String deobfuscatedName)
        Description copied from interface: ClassMapping
        Creates a new method mapping, attached to this class mapping, using the given method signature and de-obfuscated name.
        Specified by:
        createMethodMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        signature - The method signature
        deobfuscatedName - The de-obfuscated name of the method
        Returns:
        The method mapping
      • hasMethodMapping

        public boolean hasMethodMapping​(org.cadixdev.bombe.type.signature.MethodSignature signature)
        Description copied from interface: ClassMapping
        Establishes whether the class mapping contains a method mapping of the given obfuscated name.
        Specified by:
        hasMethodMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        signature - The signature of the method mapping
        Returns:
        true should a method mapping of the given obfuscated name exist in the class mapping; false otherwise
      • getInnerClassMapping

        public java.util.Optional<InnerClassMapping> getInnerClassMapping​(java.lang.String obfuscatedName)
        Description copied from interface: ClassMapping
        Gets the inner class mapping of the given obfuscated name of the class mapping, should it exist.
        Specified by:
        getInnerClassMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        obfuscatedName - The obfuscated name of the inner class mapping
        Returns:
        The inner class mapping, wrapped in an Optional
      • createInnerClassMapping

        public InnerClassMapping createInnerClassMapping​(java.lang.String obfuscatedName,
                                                         java.lang.String deobfuscatedName)
        Description copied from interface: ClassMapping
        Creates a new inner class mapping, attached to this class mapping, using the given obfuscated and de-obfuscated class name.
        Specified by:
        createInnerClassMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        obfuscatedName - The obfuscated class name
        deobfuscatedName - The de-obfuscated class name
        Returns:
        The class mapping
      • hasInnerClassMapping

        public boolean hasInnerClassMapping​(java.lang.String obfuscatedName)
        Description copied from interface: ClassMapping
        Establishes whether the class mapping contains a inner class mapping of the given obfuscated name.
        Specified by:
        hasInnerClassMapping in interface ClassMapping<M extends ClassMapping,​P>
        Parameters:
        obfuscatedName - The obfuscated name of the inner class mapping
        Returns:
        true should a inner class mapping of the given obfuscated name exist in the class mapping; false otherwise
      • isComplete

        public boolean isComplete()
        Specified by:
        isComplete in interface org.cadixdev.bombe.analysis.InheritanceCompletable
      • complete

        public void complete​(org.cadixdev.bombe.analysis.InheritanceProvider provider,
                             org.cadixdev.bombe.analysis.InheritanceProvider.ClassInfo info)
        Specified by:
        complete in interface org.cadixdev.bombe.analysis.InheritanceCompletable