Class AbstractJavaElement
java.lang.Object
io.micronaut.inject.ast.annotation.AbstractAnnotationElement
io.micronaut.annotation.processing.visitor.AbstractJavaElement
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotatedElement,io.micronaut.core.annotation.AnnotationMetadata,io.micronaut.core.annotation.AnnotationMetadataDelegate,io.micronaut.core.annotation.AnnotationMetadataProvider,io.micronaut.core.annotation.AnnotationSource,io.micronaut.core.naming.Described,io.micronaut.core.naming.Named,io.micronaut.inject.ast.annotation.MutableAnnotationMetadataDelegate<io.micronaut.inject.ast.Element>,io.micronaut.inject.ast.Element
- Direct Known Subclasses:
JavaClassElement,JavaMethodElement,JavaPackageElement
@Internal
public abstract class AbstractJavaElement
extends io.micronaut.inject.ast.annotation.AbstractAnnotationElement
An abstract class for other elements to extend from.
- Since:
- 1.0
-
Field Summary
FieldsFields inherited from class io.micronaut.inject.ast.annotation.AbstractAnnotationElement
elementAnnotationMetadataFactory, presetAnnotationMetadataFields inherited from interface io.micronaut.core.annotation.AnnotationMetadata
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBERFields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTYFields inherited from interface io.micronaut.inject.ast.Element
EMPTY_ELEMENT_ARRAYFields inherited from interface io.micronaut.inject.ast.annotation.MutableAnnotationMetadataDelegate
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AbstractJavaElementcopyThis()protected voidcopyValues(AbstractJavaElement element) booleanSet<io.micronaut.inject.ast.ElementModifier>getName()inthashCode()booleanbooleanisFinal()booleanbooleanbooleanbooleanisPublic()booleanisStatic()protected final AbstractJavaElementmakeCopy()protected final @NonNull io.micronaut.inject.ast.ClassElementnewClassElement(JavaNativeElement owner, TypeMirror type, Map<String, io.micronaut.inject.ast.ClassElement> declaredElementTypeArguments) Obtain the ClassElement for the given mirror.protected final @NonNull io.micronaut.inject.ast.ClassElementnewClassElement(TypeMirror type, Map<String, io.micronaut.inject.ast.ClassElement> declaredElementTypeArguments) Obtain the ClassElement for the given mirror.resolveTypeArguments(ExecutableElement executableElement, Map<String, io.micronaut.inject.ast.ClassElement> parentTypeArguments) resolveTypeArguments(TypeElement typeElement, @Nullable List<? extends TypeMirror> typeMirrorArguments) toString()io.micronaut.inject.ast.ElementwithAnnotationMetadata(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) Methods inherited from class io.micronaut.inject.ast.annotation.AbstractAnnotationElement
annotate, annotate, annotate, annotate, annotate, getAnnotationMetadata, getAnnotationMetadataToWrite, getElementAnnotationMetadata, getElementAnnotationMetadataFactory, removeAnnotation, removeAnnotation, removeAnnotationIf, removeStereotype, removeStereotypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotatedElement
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullableMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadata
enumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegate
booleanValue, 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.Element
getDescription, getDescription, getSimpleName, isSynthetic
-
Field Details
-
visitorContext
-
-
Method Details
-
copyThis
- Returns:
- copy of this element
-
copyValues
- Parameters:
element- the values to be copied to
-
makeCopy
-
withAnnotationMetadata
public io.micronaut.inject.ast.Element withAnnotationMetadata(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) -
isPackagePrivate
public boolean isPackagePrivate() -
getName
-
getModifiers
-
getDocumentation
-
isAbstract
public boolean isAbstract() -
isStatic
public boolean isStatic() -
isPublic
public boolean isPublic() -
isPrivate
public boolean isPrivate() -
isFinal
public boolean isFinal() -
isProtected
public boolean isProtected() -
getNativeType
-
toString
-
newClassElement
@NonNull protected final @NonNull io.micronaut.inject.ast.ClassElement newClassElement(JavaNativeElement owner, TypeMirror type, Map<String, io.micronaut.inject.ast.ClassElement> declaredElementTypeArguments) Obtain the ClassElement for the given mirror.- Parameters:
owner- The ownertype- The typedeclaredElementTypeArguments- The type arguments of the declaring element (method, class)- Returns:
- The class element
-
newClassElement
@NonNull protected final @NonNull io.micronaut.inject.ast.ClassElement newClassElement(TypeMirror type, Map<String, io.micronaut.inject.ast.ClassElement> declaredElementTypeArguments) Obtain the ClassElement for the given mirror.- Parameters:
type- The typedeclaredElementTypeArguments- The type arguments of the declaring element (method, class)- Returns:
- The class element
-
resolveTypeArguments
protected final Map<String,io.micronaut.inject.ast.ClassElement> resolveTypeArguments(TypeElement typeElement, @Nullable @Nullable List<? extends TypeMirror> typeMirrorArguments) -
resolveTypeArguments
protected final Map<String,io.micronaut.inject.ast.ClassElement> resolveTypeArguments(ExecutableElement executableElement, Map<String, io.micronaut.inject.ast.ClassElement> parentTypeArguments) -
equals
-
hashCode
public int hashCode()
-