Package org.cadixdev.lorenz.model.jar
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 FieldTypeProviderA 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 aRuntimeExceptionif a provider is not present!- Since:
- 0.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<org.cadixdev.bombe.type.FieldType>provide(FieldMapping mapping)Provides aFieldTypefor the givenFieldMapping, if possible.
-
-
-
Method Detail
-
provide
java.util.Optional<org.cadixdev.bombe.type.FieldType> provide(FieldMapping mapping)
Provides aFieldTypefor the givenFieldMapping, if possible.- Parameters:
mapping- The field mapping- Returns:
- The type for the field, wrapped in an
Optional - Since:
- 0.4.0
-
-