Uses of Interface
io.helidon.common.types.TypeInfo
Packages that use TypeInfo
Package
Description
Code generation for
Blueprint annotated interfaces.Code generation and processing support.
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.
Common code processing and generation.
Service provider interface for code processing and generation.
Common utilities for declarative code generation.
Shared declarative gRPC code generation support.
HTTP Rest related code generation.
Code generation for Helidon Webserver (HTTP endpoints etc.).
HTTP Rest model.
Code generation for Helidon Service Registry.
SPI for extending code generation capabilities of Helidon Service Registry.
-
Uses of TypeInfo in io.helidon.builder.codegen
Methods in io.helidon.builder.codegen that return TypeInfoModifier and TypeMethodDescriptionPrototypeInfo.blueprint()Blueprint type info.PrototypeInfo.BuilderBase.PrototypeInfoImpl.blueprint()Methods in io.helidon.builder.codegen that return types with arguments of type TypeInfoModifier and TypeMethodDescriptionPrototypeInfo.BuilderBase.blueprint()Blueprint type info.OptionInfo.BuilderBase.declaringType()Type that declares this option.OptionInfo.BuilderBase.OptionInfoImpl.declaringType()OptionInfo.declaringType()Type that declares this option.Methods in io.helidon.builder.codegen with parameters of type TypeInfoModifier and TypeMethodDescriptionBlueprint type info.OptionInfo.BuilderBase.declaringType(TypeInfo declaringType) Type that declares this option.Method parameters in io.helidon.builder.codegen with type arguments of type TypeInfo -
Uses of TypeInfo in io.helidon.codegen
Methods in io.helidon.codegen that return types with arguments of type TypeInfoModifier and TypeMethodDescriptionRoundContext.annotatedTypes(TypeName annotationType) All types annotated with a specific annotation (including types that inherit such annotation from super types or through interfaces).TypeInfoFactoryBase.mapType(CodegenContext ctx, TypeInfo type) Map a type using context type mappers.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) Discover information about the provided type.RoundContext.types()All types that are processed in this round.Methods in io.helidon.codegen with parameters of type TypeInfoModifier and TypeMethodDescriptionTypeHierarchyResolver.effectiveInterfaceMethods(TypeInfo interfaceInfo) Returns effective interface methods with interface type variables resolved.TypeHierarchyResolver.environmentOverrides(TypeInfo interfaceInfo, TypedElementInfo overrider, TypedElementInfo overridden) Determines whether one declaration overrides another in the inspected interface.TypeHierarchyResolver.environmentReturnTypeAssignable(TypeInfo interfaceInfo, TypedElementInfo candidate, TypedElementInfo existing) Determines whether a candidate method has a return type that can implement another declaration.static List<List<Annotation>> TypeHierarchy.hierarchyAnnotationCandidates(CodegenContext ctx, TypeInfo type, TypedElementInfo method, Set<TypeName> annotationTypes) Find all distinct effective occurrences of any of the annotation types on matching methods in a method's type hierarchy, grouped by the declaring method.static List<Annotation> TypeHierarchy.hierarchyAnnotations(CodegenContext ctx, TypeInfo type) Find all annotations on the whole type hierarchy.static List<Annotation> TypeHierarchy.hierarchyAnnotations(CodegenContext ctx, TypeInfo type, TypedElementInfo element) Find all annotations on the whole type hierarchy.static List<Annotation> TypeHierarchy.hierarchyAnnotations(CodegenContext ctx, TypeInfo type, TypedElementInfo executable, TypedElementInfo parameter, int parameterIndex) Annotations of a parameter, taken from the full inheritance hierarchy (super type(s), interface(s).TypeInfoFactoryBase.mapType(CodegenContext ctx, TypeInfo type) Map a type using context type mappers.TypeHierarchy.nestedAnnotations(CodegenContext ctx, TypeInfo typeInfo) Annotations on thetypeInfo, its methods, method parameters, and the type-use positions nested in theirTypeNames.protected Optional<TypedElementInfo> TypeHierarchyResolver.resolveEnvironmentMember(TypeInfo interfaceInfo, TypedElementInfo declaration) Resolves a declaration as a member of the inspected interface.final TypeNameTypeHierarchyResolver.resolveMemberType(TypeInfo enclosingType, TypeName useSiteType, TypeName memberType) Resolves a member type in the context of one concrete enclosing type.CodegenContext.uniqueName(TypeInfo type, TypedElementInfo element) Get the unique name for the element within the provided type.CodegenContextBase.uniqueName(TypeInfo type, TypedElementInfo element) CodegenContextDelegate.uniqueName(TypeInfo type, TypedElementInfo element) Method parameters in io.helidon.codegen with type arguments of type TypeInfoModifier and TypeMethodDescriptionvoidCodegen.process(List<TypeInfo> allTypes, List<ModuleTypeInfo> allModules) Process all types and modules discovered.default TypeHierarchyResolverCodegenContext.typeHierarchyResolver(Function<TypeName, Optional<TypeInfo>> typeInfoLookup) Creates the Java type hierarchy resolver for a processing round.CodegenContextDelegate.typeHierarchyResolver(Function<TypeName, Optional<TypeInfo>> typeInfoLookup) Constructor parameters in io.helidon.codegen with type arguments of type TypeInfoModifierConstructorDescriptionprotectedTypeHierarchyResolver(Function<TypeName, Optional<TypeInfo>> typeInfoLookup) Creates a resolver for an environment specific type information lookup. -
Uses of TypeInfo in io.helidon.codegen.scan
Methods in io.helidon.codegen.scan that return types with arguments of type TypeInfoModifier and TypeMethodDescriptionScanTypeInfoFactory.create(ScanContext ctx, io.github.classgraph.ClassInfo classInfo) Create type information from a type element, reading all child elements.ScanTypeInfoFactory.create(ScanContext ctx, io.github.classgraph.ClassInfo classInfo, Predicate<TypedElementInfo> elementPredicate) Create type information from a type element.ScanTypeInfoFactory.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 TypeInfo in io.helidon.codegen.spi
Methods in io.helidon.codegen.spi that return types with arguments of type TypeInfoModifier and TypeMethodDescriptionTypeMapper.map(CodegenContext ctx, TypeInfo typeInfo) Map the original type to a different type, or remove it from processing.Methods in io.helidon.codegen.spi with parameters of type TypeInfoModifier and TypeMethodDescriptionTypeMapper.map(CodegenContext ctx, TypeInfo typeInfo) Map the original type to a different type, or remove it from processing.booleanTypeMapper.supportsType(TypeInfo type) Check if the type is supported. -
Uses of TypeInfo in io.helidon.common.types
Classes in io.helidon.common.types with type parameters of type TypeInfoModifier and TypeClassDescriptionstatic classTypeInfo.BuilderBase<BUILDER extends TypeInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TypeInfo>Fluent API builder base forTypeInfo.Classes in io.helidon.common.types that implement TypeInfoModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Subclasses with type arguments of type TypeInfo in io.helidon.common.typesClasses in io.helidon.common.types that implement interfaces with type arguments of type TypeInfoMethods in io.helidon.common.types that return TypeInfoMethods in io.helidon.common.types that return types with arguments of type TypeInfoModifier and TypeMethodDescriptionTypeInfo.findInHierarchy(TypeName typeName) Checks if the current type implements, or extends the provided type.TypeInfo.BuilderBase.interfaceTypeInfo()The interface classes for this type info.TypeInfo.BuilderBase.TypeInfoImpl.interfaceTypeInfo()TypeInfo.interfaceTypeInfo()The interface classes for this type info.TypeInfo.BuilderBase.superTypeInfo()The parent/super class for this type info.TypeInfo.BuilderBase.TypeInfoImpl.superTypeInfo()TypeInfo.superTypeInfo()The parent/super class for this type info.Methods in io.helidon.common.types with parameters of type TypeInfoModifier and TypeMethodDescriptionTypeInfo.BuilderBase.addInterfaceTypeInfo(TypeInfo interfaceTypeInfo) The interface classes for this type info.static TypeInfo.BuilderCreate a new fluent API builder from an existing instance.Update this builder from an existing prototype instance.TypeInfo.BuilderBase.superTypeInfo(TypeInfo superTypeInfo) The parent/super class for this type info.Method parameters in io.helidon.common.types with type arguments of type TypeInfoModifier and TypeMethodDescriptionTypeInfo.BuilderBase.addInterfaceTypeInfo(List<? extends TypeInfo> interfaceTypeInfo) The interface classes for this type info.TypeInfo.BuilderBase.interfaceTypeInfo(List<? extends TypeInfo> interfaceTypeInfo) The interface classes for this type info.TypeInfo.BuilderBase.superTypeInfo(Supplier<? extends TypeInfo> supplier) The parent/super class for this type info. -
Uses of TypeInfo in io.helidon.data.codegen.common
Methods in io.helidon.data.codegen.common that return TypeInfoModifier and TypeMethodDescriptionRepositoryInfo.entityInfo()Returns the value of theentityInforecord component.protected TypeInfoRepositoryInfo.Builder.interfaceInfo()Data repository interface type info.RepositoryInfo.interfaceInfo()Returns the value of theinterfaceInforecord component.Methods in io.helidon.data.codegen.common with parameters of type TypeInfoModifier and TypeMethodDescriptionstatic RepositoryInterfaceInfoCreates an instance of implemented interface info.BaseRepositoryGenerator.createRepositoryInfo(TypeInfo interfaceInfo, CodegenContext codegenContext) Creates metadata for a Data repository interface.voidBasePersistenceGenerator.generate(CodegenContext codegenContext, RoundContext roundContext, TypeInfo interfaceInfo, RepositoryGenerator repositoryGenerator) static booleanBaseRepositoryGenerator.hasInterface(TypeInfo interfaceInfo, TypeName interfaceName) Searches forinterfaceNamein the interface hierarchy represented byTypeInfo.RepositoryInfo.Builder.interfaceInfo(TypeInfo interfaceInfo) Add data repository interface type info.Constructors in io.helidon.data.codegen.common with parameters of type TypeInfoModifierConstructorDescriptionRepositoryInfo(TypeInfo interfaceInfo, Map<TypeName, RepositoryInterfaceInfo> interfacesInfo, TypeInfo entityInfo, TypeName id) Creates an instance of aRepositoryInforecord class. -
Uses of TypeInfo in io.helidon.data.codegen.common.spi
Methods in io.helidon.data.codegen.common.spi with parameters of type TypeInfoModifier and TypeMethodDescriptionRepositoryGenerator.createRepositoryInfo(TypeInfo interfaceInfo, CodegenContext codegenContext) Create data repository interface descriptor (info).voidPersistenceGenerator.generate(CodegenContext codegenContext, RoundContext roundContext, TypeInfo repository, RepositoryGenerator repositoryGenerator) Generate persistence provider specific code. -
Uses of TypeInfo in io.helidon.declarative.codegen.common
Methods in io.helidon.declarative.codegen.common with parameters of type TypeInfoModifier and TypeMethodDescriptionstatic booleanDeclarativeElementInfo.belongsToService(TypeInfo typeInfo, TypedElementInfo element) Whether an effective element belongs to the service type being processed. -
Uses of TypeInfo in io.helidon.declarative.codegen.grpc
Methods in io.helidon.declarative.codegen.grpc with parameters of type TypeInfoModifier and TypeMethodDescriptionstatic GrpcProtoDescriptorGrpcProtoDescriptors.find(RegistryCodegenContext ctx, TypeInfo typeInfo, List<Annotation> typeAnnotations, TypeName protoAnnotation, TypeName protoDescriptorAnnotation, TypeName grpcMethodAnnotation, TypeName protoFileDescriptor, String declarationType) Find and validate the proto descriptor source declared by a declarative gRPC type.static List<TypedElementInfo> Resolve effective instance methods, including the complete superclass and interface hierarchy.static voidGrpcProtoDescriptors.validateMessageType(RegistryCodegenContext ctx, TypeInfo declaration, TypeName messageType, TypeName protoMessageDescriptor, String role) Validate that a declared request or response type is a generated protobuf message type. -
Uses of TypeInfo in io.helidon.declarative.codegen.http
Methods in io.helidon.declarative.codegen.http that return TypeInfoModifier and TypeMethodDescriptionstatic TypeInfoHttpCodegenValidation.requestParamsRecordType(Function<TypeName, Optional<TypeInfo>> typeInfoResolver, TypeName requestParamsType, Object originatingElement) Resolve and validate a request parameter record type.Methods in io.helidon.declarative.codegen.http with parameters of type TypeInfoModifier and TypeMethodDescriptionstatic List<TypedElementInfo> HttpCodegenValidation.requestParamsComponents(TypeInfo requestParamsType) Components of a request parameter record.static voidHttpCodegenValidation.validateRequestParamsBodyComponents(TypeInfo requestParamsType) Validate body parameter rules for a request parameter record.Method parameters in io.helidon.declarative.codegen.http with type arguments of type TypeInfo -
Uses of TypeInfo in io.helidon.declarative.codegen.http.webserver
Method parameters in io.helidon.declarative.codegen.http.webserver with type arguments of type TypeInfoModifier and TypeMethodDescriptionServerEndpointAnalyzer.endpoints(Collection<TypeInfo> types) Analyze endpoint types from the provided candidates. -
Uses of TypeInfo in io.helidon.declarative.codegen.model.http
Methods in io.helidon.declarative.codegen.model.http that return TypeInfoModifier and TypeMethodDescriptionModelElement.BuilderBase.ModelElementImpl.type()ModelElement.type()Type of this element.Methods in io.helidon.declarative.codegen.model.http that return types with arguments of type TypeInfoMethods in io.helidon.declarative.codegen.model.http with parameters of type TypeInfoModifier and TypeMethodDescriptionType of this element.Method parameters in io.helidon.declarative.codegen.model.http with type arguments of type TypeInfo -
Uses of TypeInfo in io.helidon.service.codegen
Methods in io.helidon.service.codegen that return TypeInfoModifier and TypeMethodDescriptionServiceContracts.FactoryAnalysis.providedTypeInfo()Type info of the provided type.ServiceSuperType.typeInfo()Type information of the super service type of this service.Methods in io.helidon.service.codegen with parameters of type TypeInfoModifier and TypeMethodDescriptionvoidServiceContracts.addContracts(Set<ResolvedType> contractSet, HashSet<ResolvedType> processed, TypeInfo typeInfo) Add contracts from the type (from its implemented interfaces and super types).static ServiceContractsServiceContracts.create(CodegenOptions options, Function<TypeName, Optional<TypeInfo>> typeInfoFactory, TypeInfo serviceInfo) Create new eligible contracts.ServiceContracts.FactoryAnalysis.create(TypeName factoryType, TypeName providedType, TypeInfo providedTypeInfo, Set<ResolvedType> providedContracts) The requested factory interface is implemented and provides one or more contracts.static ServiceSuperTypeCreate a registry based super type.booleanServiceContracts.isEligible(TypeInfo contractInfo) Check if a type info is eligible to be a contract.static TypeNameServiceContracts.requiredTypeArgument(TypeInfo typeInfo, int index) Get the desired type parameter of the type info provided.voidServiceDescriptorCodegen.service(TypeName generator, RegistryRoundContext roundCtx, Collection<TypeInfo> services, TypeInfo typeInfo) Describe a service type.RegistryRoundContext.serviceContracts(TypeInfo serviceInfo) Create service contracts for the provided service that honor configuration of contract discovery.Method parameters in io.helidon.service.codegen with type arguments of type TypeInfoModifier and TypeMethodDescriptionstatic ServiceContractsServiceContracts.create(CodegenOptions options, Function<TypeName, Optional<TypeInfo>> typeInfoFactory, TypeInfo serviceInfo) Create new eligible contracts.voidServiceDescriptorCodegen.service(TypeName generator, RegistryRoundContext roundCtx, Collection<TypeInfo> services, TypeInfo typeInfo) Describe a service type. -
Uses of TypeInfo in io.helidon.service.codegen.spi
Methods in io.helidon.service.codegen.spi with parameters of type TypeInfoModifier and TypeMethodDescriptiondefault voidInjectCodegenObserver.onInjectionPoint(RegistryRoundContext roundContext, TypeInfo service, TypedElementInfo element, TypedElementInfo argument) Called for each injection point.