java.lang.Object
io.helidon.codegen.CodegenContextDelegate
- All Implemented Interfaces:
- CodegenContext
Base of codegen context implementation that delegates common parts of the API to an existing instance.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCodegenContextDelegate(CodegenContext delegate) Create a new instance delegating all calls to the delegate.
- 
Method SummaryModifier and TypeMethodDescriptionList of available annotation mappers in this environment.List of available element mappers in this environment.filer()Filer to generate sources and resources.logger()Logger to log messages according to the environment we run in (Annotation processor, Maven plugin, command line).Annotation packages supported by the mappers.Annotations supported by the mappers.module()Module that is being processed.options()Code generation options.scope()Current code generation scope.Codegen options supported by the mappers.Discover information about the provided type.typeInfo(TypeName typeName, Predicate<TypedElementInfo> elementPredicate) Discover information about the provided type, with a predicate for child elements.List of available type mappers in this environment.uniqueName(TypeInfo type, TypedElementInfo element) Get the unique name for the element within the provided type.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.codegen.CodegenContextmoduleName
- 
Constructor Details- 
CodegenContextDelegateCreate a new instance delegating all calls to the delegate.- Parameters:
- delegate- to use for all methods
 
 
- 
- 
Method Details- 
moduleDescription copied from interface:CodegenContextModule that is being processed.- Specified by:
- modulein interface- CodegenContext
- Returns:
- module info if defined, for modules without module-info.javareturns empty optional
 
- 
filerDescription copied from interface:CodegenContextFiler to generate sources and resources.- Specified by:
- filerin interface- CodegenContext
- Returns:
- a filer abstraction
 
- 
loggerDescription copied from interface:CodegenContextLogger to log messages according to the environment we run in (Annotation processor, Maven plugin, command line).- Specified by:
- loggerin interface- CodegenContext
- Returns:
- a logger abstraction
 
- 
scopeDescription copied from interface:CodegenContextCurrent code generation scope. Usually guessed from the environment, can be overridden usingCodegenOptions.CODEGEN_SCOPE- Specified by:
- scopein interface- CodegenContext
- Returns:
- scope
 
- 
optionsDescription copied from interface:CodegenContextCode generation options.- Specified by:
- optionsin interface- CodegenContext
- Returns:
- options of the current environment
 
- 
typeInfoDescription copied from interface:CodegenContextDiscover information about the provided type. This method only checks existing classes in the system, and ignored classes created as part of the current processing round.- Specified by:
- typeInfoin interface- CodegenContext
- Parameters:
- typeName- type name to discover
- Returns:
- discovered type information, or empty if the type cannot be discovered
- See Also:
 
- 
typeInfoDescription copied from interface:CodegenContextDiscover information about the provided type, with a predicate for child elements.- Specified by:
- typeInfoin interface- CodegenContext
- Parameters:
- typeName- type name to discover
- elementPredicate- predicate for child elements
- Returns:
- discovered type information, or empty if the type cannot be discovered
 
- 
elementMappersDescription copied from interface:CodegenContextList of available element mappers in this environment. Used for example when discoveringCodegenContext.typeInfo(io.helidon.common.types.TypeName).- Specified by:
- elementMappersin interface- CodegenContext
- Returns:
- list of mapper
 
- 
typeMappersDescription copied from interface:CodegenContextList of available type mappers in this environment. Used for example when discoveringCodegenContext.typeInfo(io.helidon.common.types.TypeName).- Specified by:
- typeMappersin interface- CodegenContext
- Returns:
- list of mapper
 
- 
annotationMappersDescription copied from interface:CodegenContextList of available annotation mappers in this environment. Used for example when discoveringCodegenContext.typeInfo(io.helidon.common.types.TypeName).- Specified by:
- annotationMappersin interface- CodegenContext
- Returns:
- list of mapper
 
- 
mapperSupportedAnnotationsDescription copied from interface:CodegenContextAnnotations supported by the mappers. This is augmented by the annotations supported by all extensions and used to discover types.- Specified by:
- mapperSupportedAnnotationsin interface- CodegenContext
- Returns:
- set of annotation types supported by the mapper
 
- 
mapperSupportedAnnotationPackagesDescription copied from interface:CodegenContextAnnotation packages supported by the mappers. This is augmented by the annotation packages supported by all extensions and used to discover types.- Specified by:
- mapperSupportedAnnotationPackagesin interface- CodegenContext
- Returns:
- set of annotation packages
 
- 
supportedOptionsDescription copied from interface:CodegenContextCodegen options supported by the mappers. This is augmented by the options supported by all extensions.- Specified by:
- supportedOptionsin interface- CodegenContext
- Returns:
- set of supported options
 
- 
uniqueNameDescription copied from interface:CodegenContextGet the unique name for the element within the provided type.- Specified by:
- uniqueNamein interface- CodegenContext
- Parameters:
- type- type that owns the element
- element- the element
- Returns:
- unique name for the element (will always start with the element name)
 
 
-