public interface AnnotationValueResolver extends ValueResolver<java.lang.CharSequence>
Modifier and Type | Method and Description |
---|---|
java.util.Optional<AnnotationClassValue<?>> |
annotationClassValue(java.lang.String member)
The
AnnotationClassValue instance for the given member. |
AnnotationClassValue<?>[] |
annotationClassValues(java.lang.String member)
The
AnnotationClassValue instances for the given member. |
default java.util.Optional<java.lang.Boolean> |
booleanValue()
The Boolean value of the given member.
|
java.util.Optional<java.lang.Boolean> |
booleanValue(java.lang.String member)
The boolean value of the given member.
|
default java.util.Optional<java.lang.Class<?>> |
classValue()
The value of the annotation as a Class.
|
java.util.Optional<java.lang.Class<?>> |
classValue(java.lang.String member)
The value of the given annotation member as a Class.
|
<T> java.util.Optional<java.lang.Class<? extends T>> |
classValue(java.lang.String member,
java.lang.Class<T> requiredType)
The value of the given annotation member as a Class.
|
default java.lang.Class<?>[] |
classValues()
The value of the annotation as a Class.
|
java.lang.Class<?>[] |
classValues(java.lang.String member)
The value of the given annotation member as a Class.
|
default java.util.OptionalDouble |
doubleValue()
The double value of the given member.
|
java.util.OptionalDouble |
doubleValue(java.lang.String member)
The double value of the given member.
|
default <E extends java.lang.Enum> |
enumValue(java.lang.Class<E> enumType)
Return the enum value of the given member of the given enum type.
|
<E extends java.lang.Enum> |
enumValue(java.lang.String member,
java.lang.Class<E> enumType)
Return the enum value of the given member of the given enum type.
|
default <E extends java.lang.Enum> |
enumValues(java.lang.Class<E> enumType)
Return the enum value of the given member of the given enum type.
|
<E extends java.lang.Enum> |
enumValues(java.lang.String member,
java.lang.Class<E> enumType)
Return the enum value of the given member of the given enum type.
|
java.util.Map<java.lang.CharSequence,java.lang.Object> |
getValues() |
default java.util.OptionalInt |
intValue()
The integer value of the given member.
|
java.util.OptionalInt |
intValue(java.lang.String member)
The integer value of the given member.
|
default boolean |
isFalse() |
boolean |
isFalse(java.lang.String member) |
boolean |
isPresent(java.lang.CharSequence member)
Is the given member present.
|
default boolean |
isTrue() |
boolean |
isTrue(java.lang.String member) |
default java.util.OptionalLong |
longValue()
The integer value of the given member.
|
java.util.OptionalLong |
longValue(java.lang.String member)
The long value of the given member.
|
default java.util.Optional<java.lang.String> |
stringValue()
The string value of the given member.
|
java.util.Optional<java.lang.String> |
stringValue(java.lang.String member)
The string value of the given member.
|
default java.lang.String[] |
stringValues()
The double value of the given member.
|
java.lang.String[] |
stringValues(java.lang.String member)
The string value of the given member.
|
get, get, get, get
<E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull java.lang.String member, @NonNull java.lang.Class<E> enumType)
E
- The enum typemember
- The annotation memberenumType
- The required typeOptional
of the enum valuedefault <E extends java.lang.Enum> java.util.Optional<E> enumValue(@NonNull java.lang.Class<E> enumType)
E
- The enum typeenumType
- The required typeOptional
of the enum value<E extends java.lang.Enum> E[] enumValues(@NonNull java.lang.String member, @NonNull java.lang.Class<E> enumType)
E
- The enum typemember
- The annotation memberenumType
- The required typeOptional
of the enum valuedefault <E extends java.lang.Enum> E[] enumValues(@NonNull java.lang.Class<E> enumType)
E
- The enum typeenumType
- The required typeOptional
of the enum valuedefault java.util.Optional<java.lang.Class<?>> classValue()
Optional
classjava.util.Optional<java.lang.Class<?>> classValue(@NonNull java.lang.String member)
member
- The annotation memberOptional
class@NonNull default java.lang.Class<?>[] classValues()
@NonNull java.lang.Class<?>[] classValues(@NonNull java.lang.String member)
member
- The annotation member@NonNull AnnotationClassValue<?>[] annotationClassValues(@NonNull java.lang.String member)
AnnotationClassValue
instances for the given member. Unlike classValues(String)
this may
include classes that are no the classpath.member
- The annotation memberjava.util.Optional<AnnotationClassValue<?>> annotationClassValue(@NonNull java.lang.String member)
AnnotationClassValue
instance for the given member.member
- The annotation memberjava.util.OptionalInt intValue(@NonNull java.lang.String member)
member
- The annotation memberOptionalInt
default java.util.OptionalInt intValue()
OptionalInt
java.util.OptionalLong longValue(@NonNull java.lang.String member)
member
- The annotation memberOptionalLong
default java.util.OptionalLong longValue()
OptionalLong
java.util.OptionalDouble doubleValue(@NonNull java.lang.String member)
member
- The annotation memberOptionalDouble
default java.util.OptionalDouble doubleValue()
OptionalDouble
java.util.Optional<java.lang.String> stringValue(@NonNull java.lang.String member)
member
- The annotation memberOptionalInt
default java.util.Optional<java.lang.String> stringValue()
OptionalInt
java.util.Optional<java.lang.Boolean> booleanValue(@NonNull java.lang.String member)
member
- The annotation memberOptional
booleandefault java.util.Optional<java.lang.Boolean> booleanValue()
Optional
boolean@NonNull java.lang.String[] stringValues(@NonNull java.lang.String member)
member
- The annotation memberOptionalInt
@NonNull default java.lang.String[] stringValues()
OptionalInt
boolean isPresent(java.lang.CharSequence member)
member
- The memberdefault boolean isTrue()
boolean isTrue(java.lang.String member)
member
- The memberdefault boolean isFalse()
boolean isFalse(java.lang.String member)
member
- The member<T> java.util.Optional<java.lang.Class<? extends T>> classValue(@NonNull java.lang.String member, @NonNull java.lang.Class<T> requiredType)
T
- The required typemember
- The annotation memberrequiredType
- The required typeOptional
class@NonNull java.util.Map<java.lang.CharSequence,java.lang.Object> getValues()