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:
AnnotationValueResolver,ValueResolver<CharSequence>
An EvaluatedAnnotationValue is a
AnnotationValue that contains one or more expressions.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
Optional<AnnotationValue<T>>getAnnotation(@NonNull String member) Gets a list ofAnnotationValuefor the given member.<T extends Annotation>
Optional<AnnotationValue<T>>getAnnotation(String member, Class<T> type) Gets a list ofAnnotationValuefor the given member.<T extends Annotation>
List<AnnotationValue<T>>getAnnotations(String member) Gets a list ofAnnotationValuefor the given member.<T extends Annotation>
List<AnnotationValue<T>>getAnnotations(String member, Class<T> type) Gets a list ofAnnotationValuefor the given member.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
Description copied from class:AnnotationValueGets a list ofAnnotationValuefor the given member.- Overrides:
getAnnotationsin classAnnotationValue<A extends Annotation>- Type Parameters:
T- The type- Parameters:
member- The membertype- The type- Returns:
- The result
-
getAnnotations
Description copied from class:AnnotationValueGets a list ofAnnotationValuefor the given member.- Overrides:
getAnnotationsin classAnnotationValue<A extends Annotation>- Type Parameters:
T- The type- Parameters:
member- The member- Returns:
- The result
-
getAnnotation
public <T extends Annotation> Optional<AnnotationValue<T>> getAnnotation(String member, Class<T> type) Description copied from class:AnnotationValueGets a list ofAnnotationValuefor the given member.- Overrides:
getAnnotationin classAnnotationValue<A extends Annotation>- Type Parameters:
T- The type- Parameters:
member- The membertype- The type- Returns:
- The result
-
getAnnotation
public <T extends Annotation> Optional<AnnotationValue<T>> getAnnotation(@NonNull @NonNull String member) Description copied from class:AnnotationValueGets a list ofAnnotationValuefor the given member.- Overrides:
getAnnotationin classAnnotationValue<A extends Annotation>- Type Parameters:
T- The type- Parameters:
member- The member- Returns:
- The result
-
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
-