Package net.officefloor.compile.type
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 TypeMethodDescriptiondefault <A> AgetAnnotation(Class<A> type) Obtains the first annotation matching the type.Object[]Obtains the annotations.default <A> A[]getAnnotations(Class<A> type) Obtain all annotations matching the type.
-
Method Details
-
getAnnotations
Object[] getAnnotations()Obtains the annotations.- Returns:
- Annotations.
-
getAnnotation
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
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.
-