public class MapperWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
WITH_COLLECTION_STRATEGY |
static String |
WITH_CYCLIC_MAPPING |
static String |
WITH_ENUMS |
static String |
WITH_IGNORE_FIELDS |
static String |
WITH_IGNORE_MISSING |
static String |
WITH_IGNORE_NULL_VALUE |
static String |
WITH_IOC |
static String |
WITH_IOC_SERVICE_NAME |
| Constructor and Description |
|---|
MapperWrapper(MapperGeneratorContext context,
TypeElement mapperInterface) |
public static final String WITH_IGNORE_FIELDS
public static final String WITH_ENUMS
public static final String WITH_IGNORE_MISSING
public static final String WITH_IOC
public static final String WITH_COLLECTION_STRATEGY
public static final String WITH_IOC_SERVICE_NAME
public static final String WITH_CYCLIC_MAPPING
public static final String WITH_IGNORE_NULL_VALUE
public MapperWrapper(MapperGeneratorContext context, TypeElement mapperInterface)
public List<AnnotationWrapper> withEnums()
public void buildEnumForMethod(MethodWrapper methodWrapper)
public boolean isFinalMappers()
public MappingRegistry registry()
public SourceConfiguration configuration()
public void reportUnused()
public void emitCustomMappersFields(com.squareup.javawriter.JavaWriter writer,
boolean assign)
throws IOException
IOExceptionpublic MapperGeneratorContext context()
public IgnoreFieldsWrapper ignoredFields()
public FieldsWrapper fields()
public boolean isIgnoreMissingProperties()
public CustomMapperWrapper customMappers()
public void collectMaps(MapsWrapper maps)
maps - maps annotation we want to collectpublic void emitSourceFields(com.squareup.javawriter.JavaWriter writer)
throws IOException
IOExceptionpublic String[] sourceConstructorArgs()
public void emitSourceAssigns(com.squareup.javawriter.JavaWriter writer)
throws IOException
IOExceptionpublic IgnoreMissing ignoreMissing()
public boolean allowCollectionGetter()
public boolean isAbstractClass()
public void emitFactoryFields(com.squareup.javawriter.JavaWriter writer,
boolean assign)
throws IOException
IOExceptionpublic MappingSourceNode generateNewInstanceSourceNodes(InOutType inOutType, BeanWrapper outBeanWrapper)
public boolean hasFactory(TypeMirror typeMirror)
public boolean isUseCyclicMapping()
Copyright © 2016. All Rights Reserved.