public abstract class AbstractJavaElement
extends java.lang.Object
implements io.micronaut.inject.ast.Element, io.micronaut.core.annotation.AnnotationMetadataDelegate
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
annotate(io.micronaut.core.annotation.AnnotationValue<T> annotationValue) |
<T extends java.lang.annotation.Annotation> |
annotate(java.lang.String annotationType,
java.util.function.Consumer<io.micronaut.core.annotation.AnnotationValueBuilder<T>> consumer) |
boolean |
equals(java.lang.Object o) |
io.micronaut.core.annotation.AnnotationMetadata |
getAnnotationMetadata() |
java.util.Set<io.micronaut.inject.ast.ElementModifier> |
getModifiers() |
java.lang.String |
getName() |
java.lang.Object |
getNativeType() |
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isFinal() |
boolean |
isPackagePrivate() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
protected io.micronaut.inject.ast.ClassElement |
mirrorToClassElement(javax.lang.model.type.TypeMirror returnType,
JavaVisitorContext visitorContext)
Obtain the ClassElement for the given mirror.
|
protected io.micronaut.inject.ast.ClassElement |
mirrorToClassElement(javax.lang.model.type.TypeMirror returnType,
JavaVisitorContext visitorContext,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> genericsInfo)
Obtain the ClassElement for the given mirror.
|
protected io.micronaut.inject.ast.ClassElement |
mirrorToClassElement(javax.lang.model.type.TypeMirror returnType,
JavaVisitorContext visitorContext,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> genericsInfo,
boolean includeTypeAnnotations)
Obtain the ClassElement for the given mirror.
|
protected io.micronaut.inject.ast.ClassElement |
mirrorToClassElement(javax.lang.model.type.TypeMirror returnType,
JavaVisitorContext visitorContext,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> genericsInfo,
boolean includeTypeAnnotations,
boolean isTypeVariable)
Obtain the ClassElement for the given mirror.
|
protected io.micronaut.inject.ast.ClassElement |
parameterizedClassElement(javax.lang.model.type.TypeMirror typeMirror,
JavaVisitorContext visitorContext,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> declaredGenericInfo)
Returns a class element with aligned generic information.
|
io.micronaut.inject.ast.Element |
removeAnnotation(java.lang.String annotationType) |
<T extends java.lang.annotation.Annotation> |
removeAnnotationIf(java.util.function.Predicate<io.micronaut.core.annotation.AnnotationValue<T>> predicate) |
io.micronaut.inject.ast.Element |
removeStereotype(java.lang.String annotationType) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitannotate, annotate, annotate, getDescription, getDescription, getDocumentation, getSimpleName, removeAnnotation, removeStereotypebooleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, 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, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, 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, synthesizeDeclaredAnnotationsByType@NonNull
public <T extends java.lang.annotation.Annotation> io.micronaut.inject.ast.Element annotate(@NonNull
java.lang.String annotationType,
@NonNull
java.util.function.Consumer<io.micronaut.core.annotation.AnnotationValueBuilder<T>> consumer)
annotate in interface io.micronaut.inject.ast.Elementpublic <T extends java.lang.annotation.Annotation> io.micronaut.inject.ast.Element annotate(io.micronaut.core.annotation.AnnotationValue<T> annotationValue)
annotate in interface io.micronaut.inject.ast.Elementpublic io.micronaut.inject.ast.Element removeAnnotation(@NonNull
java.lang.String annotationType)
removeAnnotation in interface io.micronaut.inject.ast.Elementpublic <T extends java.lang.annotation.Annotation> io.micronaut.inject.ast.Element removeAnnotationIf(@NonNull
java.util.function.Predicate<io.micronaut.core.annotation.AnnotationValue<T>> predicate)
removeAnnotationIf in interface io.micronaut.inject.ast.Elementpublic io.micronaut.inject.ast.Element removeStereotype(@NonNull
java.lang.String annotationType)
removeStereotype in interface io.micronaut.inject.ast.Elementpublic boolean isPackagePrivate()
isPackagePrivate in interface io.micronaut.inject.ast.Elementpublic java.lang.String getName()
getName in interface io.micronaut.core.naming.NamedgetName in interface io.micronaut.inject.ast.Elementpublic java.util.Set<io.micronaut.inject.ast.ElementModifier> getModifiers()
getModifiers in interface io.micronaut.inject.ast.Elementpublic boolean isAbstract()
isAbstract in interface io.micronaut.inject.ast.Elementpublic boolean isStatic()
isStatic in interface io.micronaut.inject.ast.Elementpublic boolean isPublic()
isPublic in interface io.micronaut.inject.ast.Elementpublic boolean isPrivate()
isPrivate in interface io.micronaut.inject.ast.Elementpublic boolean isFinal()
isFinal in interface io.micronaut.inject.ast.Elementpublic boolean isProtected()
isProtected in interface io.micronaut.inject.ast.Elementpublic java.lang.Object getNativeType()
getNativeType in interface io.micronaut.inject.ast.Elementpublic io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
getAnnotationMetadata in interface io.micronaut.core.annotation.AnnotationMetadataProviderpublic java.lang.String toString()
toString in class java.lang.Object@NonNull
protected io.micronaut.inject.ast.ClassElement parameterizedClassElement(javax.lang.model.type.TypeMirror typeMirror,
JavaVisitorContext visitorContext,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> declaredGenericInfo)
typeMirror - The type mirrorvisitorContext - The visitor contextdeclaredGenericInfo - The declared generic info@NonNull
protected io.micronaut.inject.ast.ClassElement mirrorToClassElement(javax.lang.model.type.TypeMirror returnType,
JavaVisitorContext visitorContext)
returnType - The return typevisitorContext - The visitor context@NonNull
protected io.micronaut.inject.ast.ClassElement mirrorToClassElement(javax.lang.model.type.TypeMirror returnType,
JavaVisitorContext visitorContext,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> genericsInfo)
returnType - The return typevisitorContext - The visitor contextgenericsInfo - The generic information.@NonNull
protected io.micronaut.inject.ast.ClassElement mirrorToClassElement(javax.lang.model.type.TypeMirror returnType,
JavaVisitorContext visitorContext,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> genericsInfo,
boolean includeTypeAnnotations)
returnType - The return typevisitorContext - The visitor contextgenericsInfo - The generic information.includeTypeAnnotations - Whether to include type level annotations in the metadata for the element@NonNull
protected io.micronaut.inject.ast.ClassElement mirrorToClassElement(javax.lang.model.type.TypeMirror returnType,
JavaVisitorContext visitorContext,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> genericsInfo,
boolean includeTypeAnnotations,
boolean isTypeVariable)
returnType - The return typevisitorContext - The visitor contextgenericsInfo - The generic information.includeTypeAnnotations - Whether to include type level annotations in the metadata for the elementisTypeVariable - is the type a type variablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object