Package io.micronaut.inject.annotation
Class EvaluatedAnnotationValue<A extends Annotation>
java.lang.Object
io.micronaut.core.annotation.AnnotationValue<A>
io.micronaut.inject.annotation.EvaluatedAnnotationValue<A>
- Type Parameters:
A- The annotation
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationValueResolver,io.micronaut.core.value.ValueResolver<CharSequence>
public final class EvaluatedAnnotationValue<A extends Annotation>
extends io.micronaut.core.annotation.AnnotationValue<A>
An EvaluatedAnnotationValue is a
AnnotationValue that contains one or more expressions.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
Optional<io.micronaut.core.annotation.AnnotationValue<T>>getAnnotation(@NonNull String member) <T extends Annotation>
Optional<io.micronaut.core.annotation.AnnotationValue<T>>getAnnotation(String member, Class<T> type) <T extends Annotation>
List<io.micronaut.core.annotation.AnnotationValue<T>>getAnnotations(String member) <T extends Annotation>
List<io.micronaut.core.annotation.AnnotationValue<T>>getAnnotations(String member, Class<T> type) withArguments(@Nullable Object thisObject, Object[] args) Provide a copy of this annotation metadata with passed method arguments.Methods inherited from class io.micronaut.core.annotation.AnnotationValue
annotationClassValue, annotationClassValues, booleanValue, booleanValue, booleanValues, builder, builder, builder, builder, builder, byteValue, byteValues, charValue, charValues, classValue, classValue, classValue, classValue, classValues, contains, doubleValue, doubleValue, doubleValue, doubleValues, enumValue, enumValue, enumValues, equals, floatValue, floatValue, floatValues, get, getAnnotationName, getConvertibleValues, getDefaultValues, getMemberNames, getProperties, getProperties, getRequiredValue, getRequiredValue, getRetentionPolicy, getStereotypes, getValue, getValue, getValue, getValueMapper, getValues, hasEvaluatedExpressions, hashCode, intValue, intValue, intValue, intValues, isFalse, isFalse, isPresent, isTrue, isTrue, isTrue, longValue, longValue, longValues, mutate, resolveClassValues, resolveEnumValues, resolveStringArray, resolveStringValues, shortValue, shortValue, shortValues, stringValue, stringValue, stringValue, stringValues, stringValues, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationValueResolver
booleanValue, booleanValues, byteValue, byteValues, charValue, charValues, classValues, doubleValues, enumValue, enumValues, enumValuesSet, floatValue, floatValues, intValues, longValue, longValues, shortValue, shortValues, stringValuesMethods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get
-
Method Details
-
getAnnotations
public <T extends Annotation> List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotations(String member, Class<T> type) - Overrides:
getAnnotationsin classio.micronaut.core.annotation.AnnotationValue<A extends Annotation>
-
getAnnotations
public <T extends Annotation> List<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotations(String member) - Overrides:
getAnnotationsin classio.micronaut.core.annotation.AnnotationValue<A extends Annotation>
-
getAnnotation
public <T extends Annotation> Optional<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotation(String member, Class<T> type) - Overrides:
getAnnotationin classio.micronaut.core.annotation.AnnotationValue<A extends Annotation>
-
getAnnotation
public <T extends Annotation> Optional<io.micronaut.core.annotation.AnnotationValue<T>> getAnnotation(@NonNull @NonNull String member) - Overrides:
getAnnotationin classio.micronaut.core.annotation.AnnotationValue<A extends Annotation>
-
withArguments
public EvaluatedAnnotationValue<A> withArguments(@Nullable @Nullable Object thisObject, Object[] args) Provide a copy of this annotation metadata with passed method arguments.- Parameters:
thisObject- The object that represents this in a non-static context.args- arguments passed to method- Returns:
- copy of annotation metadata
-