public abstract class AbstractJsonMapperGenerator extends Object
Abstract AbstractJsonMapperGenerator class.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractJsonMapperGenerator.AccessorInfo |
| Modifier and Type | Field and Description |
|---|---|
protected TypeMirror |
beanType |
| Constructor and Description |
|---|
AbstractJsonMapperGenerator(TypeMirror beanType,
Filer filer)
Constructor for AbstractJsonMapperGenerator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generate(String packageName)
generate.
|
protected abstract com.squareup.javapoet.MethodSpec |
initMethod()
initMethod.
|
protected boolean |
isEligibleForSerializationDeserialization(Element field) |
protected boolean |
isIgnored(Element field) |
protected boolean |
isNotStatic(Element field) |
protected Set<com.squareup.javapoet.MethodSpec> |
moreMethods()
moreMethods.
|
protected abstract String |
namePostfix()
namePostfix.
|
protected List<Element> |
orderedFields()
orderedFields.
|
protected abstract com.squareup.javapoet.TypeName |
superClass()
superClass.
|
protected abstract String |
targetTypeMethodName()
targetTypeMethodName.
|
protected final TypeMirror beanType
public AbstractJsonMapperGenerator(TypeMirror beanType, Filer filer)
Constructor for AbstractJsonMapperGenerator.
beanType - a TypeMirror object.filer - a Filer object.protected void generate(String packageName) throws IOException
generate.
packageName - a String object.IOException - if any.protected abstract com.squareup.javapoet.TypeName superClass()
superClass.
TypeName object.protected abstract String targetTypeMethodName()
targetTypeMethodName.
String object.protected Set<com.squareup.javapoet.MethodSpec> moreMethods()
moreMethods.
Set object.protected abstract com.squareup.javapoet.MethodSpec initMethod()
initMethod.
MethodSpec object.protected boolean isNotStatic(Element field)
field - protected boolean isIgnored(Element field)
field - JsonIgnore present and its value is trueprotected boolean isEligibleForSerializationDeserialization(Element field)
Copyright © 2019. All rights reserved.