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.CodeBlockgetInstance(javax.lang.model.element.Element field)Creates a CodeBlock for creating instances of all (de)serializers corresponding for given element.com.squareup.javapoet.CodeBlockgetInstance(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- aElementobject.- Returns:
- a
CodeBlockobject.
-
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- aTypeMirrorobject.- Returns:
- a
CodeBlockobject.
-