Class GroovyElementAnnotationMetadataFactory
java.lang.Object
io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory<org.codehaus.groovy.ast.AnnotatedNode,org.codehaus.groovy.ast.AnnotationNode>
io.micronaut.ast.groovy.annotation.GroovyElementAnnotationMetadataFactory
- All Implemented Interfaces:
ElementAnnotationMetadataFactory
public final class GroovyElementAnnotationMetadataFactory
extends AbstractElementAnnotationMetadataFactory<org.codehaus.groovy.ast.AnnotatedNode,org.codehaus.groovy.ast.AnnotationNode>
Groovy element annotation metadata factory.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory
AbstractElementAnnotationMetadataFactory.AbstractElementAnnotationMetadata, AbstractElementAnnotationMetadataFactory.MutableElementAnnotationMetadata
-
Field Summary
Fields inherited from class io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory
isReadOnly, metadataBuilder
-
Constructor Summary
ConstructorDescriptionGroovyElementAnnotationMetadataFactory
(boolean isReadOnly, GroovyAnnotationMetadataBuilder metadataBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.codehaus.groovy.ast.AnnotatedNode
getNativeElement
(Element element) Resolve native element.lookupTypeAnnotationsForClass
(ClassElement classElement) Lookup annotation metadata for the class.lookupTypeAnnotationsForGenericPlaceholder
(GenericPlaceholderElement placeholderElement) Lookup annotation metadata for the placeholder.lookupTypeAnnotationsForWildcard
(WildcardElement wildcardElement) Lookup annotation metadata for the wildcard.readOnly()
Makes this factory read-only.Methods inherited from class io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory
build, buildGenericTypeAnnotations, buildMutable, buildTypeAnnotations, lookupForClass, lookupForField, lookupForMethod, lookupForPackage, lookupForParameter
-
Constructor Details
-
GroovyElementAnnotationMetadataFactory
public GroovyElementAnnotationMetadataFactory(boolean isReadOnly, GroovyAnnotationMetadataBuilder metadataBuilder)
-
-
Method Details
-
readOnly
Description copied from interface:ElementAnnotationMetadataFactory
Makes this factory read-only. No modification to the annotation metadata should be persisted into the shared cache.- Returns:
- read-only factory
-
getNativeElement
Description copied from class:AbstractElementAnnotationMetadataFactory
Resolve native element.- Overrides:
getNativeElement
in classAbstractElementAnnotationMetadataFactory<org.codehaus.groovy.ast.AnnotatedNode,
org.codehaus.groovy.ast.AnnotationNode> - Parameters:
element
- The element- Returns:
- The native element
-
lookupTypeAnnotationsForClass
protected AbstractAnnotationMetadataBuilder.CachedAnnotationMetadata lookupTypeAnnotationsForClass(ClassElement classElement) Description copied from class:AbstractElementAnnotationMetadataFactory
Lookup annotation metadata for the class.- Overrides:
lookupTypeAnnotationsForClass
in classAbstractElementAnnotationMetadataFactory<org.codehaus.groovy.ast.AnnotatedNode,
org.codehaus.groovy.ast.AnnotationNode> - Parameters:
classElement
- The element- Returns:
- The annotation metadata
-
lookupTypeAnnotationsForGenericPlaceholder
protected AbstractAnnotationMetadataBuilder.CachedAnnotationMetadata lookupTypeAnnotationsForGenericPlaceholder(GenericPlaceholderElement placeholderElement) Description copied from class:AbstractElementAnnotationMetadataFactory
Lookup annotation metadata for the placeholder.- Overrides:
lookupTypeAnnotationsForGenericPlaceholder
in classAbstractElementAnnotationMetadataFactory<org.codehaus.groovy.ast.AnnotatedNode,
org.codehaus.groovy.ast.AnnotationNode> - Parameters:
placeholderElement
- The element- Returns:
- The annotation metadata
-
lookupTypeAnnotationsForWildcard
protected AbstractAnnotationMetadataBuilder.CachedAnnotationMetadata lookupTypeAnnotationsForWildcard(WildcardElement wildcardElement) Description copied from class:AbstractElementAnnotationMetadataFactory
Lookup annotation metadata for the wildcard.- Overrides:
lookupTypeAnnotationsForWildcard
in classAbstractElementAnnotationMetadataFactory<org.codehaus.groovy.ast.AnnotatedNode,
org.codehaus.groovy.ast.AnnotationNode> - Parameters:
wildcardElement
- The element- Returns:
- The annotation metadata
-