Class AbstractJavaElement
java.lang.Object
io.micronaut.inject.ast.annotation.AbstractAnnotationElement
io.micronaut.annotation.processing.visitor.AbstractJavaElement
- All Implemented Interfaces:
- AnnotatedElement,- AnnotationMetadata,- AnnotationMetadataDelegate,- AnnotationMetadataProvider,- AnnotationSource,- Described,- Named,- MutableAnnotationMetadataDelegate<Element>,- Element
- Direct Known Subclasses:
- AbstractTypeAwareJavaElement,- JavaPackageElement
An abstract class for other elements to extend from.
- Since:
- 1.0
- Author:
- James Kleeh, graemerocher
- 
Field SummaryFieldsFields inherited from class io.micronaut.inject.ast.annotation.AbstractAnnotationElementelementAnnotationMetadataFactory, presetAnnotationMetadataFields inherited from interface io.micronaut.core.annotation.AnnotationMetadataCLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBERFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTYFields inherited from interface io.micronaut.inject.ast.ElementEMPTY_ELEMENT_ARRAYFields inherited from interface io.micronaut.inject.ast.annotation.MutableAnnotationMetadataDelegateEMPTY
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract AbstractJavaElementcopyThis()protected voidcopyValues(AbstractJavaElement element) booleangetDocumentation(boolean parse) getName()Returns the native underlying type.inthashCode()booleanbooleanisFinal()booleanbooleanbooleanbooleanisPublic()booleanisStatic()protected final AbstractJavaElementmakeCopy()protected final @NonNull ClassElementnewClassElement(JavaNativeElement owner, TypeMirror type, Map<String, ClassElement> declaredElementTypeArguments) Obtain the ClassElement for the given mirror.protected final @NonNull ClassElementnewClassElement(JavaNativeElement owner, TypeMirror type, Map<String, ClassElement> declaredElementTypeArguments, String doc) Obtain the ClassElement for the given mirror.protected final @NonNull ClassElementnewClassElement(TypeMirror type, Map<String, ClassElement> declaredElementTypeArguments) Obtain the ClassElement for the given mirror.protected final Map<String,ClassElement> resolveTypeArguments(ExecutableElement executableElement, Map<String, ClassElement> parentTypeArguments) protected final Map<String,ClassElement> resolveTypeArguments(TypeElement typeElement, @Nullable List<? extends TypeMirror> typeMirrorArguments) toString()withAnnotationMetadata(AnnotationMetadata annotationMetadata) Copies this element and overrides its annotations.Methods inherited from class io.micronaut.inject.ast.annotation.AbstractAnnotationElementannotate, annotate, annotate, annotate, annotate, getAnnotationMetadata, getAnnotationMetadataToWrite, getElementAnnotationMetadata, getElementAnnotationMetadataFactory, removeAnnotation, removeAnnotation, removeAnnotationIf, removeStereotype, removeStereotypeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotatedElementisDeclaredNonNull, isDeclaredNullable, isNonNull, isNullableMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataenumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegatebooleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, copyAnnotationMetadata, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByName, getAnnotationValuesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByName, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getTargetAnnotationMetadata, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.inject.ast.ElementgetDescription, getDescription, getDocumentation, getSimpleName, isSynthetic
- 
Field Details- 
visitorContext
 
- 
- 
Method Details- 
copyThis- Returns:
- copy of this element
 
- 
copyValues- Parameters:
- element- the values to be copied to
 
- 
makeCopy
- 
withAnnotationMetadataDescription copied from interface:ElementCopies this element and overrides its annotations.- Parameters:
- annotationMetadata- The annotation metadata
- Returns:
- A new element
 
- 
isPackagePrivatepublic boolean isPackagePrivate()- Returns:
- True if the element is package private.
 
- 
getName- Returns:
- The name of the element. For a type this represents the binary name.
 
- 
getModifiers- Returns:
- The ElementModifiertypes for this class element
 
- 
getDocumentation- Parameters:
- parse- True if the content should be parsed to extract documentation
- Returns:
- The documentation, if any.
 
- 
isAbstractpublic boolean isAbstract()- Returns:
- True if the element is abstract.
 
- 
isStaticpublic boolean isStatic()- Returns:
- True if the element is static.
 
- 
isPublicpublic boolean isPublic()- Returns:
- True if the element is public.
 
- 
isPrivatepublic boolean isPrivate()- Returns:
- True if the element is private.
 
- 
isFinalpublic boolean isFinal()- Returns:
- True if the element is final.
 
- 
isProtectedpublic boolean isProtected()- Returns:
- True if the element is protected.
 
- 
getNativeTypeDescription copied from interface:ElementReturns the native underlying type. This API is extended by all inject language implementations. The object returned by this method will be the language native type the information is being retrieved from.- Returns:
- The native type
 
- 
toString
- 
newClassElement@NonNull protected final @NonNull ClassElement newClassElement(JavaNativeElement owner, TypeMirror type, Map<String, ClassElement> declaredElementTypeArguments) Obtain the ClassElement for the given mirror.- Parameters:
- owner- The owner
- type- The type
- declaredElementTypeArguments- The type arguments of the declaring element (method, class)
- Returns:
- The class element
 
- 
newClassElement@NonNull protected final @NonNull ClassElement newClassElement(JavaNativeElement owner, TypeMirror type, Map<String, ClassElement> declaredElementTypeArguments, String doc) Obtain the ClassElement for the given mirror.- Parameters:
- owner- The owner
- type- The type
- declaredElementTypeArguments- The type arguments of the declaring element (method, class)
- doc- The optional documentation
- Returns:
- The class element
 
- 
newClassElement@NonNull protected final @NonNull ClassElement newClassElement(TypeMirror type, Map<String, ClassElement> declaredElementTypeArguments) Obtain the ClassElement for the given mirror.- Parameters:
- type- The type
- declaredElementTypeArguments- The type arguments of the declaring element (method, class)
- Returns:
- The class element
 
- 
resolveTypeArgumentsprotected final Map<String,ClassElement> resolveTypeArguments(TypeElement typeElement, @Nullable @Nullable List<? extends TypeMirror> typeMirrorArguments) 
- 
resolveTypeArgumentsprotected final Map<String,ClassElement> resolveTypeArguments(ExecutableElement executableElement, Map<String, ClassElement> parentTypeArguments) 
- 
equals
- 
hashCodepublic int hashCode()
 
-