Interface MethodMapping

    • Method Detail

      • getSignature

        org.cadixdev.bombe.type.signature.MethodSignature getSignature()
        Gets the signature of this method mapping.
        Returns:
        The signature
      • getDeobfuscatedSignature

        default org.cadixdev.bombe.type.signature.MethodSignature getDeobfuscatedSignature()
        Gets the de-obfuscated signature of this method mapping.
        Returns:
        The de-obfuscated signature
        Since:
        0.5.0
      • getDescriptor

        default org.cadixdev.bombe.type.MethodDescriptor getDescriptor()
        Gets the MethodDescriptor of the method.
        Returns:
        The method descriptor
        See Also:
        MethodSignature.getDescriptor()
      • getObfuscatedDescriptor

        default java.lang.String getObfuscatedDescriptor()
        Gets the obfuscated descriptor of the method.
        Returns:
        The obfuscated descriptor
        See Also:
        MethodSignature.getDescriptor(), MethodDescriptor.toString()
      • getDeobfuscatedDescriptor

        default java.lang.String getDeobfuscatedDescriptor()
        Gets the de-obfuscated descriptor of the method.
        Returns:
        The de-obfuscated descriptor
        See Also:
        MethodSignature.getDescriptor(), MappingSet.deobfuscate(MethodDescriptor)
      • getParameterMappings

        java.util.Collection<MethodParameterMapping> getParameterMappings()
        Gets an immutable view of all the MethodParameterMappings that belong to this method.
        Returns:
        The parameter mappings
        Since:
        0.4.0
      • createParameterMapping

        MethodParameterMapping createParameterMapping​(int index,
                                                      java.lang.String deobfuscatedName)
        Creates a MethodParameterMapping parented by this method, of the given integer index.
        Parameters:
        index - The index of the parameter
        deobfuscatedName - The de-obfuscated name to give the parameter
        Returns:
        The parameter mapping
        Since:
        0.4.0
      • getParameterMapping

        java.util.Optional<MethodParameterMapping> getParameterMapping​(int index)
        Gets a MethodParameterMapping, if present, of the given integer index.
        Parameters:
        index - The index of the parameter
        Returns:
        The parameter mapping, wrapped in an Optional
        Since:
        0.4.0
      • getOrCreateParameterMapping

        default MethodParameterMapping getOrCreateParameterMapping​(int index)
        Gets, or creates should it not exist, a parameter mapping of the given integer index.
        Parameters:
        index - The index of the parameter
        Returns:
        The parameter mapping
        Since:
        0.4.0
      • hasParameterMapping

        boolean hasParameterMapping​(int index)
        Establishes whether the method mapping contains a parameter mapping of the integer index.
        Parameters:
        index - The index of the parameter
        Returns:
        true should a parameter mapping of the given index exists in the method mapping; false otherwise
        Since:
        0.4.0
      • hasMappings

        default boolean hasMappings()
        Establishes whether the method mapping has a de-obfuscation mapping, or has some mappings within it.
        Returns:
        true if the method mappings has mappings; false otherwise
        Since:
        0.4.0
      • getFullObfuscatedName

        default java.lang.String getFullObfuscatedName()
        Description copied from interface: Mapping
        Gets the fully-qualified obfuscated name of the member.
        Specified by:
        getFullObfuscatedName in interface Mapping<MethodMapping,​ClassMapping>
        Returns:
        The fully-qualified obfuscated name
      • getFullDeobfuscatedName

        default java.lang.String getFullDeobfuscatedName()
        Description copied from interface: Mapping
        Gets the fully-qualified de-obfuscated name of the member.
        Specified by:
        getFullDeobfuscatedName in interface Mapping<MethodMapping,​ClassMapping>
        Returns:
        The fully-qualified de-obfuscated name