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

public Class TypeUse

extends Object
Class Inheritance
Imports
io.vertx.codegen.Helper, io.vertx.codegen.annotations.Nullable, javax.annotation.processing.ProcessingEnvironment, javax.lang.model.element.AnnotationMirror, .ExecutableElement, .TypeElement, javax.lang.model.type.DeclaredType, .TypeKind, .TypeMirror, java.lang.annotation.Annotation, java.lang.reflect.AnnotatedParameterizedType, .AnnotatedType, .Field, .Method, .ParameterizedType, java.util.ArrayList, .List

What we need to use from type use annotations, wether it uses lang model api or lang reflect api.
Author
Julien Viet

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
pack-priv static interface
pack-priv static interface

Field Summary

Modifier and TypeField and Description
pack-priv static final String
private static final List<TypeUse.TypeInternalProvider>
private final TypeUse.TypeInternal[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TypeUse
public static TypeUse
public TypeUse

Returns:

the type use
getArg
(String
the name of the raw type for which we want to get the argument
rawName
,
int
the argument index
index
)

Return the type use of a type argument of the underlying type.

public boolean

Returns:

true if the type is nullable
isNullable
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NULLABLEback to summary
pack-priv static final String NULLABLE
providersback to summary
private static final List<TypeUse.TypeInternalProvider> providers
typesback to summary
private final TypeUse.TypeInternal[] types

Constructor Detail

TypeUseback to summary
private TypeUse(TypeUse.TypeInternal[] types)

Method Detail

createParamTypeUseback to summary
public static TypeUse createParamTypeUse(ProcessingEnvironment env, ExecutableElement[] methods, int index)
createReturnTypeUseback to summary
public static TypeUse createReturnTypeUse(ProcessingEnvironment env, ExecutableElement... methods)
getArgback to summary
public TypeUse getArg(String rawName, int index)

Return the type use of a type argument of the underlying type.

Parameters
rawName:String

the name of the raw type for which we want to get the argument

index:int

the argument index

Returns:TypeUse

the type use

isNullableback to summary
public boolean isNullable()
Returns:boolean

true if the type is nullable

io.vertx.codegen.type back to summary

private Class TypeUse.MirrorTypeInternal

extends Object
implements TypeInternal
Class Inheritance
All Implemented Interfaces
io.vertx.codegen.type.TypeUse.TypeInternal

Field Summary

Modifier and TypeField and Description
pack-priv final TypeMirror

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public TypeUse.TypeInternal
public boolean
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mirrorback to summary
pack-priv final TypeMirror mirror

Constructor Detail

MirrorTypeInternalback to summary
private MirrorTypeInternal(TypeMirror mirror)

Method Detail

getArgAtback to summary
public TypeUse.TypeInternal getArgAt(int index)

Implements io.vertx.codegen.type.TypeUse.TypeInternal.getArgAt.

isNullableback to summary
public boolean isNullable()

Implements io.vertx.codegen.type.TypeUse.TypeInternal.isNullable.

rawNameback to summary
public String rawName()

Implements io.vertx.codegen.type.TypeUse.TypeInternal.rawName.

Annotations
@Override
io.vertx.codegen.type back to summary

private Class TypeUse.ReflectType

extends Object
implements TypeInternal
Class Inheritance
All Implemented Interfaces
io.vertx.codegen.type.TypeUse.TypeInternal

Field Summary

Modifier and TypeField and Description
private final AnnotatedType
private final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public TypeUse.TypeInternal
public boolean
private static boolean
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotatedTypeback to summary
private final AnnotatedType annotatedType
nullableback to summary
private final boolean nullable

Constructor Detail

ReflectTypeback to summary
private ReflectType(AnnotatedType annotated)

Method Detail

getArgAtback to summary
public TypeUse.TypeInternal getArgAt(int index)

Implements io.vertx.codegen.type.TypeUse.TypeInternal.getArgAt.

isNullableback to summary
public boolean isNullable()

Implements io.vertx.codegen.type.TypeUse.TypeInternal.isNullable.

isNullableback to summary
private static boolean isNullable(AnnotatedType type)
rawNameback to summary
public String rawName()

Implements io.vertx.codegen.type.TypeUse.TypeInternal.rawName.

Annotations
@Override
io.vertx.codegen.type back to summary

pack-priv Interface TypeUse.TypeInternal

Known Direct Implementers
io.vertx.codegen.type.TypeUse.ReflectType, io.vertx.codegen.type.TypeUse.MirrorTypeInternal, io.vertx.codegen.type.TreeTypeInternal

Method Summary

Modifier and TypeMethod and Description
public TypeUse.TypeInternal
getArgAt(int index)

public boolean
public String

Method Detail

getArgAtback to summary
public TypeUse.TypeInternal getArgAt(int index)
isNullableback to summary
public boolean isNullable()
rawNameback to summary
public String rawName()
io.vertx.codegen.type back to summary

pack-priv Interface TypeUse.TypeInternalProvider


Method Summary

Modifier and TypeMethod and Description
public TypeUse.TypeInternal
public TypeUse.TypeInternal

Method Detail

forParamback to summary
public TypeUse.TypeInternal forParam(ProcessingEnvironment env, ExecutableElement methodElt, int index)
forReturnback to summary
public TypeUse.TypeInternal forReturn(ProcessingEnvironment env, ExecutableElement methodElt)