Interface MappersChainBuilder

All Known Implementing Classes:
FieldDeserializersChainBuilder, FieldSerializerChainBuilder

public interface MappersChainBuilder

MappersChainBuilder interface.

Version:
$Id: $Id
Author:
vegegoku
  • Method Summary

    Modifier and Type Method Description
    com.squareup.javapoet.CodeBlock getInstance​(javax.lang.model.element.Element field)
    Creates a CodeBlock for creating instances of all (de)serializers corresponding for given element.
    com.squareup.javapoet.CodeBlock getInstance​(javax.lang.model.type.TypeMirror fieldType)
    Creates a CodeBlock for creating instances of all (de)serializers corresponding for given type.
  • Method Details

    • getInstance

      com.squareup.javapoet.CodeBlock getInstance​(javax.lang.model.element.Element field)
      Creates a CodeBlock for creating instances of all (de)serializers corresponding for given element.
      Parameters:
      field - a Element object.
      Returns:
      a CodeBlock object.
    • getInstance

      com.squareup.javapoet.CodeBlock getInstance​(javax.lang.model.type.TypeMirror fieldType)
      Creates a CodeBlock for creating instances of all (de)serializers corresponding for given type.
      Parameters:
      fieldType - a TypeMirror object.
      Returns:
      a CodeBlock object.