Class ValidationEnabledAnnotatedCallable<T>
- java.lang.Object
-
- org.hibernate.validator.cdi.internal.interceptor.ValidationEnabledAnnotatedCallable<T>
-
- All Implemented Interfaces:
Annotated,AnnotatedCallable<T>,AnnotatedMember<T>
- Direct Known Subclasses:
ValidationEnabledAnnotatedConstructor,ValidationEnabledAnnotatedMethod
public abstract class ValidationEnabledAnnotatedCallable<T> extends Object implements AnnotatedCallable<T>
- Author:
- Hardy Ferentschik
-
-
Constructor Summary
Constructors Constructor Description ValidationEnabledAnnotatedCallable(AnnotatedCallable<T> callable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends Annotation>
AgetAnnotation(Class<A> annotationType)Get program element annotation of a certain annotation type.Set<Annotation>getAnnotations()Get all annotations of the program element.TypegetBaseType()Get the type of the annotated program element.AnnotatedType<T>getDeclaringType()Get the type which defines this member.List<AnnotatedParameter<T>>getParameters()Get the parameters of the callable member.Set<Type>getTypeClosure()Get all types to which the base type should be considered assignable.booleanisAnnotationPresent(Class<? extends Annotation> annotationType)Determine if the program element has an annotation of a certain annotation type.booleanisStatic()Determines if the member is static.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.enterprise.inject.spi.Annotated
getAnnotations
-
Methods inherited from interface jakarta.enterprise.inject.spi.AnnotatedMember
getJavaMember
-
-
-
-
Constructor Detail
-
ValidationEnabledAnnotatedCallable
public ValidationEnabledAnnotatedCallable(AnnotatedCallable<T> callable)
-
-
Method Detail
-
isStatic
public boolean isStatic()
Description copied from interface:AnnotatedMemberDetermines if the member is static.
- Specified by:
isStaticin interfaceAnnotatedMember<T>- Returns:
trueif the member is static
-
getDeclaringType
public AnnotatedType<T> getDeclaringType()
Description copied from interface:AnnotatedMemberGet the type which defines this member.
- Specified by:
getDeclaringTypein interfaceAnnotatedMember<T>- Returns:
- the type which defines this member
-
getParameters
public List<AnnotatedParameter<T>> getParameters()
Description copied from interface:AnnotatedCallableGet the parameters of the callable member.
- Specified by:
getParametersin interfaceAnnotatedCallable<T>- Returns:
- the parameters
-
getBaseType
public Type getBaseType()
Description copied from interface:AnnotatedGet the type of the annotated program element.
- Specified by:
getBaseTypein interfaceAnnotated- Returns:
- the type of the annotated program element
-
getTypeClosure
public Set<Type> getTypeClosure()
Description copied from interface:AnnotatedGet all types to which the base type should be considered assignable.
- Specified by:
getTypeClosurein interfaceAnnotated- Returns:
- a set of all types to which the base type should be considered assignable
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
Description copied from interface:AnnotatedGet program element annotation of a certain annotation type. The behavior of this method is intended to be the same behavior as
AnnotatedElement.getAnnotation(Class), where repeatable annotations are not supported.- Specified by:
getAnnotationin interfaceAnnotated- Type Parameters:
A- the type of the annotation- Parameters:
annotationType- the class of the annotation type- Returns:
- the first program element annotation of the given annotation type, or a null value
-
getAnnotations
public Set<Annotation> getAnnotations()
Description copied from interface:AnnotatedGet all annotations of the program element.
- Specified by:
getAnnotationsin interfaceAnnotated- Returns:
- all annotations of the program element, or an empty set if no annotations are present
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Description copied from interface:AnnotatedDetermine if the program element has an annotation of a certain annotation type. The behavior of this method is similar to
AnnotatedElement.isAnnotationPresent(Class)for the underlying program element.- Specified by:
isAnnotationPresentin interfaceAnnotated- Parameters:
annotationType- the annotation type to check for- Returns:
trueif the program element has an annotation of the given annotation type, orfalseotherwise
-
-