Top Fields Constructors Methods
io.vertx.codegen

public Class DataObjectModel

extends Object
implements Model
Class Inheritance
All Implemented Interfaces
io.vertx.codegen.Model
Imports
io.vertx.codegen.annotations.DataObject, .GenIgnore, io.vertx.codegen.json.annotations.JsonGen, io.vertx.codegen.doc.Doc, .Tag, .Text, .Token, io.vertx.codegen.type.*, javax.annotation.processing.ProcessingEnvironment, javax.lang.model.element.*, javax.lang.model.type.DeclaredType, .TypeKind, .TypeMirror, javax.lang.model.util.Elements, .Types, java.lang.annotation.Annotation, java.time.Instant, java.util.*, java.util.function.BiFunction, .Function, java.util.stream.Collectors, .Stream

Author
Julien Viet

Field Summary

Modifier and TypeField and Description
private final Set<ClassTypeInfo>
private List<AnnotationValueInfo>
private final AnnotationValueInfoFactory
private String
private boolean
private int
private static final int
private static final int
private static final int
private boolean
private Text
private Doc
private final Doc.Factory
private final Elements
private boolean
private boolean
private boolean
private final Set<ClassTypeInfo>
private boolean
private boolean
private String
private final TypeElement
private boolean
private final Map<String, PropertyInfo>
private boolean
private ClassTypeInfo
private final Set<ClassTypeInfo>
private ClassTypeInfo
private final TypeMirrorFactory
private final Types

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Set<ClassTypeInfo>
public AnnotationValueInfo
public List<AnnotationValueInfo>
public String
public Text

Returns:

the description of deprecated
getDeprecatedDesc
()

public Doc
public Element
public String
public boolean
public Set<ClassTypeInfo>
public boolean
public String
public ModuleInfo
public Map<String, PropertyInfo>
public ClassTypeInfo
public Set<ClassTypeInfo>
public ClassTypeInfo
public Map<String, Object>
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean

Returns:

true if the class has a @Deprecated annotation
isDeprecated
()

public boolean
public boolean
public boolean
public boolean
private void
private void
private void
processMethod(String name, ExecutableElement getterElt, ExecutableElement setterElt, ExecutableElement adderElt, List<AnnotationMirror> annotationMirrors)

private void
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

abstractSuperTypesback to summary
private final Set<ClassTypeInfo> abstractSuperTypes
annotationsback to summary
private List<AnnotationValueInfo> annotations
annotationValueInfoFactoryback to summary
private final AnnotationValueInfoFactory annotationValueInfoFactory
base64Typeback to summary
private String base64Type
concreteback to summary
private boolean concrete
constructorsback to summary
private int constructors
CTOR_JSON_OBJECTback to summary
private static final int CTOR_JSON_OBJECT
CTOR_NO_ARGback to summary
private static final int CTOR_NO_ARG
CTOR_STRINGback to summary
private static final int CTOR_STRING
deprecatedback to summary
private boolean deprecated
deprecatedDescback to summary
private Text deprecatedDesc
docback to summary
private Doc doc
docFactoryback to summary
private final Doc.Factory docFactory
elementUtilsback to summary
private final Elements elementUtils
generateConverterback to summary
private boolean generateConverter
hasDecodeStaticMethodback to summary
private boolean hasDecodeStaticMethod
hasToJsonMethodback to summary
private boolean hasToJsonMethod
importedTypesback to summary
private final Set<ClassTypeInfo> importedTypes
inheritConverterback to summary
private boolean inheritConverter
isClassback to summary
private boolean isClass
jsonPropertyNameFormatterback to summary
private String jsonPropertyNameFormatter
modelEltback to summary
private final TypeElement modelElt
processedback to summary
private boolean processed
propertyMapback to summary
private final Map<String, PropertyInfo> propertyMap
publicConverterback to summary
private boolean publicConverter
superTypeback to summary
private ClassTypeInfo superType
superTypesback to summary
private final Set<ClassTypeInfo> superTypes
typeback to summary
private ClassTypeInfo type
typeFactoryback to summary
private final TypeMirrorFactory typeFactory
typeUtilsback to summary
private final Types typeUtils

Constructor Detail

DataObjectModelback to summary
public DataObjectModel(ProcessingEnvironment env, TypeMirrorFactory typeFactory, TypeElement modelElt)

Method Detail

getAbstractSuperTypesback to summary
public Set<ClassTypeInfo> getAbstractSuperTypes()
getAnnotationContainerback to summary
public AnnotationValueInfo getAnnotationContainer()
getAnnotationsback to summary
public List<AnnotationValueInfo> getAnnotations()

Overrides default io.vertx.codegen.Model.getAnnotations.

Annotations
@Override
getBase64Typeback to summary
public String getBase64Type()
getDeprecatedDescback to summary
public Text getDeprecatedDesc()
Returns:Text

the description of deprecated

getDocback to summary
public Doc getDoc()
getElementback to summary
public Element getElement()

Implements io.vertx.codegen.Model.getElement.

Annotations
@Override
getFqnback to summary
public String getFqn()

Implements io.vertx.codegen.Model.getFqn.

Annotations
@Override
getGenerateConverterback to summary
public boolean getGenerateConverter()
getImportedTypesback to summary
public Set<ClassTypeInfo> getImportedTypes()
getInheritConverterback to summary
public boolean getInheritConverter()
getKindback to summary
public String getKind()

Implements io.vertx.codegen.Model.getKind.

Annotations
@Override
getModuleback to summary
public ModuleInfo getModule()

Implements io.vertx.codegen.Model.getModule.

getPropertyMapback to summary
public Map<String, PropertyInfo> getPropertyMap()
getSuperTypeback to summary
public ClassTypeInfo getSuperType()
getSuperTypesback to summary
public Set<ClassTypeInfo> getSuperTypes()
getTypeback to summary
public ClassTypeInfo getType()
getVarsback to summary
public Map<String, Object> getVars()

Overrides default io.vertx.codegen.Model.getVars.

Annotations
@Override
hasDecodeStaticMethodback to summary
public boolean hasDecodeStaticMethod()
hasEmptyConstructorback to summary
public boolean hasEmptyConstructor()
hasJsonConstructorback to summary
public boolean hasJsonConstructor()
hasStringConstructorback to summary
public boolean hasStringConstructor()
hasToJsonMethodback to summary
public boolean hasToJsonMethod()
isAbstractback to summary
public boolean isAbstract()
isClassback to summary
public boolean isClass()
isConcreteback to summary
public boolean isConcrete()
isDeprecatedback to summary
public boolean isDeprecated()
Returns:boolean

true if the class has a @Deprecated annotation

isDeserializableback to summary
public boolean isDeserializable()
isPublicConverterback to summary
public boolean isPublicConverter()
isSerializableback to summary
public boolean isSerializable()
processback to summary
public boolean process()

Implements io.vertx.codegen.Model.process.

processConstructorback to summary
private void processConstructor(ExecutableElement constrElt)
processImportedTypesback to summary
private void processImportedTypes()
processMethodback to summary
private void processMethod(String name, ExecutableElement getterElt, ExecutableElement setterElt, ExecutableElement adderElt, List<AnnotationMirror> annotationMirrors)
processMethodsback to summary
private void processMethods(List<ExecutableElement> methodsElt)
Annotations
@SuppressWarnings:unchecked
processTypeAnnotationsback to summary
private void processTypeAnnotations()
traverseback to summary
private void traverse()
Annotations
@SuppressWarnings:deprecation