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 Details

    • ValidationEnabledAnnotatedCallable

      public ValidationEnabledAnnotatedCallable(AnnotatedCallable<T> callable)
  • Method Details

    • isStatic

      public boolean isStatic()
      Description copied from interface: AnnotatedMember

      Determines if the member is static.

      Specified by:
      isStatic in interface AnnotatedMember<T>
      Returns:
      true if the member is static
    • getDeclaringType

      public AnnotatedType<T> getDeclaringType()
      Description copied from interface: AnnotatedMember

      Get the type which defines this member.

      Specified by:
      getDeclaringType in interface AnnotatedMember<T>
      Returns:
      the type which defines this member
    • getParameters

      public List<AnnotatedParameter<T>> getParameters()
      Description copied from interface: AnnotatedCallable

      Get the parameters of the callable member.

      Specified by:
      getParameters in interface AnnotatedCallable<T>
      Returns:
      the parameters
    • getBaseType

      public Type getBaseType()
      Description copied from interface: Annotated

      Get the type of the annotated program element.

      Specified by:
      getBaseType in interface Annotated
      Returns:
      the type of the annotated program element
    • getTypeClosure

      public Set<Type> getTypeClosure()
      Description copied from interface: Annotated

      Get all types to which the base type should be considered assignable.

      Specified by:
      getTypeClosure in interface Annotated
      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: Annotated

      Get 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:
      getAnnotation in interface Annotated
      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: Annotated

      Get all annotations of the program element.

      Specified by:
      getAnnotations in interface Annotated
      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: Annotated

      Determine 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:
      isAnnotationPresent in interface Annotated
      Parameters:
      annotationType - the annotation type to check for
      Returns:
      true if the program element has an annotation of the given annotation type, or false otherwise