Package com.igormaznitsa.jbbp.mapper
Interface JBBPMapperCustomFieldProcessor
public interface JBBPMapperCustomFieldProcessor
The Interface describes a processor which will be called during mapping of fields of a parsed binary structure to a mapping class instance, if they marked for custom processing.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionprepareObjectForMapping(JBBPFieldStruct parsedBlock, Bin annotation, Field field) Prepare an object to be set to a custom mapping field.
-
Method Details
-
prepareObjectForMapping
Prepare an object to be set to a custom mapping field.- Parameters:
parsedBlock- the structure root of parsed binary packet, must not be nullannotation- the annotation for mapping field, must not be nullfield- the mapping field in a mapping class, must not be null- Returns:
- an object which will be set to the field in a mapping class instance, it can be null for non-primitive fields
-