Module io.helidon.pico.tools
Package io.helidon.pico.tools
Interface CustomAnnotationTemplateRequest
public interface CustomAnnotationTemplateRequest
The request will be generated internally and then passed to the appropriate
CustomAnnotationTemplateCreator to handle the request.-
Method Summary
Modifier and TypeMethodDescriptionThe type of the annotation being processed.The enclosing class type info of the target element being processed.Generic template creator.booleanReturns true if the element is declared to be static.booleanReturns true if the code should be literally generated with the providedfiler.Projects theenclosingTypeInfo()as aServiceInfoBasicstype.The target element being processed.The access modifier of the element.Only applicable forElementKind.METHODorElementKind.CONSTRUCTOR.
-
Method Details
-
annoTypeName
TypeName annoTypeName()The type of the annotation being processed.- Returns:
- the type of the annotation being processed
-
targetElement
TypedElementName targetElement()The target element being processed. This element is the one with theannoTypeName()assigned to it.- Returns:
- the target element being processed
-
targetElementAccess
ElementInfo.Access targetElementAccess()The access modifier of the element.- Returns:
- the access modifier of the element
-
targetElementArgs
List<TypedElementName> targetElementArgs()Only applicable forElementKind.METHODorElementKind.CONSTRUCTOR.- Returns:
- the list of typed arguments for this method or constructor
-
isElementStatic
boolean isElementStatic()Returns true if the element is declared to be static.- Returns:
- returns true if the element is declared to be private
-
serviceInfo
ServiceInfoBasics serviceInfo()Projects theenclosingTypeInfo()as aServiceInfoBasicstype.- Returns:
- the basic service info of the element being processed
-
enclosingTypeInfo
TypeInfo enclosingTypeInfo()The enclosing class type info of the target element being processed.- Returns:
- the enclosing class type info of the target element being processed
-
isFilerEnabled
boolean isFilerEnabled()Returns true if the code should be literally generated with the providedfiler.- Returns:
- true if the code should be literally generated with the filer
-
genericTemplateCreator
GenericTemplateCreator genericTemplateCreator()Generic template creator.- Returns:
- the generic template creator
-