Uses of Interface
io.helidon.common.types.TypeName
Package
Description
Code generation for
Blueprint
annotated interfaces.Code generation and processing support.
Implementation of codegen tools for Java annotation processing.
Class model generator for annotation processors.
Custom copyright provider that generates Helidon copyright headers.
Implementation of codegen utilities for classpath scanning.
Service provider interfaces to extend code generation support.
Subset of Builder's SPI types that are useful for runtime.
-
Uses of TypeName in io.helidon.builder.codegen
Modifier and TypeMethodDescriptionBuilderCodegenProvider.create
(CodegenContext ctx, TypeName generatorType) -
Uses of TypeName in io.helidon.codegen
Modifier and TypeMethodDescriptionClassCode.mainTrigger()
Returns the value of themainTrigger
record component.ClassCode.newType()
Returns the value of thenewType
record component.Modifier and TypeMethodDescriptionRoundContext.availableAnnotations()
Annotations available in this round, the collection contains only annotations valid for the extension being invoked.CodegenContext.mapperSupportedAnnotations()
Annotations supported by the mappers.CodegenContextBase.mapperSupportedAnnotations()
CodegenContextDelegate.mapperSupportedAnnotations()
ModuleInfo.BuilderBase.ModuleInfoImpl.provides()
ModuleInfo.BuilderBase.ModuleInfoImpl.provides()
ModuleInfo.BuilderBase.provides()
Map of provider interfaces to provider implementations provided by this module.ModuleInfo.BuilderBase.provides()
Map of provider interfaces to provider implementations provided by this module.ModuleInfo.provides()
Map of provider interfaces to provider implementations provided by this module.ModuleInfo.provides()
Map of provider interfaces to provider implementations provided by this module.Codegen.supportedAnnotations()
A set of annotation types.ModuleInfo.BuilderBase.ModuleInfoImpl.uses()
ModuleInfo.BuilderBase.uses()
Used service loader providers.ModuleInfo.uses()
Used service loader providers.Modifier and TypeMethodDescriptionvoid
RoundContext.addGeneratedType
(TypeName type, ClassModel.Builder newClass, TypeName mainTrigger, Object... originatingElements) Add a new class to be code generated.ModuleInfo.BuilderBase.addProvide
(TypeName key, TypeName provide) This method adds a new value to the map value, or creates a new value.ModuleInfo.BuilderBase.addProvides
(TypeName key, List<TypeName> provides) This method adds a new value to the map value, or creates a new value.Used service loader providers.RoundContext.annotatedElements
(TypeName annotationType) All elements annotated with a specific annotation.RoundContext.annotatedTypes
(TypeName annotationType) All types annotated with a specific annotation.static String
Provides copyright header to be added before package declaration.static Codegen
Codegen.create
(CodegenContext ctx, TypeName generator) Create a new instance of the top level Codegen.static Annotation
CodegenUtil.generatedAnnotation
(TypeName generator, TypeName trigger, TypeName generatedType, String versionId, String comments) Create a generated annotation.RoundContext.generatedType
(TypeName type) Class model builder for a type that is to be code generated.static Predicate
<TypedElementInfo> ElementInfoPredicates.hasAnnotation
(TypeName annotation) Predicate for an existence of an annotation.static Predicate
<TypedElementInfo> Predicate for element with the specified parameters types (suitable for methods).protected static boolean
TypeInfoFactoryBase.isBuiltInJavaType
(TypeName type) Check if the provided type is either a primitive type, or is from thejava
package namespace.ModuleInfo.BuilderBase.putProvide
(TypeName key, List<TypeName> provide) This method adds a new value to the map, or replaces it if the key already exists.default void
CodegenFiler.services
(TypeName generator, TypeName providerInterface, List<TypeName> providers, Object... originatingElements) Write aMETA-INF/services
file for a specific provider interface and implementation(s).Discover information about the provided type.CodegenContext.typeInfo
(TypeName typeName, Predicate<TypedElementInfo> elementPredicate) Discover information about the provided type, with a predicate for child elements.CodegenContextDelegate.typeInfo
(TypeName typeName, Predicate<TypedElementInfo> elementPredicate) Modifier and TypeMethodDescriptionModuleInfo.BuilderBase.addProvides
(TypeName key, List<TypeName> provides) This method adds a new value to the map value, or creates a new value.ModuleInfo.BuilderBase.addProvides
(Map<? extends TypeName, List<TypeName>> provides) This method keeps existing values, then puts all new values into the map.ModuleInfo.BuilderBase.addProvides
(Map<? extends TypeName, List<TypeName>> provides) This method keeps existing values, then puts all new values into the map.Used service loader providers.static Predicate
<TypedElementInfo> Predicate for element with the specified parameters types (suitable for methods).This method replaces all values with the new ones.This method replaces all values with the new ones.ModuleInfo.BuilderBase.putProvide
(TypeName key, List<TypeName> provide) This method adds a new value to the map, or replaces it if the key already exists.default void
CodegenFiler.services
(TypeName generator, TypeName providerInterface, List<TypeName> providers, Object... originatingElements) Write aMETA-INF/services
file for a specific provider interface and implementation(s).Used service loader providers.ModifierConstructorDescriptionClassCode
(TypeName newType, ClassModel.Builder classModel, TypeName mainTrigger, Object... originatingElements) Creates an instance of aClassCode
record class. -
Uses of TypeName in io.helidon.codegen.apt
Modifier and TypeMethodDescriptionAptTypeFactory.createTypeName
(Element type) Creates a name from an element type during annotation processing.AptTypeFactory.createTypeName
(TypeElement element, TypeMirror mirror) Create type from type mirror.AptTypeFactory.createTypeName
(DeclaredType type) Creates a name from a declared type during annotation processing.AptTypeFactory.createTypeName
(TypeMirror typeMirror) Create type from type mirror.Modifier and TypeMethodDescriptionAptTypeInfoFactory.create
(AptContext ctx, TypeName typeName) Create type information for a type name, reading all child elements.AptTypeInfoFactory.create
(AptContext ctx, TypeName typeName, Predicate<TypedElementInfo> elementPredicate) Create type information for a type name. -
Uses of TypeName in io.helidon.codegen.classmodel
Modifier and TypeMethodDescriptionTypeArgument.boxed()
TypeArgument.genericTypeName()
ClassModel.typeName()
Type name of this class.Modifier and TypeMethodDescriptiondefault T
ContentBuilder.addContent
(TypeName typeName) Add type name to content, correctly handling imports.Executable.Builder.addContent
(TypeName typeName) Field.Builder.addContent
(TypeName typeName) default T
ContentBuilder.addContentCreate
(TypeName typeName) Add content that creates a newTypeName
in the generated code that is the same as the type name provided.Add specific fully qualified type name to be imported.ClassBase.Builder.addInterface
(TypeName interfaceType) Add interface this type should implement.Add a declared throws definition.Type this argument is bound to.int
Method.Builder.returnType
(TypeName type) Set return type of the method.Method.Builder.returnType
(TypeName type, String description) Set return type of the method.Set new super type of this type. -
Uses of TypeName in io.helidon.codegen.helidon.copyright
-
Uses of TypeName in io.helidon.codegen.scan
Modifier and TypeMethodDescriptionstatic TypeName
ScanTypeFactory.create
(io.github.classgraph.ClassInfo classInfo) Creates a name from a class info from classpath scanning.static TypeName
ScanTypeFactory.create
(io.github.classgraph.HierarchicalTypeSignature signature) Creates a type name for a classpath scanning type with possible generic declaration.Modifier and TypeMethodDescriptionScanTypeInfoFactory.create
(ScanContext ctx, TypeName typeName) Create type information for a type name, reading all child elements.ScanTypeInfoFactory.create
(ScanContext ctx, TypeName typeName, Predicate<TypedElementInfo> elementPredicate) Create type information for a type name. -
Uses of TypeName in io.helidon.codegen.spi
Modifier and TypeMethodDescriptionCodegenProvider.supportedAnnotations()
Annotations that are supported.Modifier and TypeMethodDescriptionCreate a copyright header, including comment begin/end, or line comments.CodegenExtensionProvider.create
(CodegenContext ctx, TypeName generatorType) Create a new instance of the extension provider.GeneratedAnnotationProvider.create
(TypeName generator, TypeName trigger, TypeName generatedType, String versionId, String comments) Create a generated annotation. -
Uses of TypeName in io.helidon.common.types
Modifier and TypeClassDescriptionstatic class
TypeName.BuilderBase<BUILDER extends TypeName.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends TypeName> Fluent API builder base forTypeName
.Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Modifier and TypeFieldDescriptionstatic final TypeName
TypeNames.ACCESS_MODIFIER
Helidon access modifier (enum).static final TypeName
TypeNames.ANNOTATION
Helidon annotation type.static final TypeName
TypeNames.BOXED_BOOLEAN
Boxed boolean type.static final TypeName
TypeNames.BOXED_BYTE
Boxed byte type.static final TypeName
TypeNames.BOXED_CHAR
Boxed char type.static final TypeName
TypeNames.BOXED_DOUBLE
Boxed double type.static final TypeName
TypeNames.BOXED_FLOAT
Boxed float type.static final TypeName
TypeNames.BOXED_INT
Boxed int type.static final TypeName
TypeNames.BOXED_LONG
Boxed long type.static final TypeName
TypeNames.BOXED_SHORT
Boxed short type.static final TypeName
TypeNames.BOXED_VOID
Boxed void type.static final TypeName
TypeNames.COLLECTION
Type name forCollection
.static final TypeName
TypeNames.DURATION
Type name forDuration
.static final TypeName
TypeNames.ELEMENT_KIND
Helidon element kind (enum).static final TypeName
TypeNames.GENERATED
Helidon Generated annotation type.static final TypeName
TypeNames.GENERIC_TYPE
HelidonGenericType
.static final TypeName
TypeNames.LIST
Type name forList
.static final TypeName
TypeNames.MAP
Type name forMap
.static final TypeName
TypeNames.OBJECT
Type name forObject
.static final TypeName
TypeNames.OPTIONAL
Type name forOptional
.static final TypeName
TypeNames.PRIMITIVE_BOOLEAN
Primitive boolean type.static final TypeName
TypeNames.PRIMITIVE_BYTE
Primitive byte type.static final TypeName
TypeNames.PRIMITIVE_CHAR
Primitive char type.static final TypeName
TypeNames.PRIMITIVE_DOUBLE
Primitive double type.static final TypeName
TypeNames.PRIMITIVE_FLOAT
Primitive float type.static final TypeName
TypeNames.PRIMITIVE_INT
Primitive int type.static final TypeName
TypeNames.PRIMITIVE_LONG
Primitive long type.static final TypeName
TypeNames.PRIMITIVE_SHORT
Primitive short type.static final TypeName
TypeNames.PRIMITIVE_VOID
Primitive void type.static final TypeName
TypeNames.RETENTION
Type name forRetention
.static final TypeName
TypeNames.SET
Type name forSet
.static final TypeName
TypeNames.STRING
Type name forString
.static final TypeName
TypeNames.SUPPLIER
Type name forSupplier
.static final TypeName
TypeNames.TYPE_NAME
Type name of the type name.static final TypeName
TypeNames.TYPED_ELEMENT_INFO
Type name of typed element info.Modifier and TypeMethodDescriptionTypeName.boxed()
Return the boxed equivalent of this type.TypeName.BuilderBase.TypeNameImpl.boxed()
TypeName.Builder.build()
TypeName.Builder.buildPrototype()
static TypeName
Create a type name from a type (such as class).static TypeName
Creates a type name from a fully qualified class name.static TypeName
TypeName.createFromGenericDeclaration
(String genericAliasTypeName) Creates a type name from a generic alias type name.TypeName.BuilderBase.TypeNameImpl.genericTypeName()
TypeName.genericTypeName()
The base generic type name, stripped of anyTypeNameBlueprint.typeArguments()
.Annotation.BuilderBase.AnnotationImpl.typeName()
TypedElementInfo.BuilderBase.TypedElementInfoImpl.typeName()
TypeInfo.BuilderBase.TypeInfoImpl.typeName()
Modifier and TypeMethodDescriptionTypedElementInfo.BuilderBase.componentTypes()
Returns the component type names describing the element.TypedElementInfo.BuilderBase.TypedElementInfoImpl.componentTypes()
TypedElementInfo.BuilderBase.enclosingType()
The enclosing type name for this typed element.TypedElementInfo.BuilderBase.TypedElementInfoImpl.enclosingType()
TypeInfo.BuilderBase.referencedModuleNames()
Populated if the (external) module name containing the type is known.TypeInfo.BuilderBase.TypeInfoImpl.referencedModuleNames()
TypeInfo.BuilderBase.referencedTypeNamesToAnnotations()
Any Map, List, Set, or method that hasTypeNameBlueprint.typeArguments()
will be analyzed and any type arguments will have its annotations added here.TypeInfo.BuilderBase.TypeInfoImpl.referencedTypeNamesToAnnotations()
TypedElementInfo.BuilderBase.throwsChecked()
TypedElementInfo.BuilderBase.TypedElementInfoImpl.throwsChecked()
TypeName.BuilderBase.typeArguments()
Returns the list of generic type arguments, or an empty list if no generics are in use.TypeName.BuilderBase.TypeNameImpl.typeArguments()
Annotation.BuilderBase.typeName()
The type name, e.g.,Objects
-> "java.util.Objects".TypedElementInfo.BuilderBase.typeName()
The type name for the element (e.g., java.util.List).TypeInfo.BuilderBase.typeName()
The type name.Modifier and TypeMethodDescriptionTypeInfo.BuilderBase.addReferencedTypeNamesToAnnotation
(TypeName key, Annotation referencedTypeNamesToAnnotation) This method adds a new value to the map value, or creates a new value.TypeInfo.BuilderBase.addReferencedTypeNamesToAnnotations
(TypeName key, List<Annotation> referencedTypeNamesToAnnotations) This method adds a new value to the map value, or creates a new value.TypeName.BuilderBase.addTypeArgument
(TypeName typeArgument) Returns the list of generic type arguments, or an empty list if no generics are in use.default Annotation
Annotated.annotation
(TypeName annotationType) Get an annotation on this annotated type.static TypeName.Builder
Create a new fluent API builder from an existing instance.int
static Annotation
Creates an instance for an annotation with no value.static Annotation
Creates an instance for an annotation with a value.static Annotation
Creates an instance for annotation with zero or more values.TypedElementInfo.BuilderBase.enclosingType
(TypeName enclosingType) The enclosing type name for this typed element.default Optional
<Annotation> Annotated.findAnnotation
(TypeName annotationType) Find an annotation on this annotated type.static <T extends Annotation>
Optional<T> Annotations.findFirst
(TypeName annoTypeName, Collection<T> coll) Attempts to find the annotation in the provided collection.Update this builder from an existing prototype instance.default boolean
Annotated.hasAnnotation
(TypeName annotationType) Check if the annotation exists on this annotated.TypeInfo.BuilderBase.putReferencedModuleName
(TypeName key, String referencedModuleName) This method adds a new value to the map, or replaces it if the key already exists.TypeInfo.BuilderBase.putReferencedTypeNamesToAnnotation
(TypeName key, List<Annotation> referencedTypeNamesToAnnotation) This method adds a new value to the map, or replaces it if the key already exists.The type name, e.g.,Objects
-> "java.util.Objects".The type name for the element (e.g., java.util.List).The type name.Modifier and TypeMethodDescriptionTypedElementInfo.BuilderBase.addComponentTypes
(List<? extends TypeName> componentTypes) Returns the component type names describing the element.TypeInfo.BuilderBase.addReferencedModuleNames
(Map<? extends TypeName, ? extends String> referencedModuleNames) This method keeps existing values, then puts all new values into the map.TypeInfo.BuilderBase.addReferencedTypeNamesToAnnotations
(Map<? extends TypeName, List<Annotation>> referencedTypeNamesToAnnotations) This method keeps existing values, then puts all new values into the map.TypedElementInfo.BuilderBase.addThrowsChecked
(Set<? extends TypeName> throwsChecked) TypeName.BuilderBase.addTypeArguments
(List<? extends TypeName> typeArguments) Returns the list of generic type arguments, or an empty list if no generics are in use.TypedElementInfo.BuilderBase.componentTypes
(List<? extends TypeName> componentTypes) Returns the component type names describing the element.TypeInfo.BuilderBase.referencedModuleNames
(Map<? extends TypeName, ? extends String> referencedModuleNames) This method replaces all values with the new ones.TypeInfo.BuilderBase.referencedTypeNamesToAnnotations
(Map<? extends TypeName, List<Annotation>> referencedTypeNamesToAnnotations) This method replaces all values with the new ones.TypedElementInfo.BuilderBase.throwsChecked
(Set<? extends TypeName> throwsChecked) TypeName.BuilderBase.typeArguments
(List<? extends TypeName> typeArguments) Returns the list of generic type arguments, or an empty list if no generics are in use.The type name, e.g.,Objects
-> "java.util.Objects".The type name for the element (e.g., java.util.List).The type name.