T - public class ClassBasedAnnotationValueFetcher<T extends Annotation> extends Object implements AnnotationValueFetcher<T>
AnnotationValueFetcher implementation which works directly with classes.| Modifier and Type | Method and Description |
|---|---|
<E> List<E> |
getArrayValue(Function<T,E[]> function)
|
Boolean |
getBooleanValue(Function<T,Boolean> function)
Returns a
Boolean value of an Annotation property |
List<Type> |
getClassArrayValue(Function<T,Class[]> function)
Return the list of
Type representing a Class[] property. |
TypeWrapper |
getClassValue(Function<T,Class> function)
|
<E extends Enum> |
getEnumValue(Function<T,E> function)
Returns the
Enum value of an annotation property |
<E extends Annotation> |
getInnerAnnotation(Function<T,E> function)
|
<E extends Annotation> |
getInnerAnnotations(Function<T,E[]> function)
|
<N extends Number> |
getNumberValue(Function<T,N> function)
Returns a
Number value of an Annotation property |
String |
getStringValue(Function<T,String> function)
Returns a
String value of an Annotation property |
public String getStringValue(Function<T,String> function)
String value of an Annotation propertygetStringValue in interface AnnotationValueFetcher<T extends Annotation>function - A function which executes the logic of retrieving the property value.public <E> List<E> getArrayValue(Function<T,E[]> function)
AnnotationValueFetchergetArrayValue in interface AnnotationValueFetcher<T extends Annotation>E - The array type.function - A function which executes the logic of retrieving the property value.public List<Type> getClassArrayValue(Function<T,Class[]> function)
Type representing a Class[] property.getClassArrayValue in interface AnnotationValueFetcher<T extends Annotation>function - A function which executes the logic of retrieving the property value.Typepublic TypeWrapper getClassValue(Function<T,Class> function)
getClassValue in interface AnnotationValueFetcher<T extends Annotation>function - A function which executes the logic of retrieving the property value.Typepublic <N extends Number> N getNumberValue(Function<T,N> function)
Number value of an Annotation propertygetNumberValue in interface AnnotationValueFetcher<T extends Annotation>function - A function which executes the logic of retrieving the property value.Typepublic Boolean getBooleanValue(Function<T,Boolean> function)
Boolean value of an Annotation propertygetBooleanValue in interface AnnotationValueFetcher<T extends Annotation>function - A function which executes the logic of retrieving the property value.Typepublic <E extends Enum> E getEnumValue(Function<T,E> function)
Enum value of an annotation propertygetEnumValue in interface AnnotationValueFetcher<T extends Annotation>E - The Enum typefunction - A function which executes the logic of retrieving the property value.Enum valuepublic <E extends Annotation> AnnotationValueFetcher<E> getInnerAnnotation(Function<T,E> function)
getInnerAnnotation in interface AnnotationValueFetcher<T extends Annotation>E - The Annotation typefunction - A function which executes the logic of retrieving the property value.AnnotationValueFetcher wrapping the inner annotationpublic <E extends Annotation> List<AnnotationValueFetcher<E>> getInnerAnnotations(Function<T,E[]> function)
getInnerAnnotations in interface AnnotationValueFetcher<T extends Annotation>E - The Annotation typefunction - A function which executes the logic of retrieving the property value.AnnotationValueFetcher wrapping the inner annotationsCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.