java.lang.Object
io.helidon.codegen.apt.AptTypeFactory
Factory for types.
-
Method Summary
Modifier and TypeMethodDescriptioncreateTypeName
(Element type) Creates a name from an element type during annotation processing.createTypeName
(TypeElement element, TypeMirror mirror) Create type from type mirror.createTypeName
(DeclaredType type) Creates a name from a declared type during annotation processing.createTypeName
(TypeMirror typeMirror) Create type from type mirror.
-
Method Details
-
createTypeName
Creates a name from a declared type during annotation processing.- Parameters:
type
- the element type- Returns:
- the associated type name instance
-
createTypeName
Create type from type mirror.- Parameters:
typeMirror
- annotation processing type mirror- Returns:
- type name
- Throws:
IllegalArgumentException
- when the mirror cannot be resolved into a name (such as when it represents none or error)
-
createTypeName
Create type from type mirror. The element is needed to correctly map type arguments to type parameters.- Parameters:
element
- the type element of the type mirrormirror
- the type mirror as declared in source code- Returns:
- type for the provided values
-
createTypeName
Creates a name from an element type during annotation processing.- Parameters:
type
- the element type- Returns:
- the associated type name instance
-