Top Description Fields Constructors Methods
io.vertx.codegen.type

public Class TypeMirrorFactory

extends Object
Class Inheritance
Imports
io.vertx.codegen.*, io.vertx.codegen.annotations.DataObject, .ProxyGen, .VertxGen, javax.lang.model.element.*, javax.lang.model.type.*, javax.lang.model.util.Elements, .Types, java.util.ArrayList, .Collections, .HashMap, .List, .Map

Type info factory based on javax.lang.model and type mirrors.
Author
Julien Viet

Field Summary

Modifier and TypeField and Description
pack-priv final Map<String, MapperInfo>
pack-priv final Elements
private static final ClassTypeInfo
pack-priv final Map<String, MapperInfo>
private static final ClassTypeInfo
pack-priv final Types
private static final ModuleInfo

Constructor Summary

AccessConstructor and Description
public
TypeMirrorFactory(Elements elementUtils, Types typeUtils)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public TypeInfo
public TypeInfo
public TypeInfo
public TypeInfo
public TypeInfo
create(TypeUse use, DeclaredType type, boolean checkTypeArgs)

public TypeVariableInfo
public ArrayTypeInfo
private List<TypeParamInfo.Class>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

deserializersback to summary
pack-priv final Map<String, MapperInfo> deserializers
elementUtilsback to summary
pack-priv final Elements elementUtils
JSON_OBJECTback to summary
private static final ClassTypeInfo JSON_OBJECT
serializersback to summary
pack-priv final Map<String, MapperInfo> serializers
STRINGback to summary
private static final ClassTypeInfo STRING
typeUtilsback to summary
pack-priv final Types typeUtils
VERTX_CORE_MODback to summary
private static final ModuleInfo VERTX_CORE_MOD

Constructor Detail

TypeMirrorFactoryback to summary
public TypeMirrorFactory(Elements elementUtils, Types typeUtils)

Method Detail

addDataObjectDeserializerback to summary
public void addDataObjectDeserializer(Element elt, TypeMirror dataObjectType, MapperInfo mapper)
addDataObjectSerializerback to summary
public void addDataObjectSerializer(Element elt, TypeMirror dataObjectType, MapperInfo mapper)
createback to summary
public TypeInfo create(TypeMirror type)
createback to summary
public TypeInfo create(TypeUse use, TypeMirror type)
createback to summary
public TypeInfo create(DeclaredType type)
createback to summary
public TypeInfo create(TypeUse use, DeclaredType type)
createback to summary
public TypeInfo create(TypeUse use, DeclaredType type, boolean checkTypeArgs)
createback to summary
public TypeVariableInfo create(TypeUse use, TypeVariable type)
createback to summary
public ArrayTypeInfo create(TypeUse use, ArrayType type)
createTypeParamsback to summary
private List<TypeParamInfo.Class> createTypeParams(DeclaredType type)