Interface AnnotatedType

All Known Subinterfaces:
ManagedFunctionFlowType<F>, ManagedFunctionObjectType<M>, ManagedFunctionType<M,F>, ManagedObjectDependencyType<D>, OfficeSectionInputType, OfficeSectionOutputType, SectionInputType, SectionObjectType, SectionOutputType
All Known Implementing Classes:
ManagedFunctionFlowTypeImpl, ManagedFunctionObjectTypeImpl, ManagedFunctionTypeImpl, ManagedObjectDependencyTypeImpl, OfficeSectionInputTypeImpl, OfficeSectionOutputTypeImpl, SectionInputTypeImpl, SectionObjectTypeImpl, SectionOutputTypeImpl

public interface AnnotatedType

Identifies types that may be annotated.

Also, provides additional helper methods on the annotated type.

Author:
Daniel Sagenschneider
  • Method Summary

    Modifier and Type
    Method
    Description
    default <A> A
    Obtains the first annotation matching the type.
    Obtains the annotations.
    default <A> A[]
    Obtain all annotations matching the type.
  • Method Details

    • getAnnotations

      Object[] getAnnotations()
      Obtains the annotations.
      Returns:
      Annotations.
    • getAnnotation

      default <A> A getAnnotation(Class<A> type)
      Obtains the first annotation matching the type.
      Type Parameters:
      A - Type of annotation.
      Parameters:
      type - Type of annotation.
      Returns:
      First annotation matching the type.
    • getAnnotations

      default <A> A[] getAnnotations(Class<A> type)
      Obtain all annotations matching the type.
      Type Parameters:
      A - Type of annotation.
      Parameters:
      type - Type of annotation.
      Returns:
      All annotations matching the type. May be empty array if no matches.