Interface FieldTypeProvider

  • All Known Implementing Classes:
    CascadingFieldTypeProvider
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface FieldTypeProvider
    A provider for establishing the type of a field, when it is not already known. This is required as not all de-obfuscation mapping formats include this data. Writers that do need to make use of field types should throw a RuntimeException if a provider is not present!
    Since:
    0.3.0
    • Method Detail

      • provide

        java.util.Optional<org.cadixdev.bombe.type.FieldType> provide​(FieldMapping mapping)
        Provides a FieldType for the given FieldMapping, if possible.
        Parameters:
        mapping - The field mapping
        Returns:
        The type for the field, wrapped in an Optional
        Since:
        0.4.0