Class FieldAnnotationMatcherStrategy


  • public class FieldAnnotationMatcherStrategy
    extends FieldMatcherStrategy

    FieldAnnotationMatcherStrategy class.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Class<? extends java.lang.annotation.Annotation> annotation  
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldAnnotationMatcherStrategy​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
      Constructor for FieldAnnotationMatcherStrategy.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.reflect.Field field)
      A field matcher that checks if a field matches a given criteria.
      void notFound​(java.lang.Class<?> type, boolean isInstanceField)
      Throws an FieldNotFoundException if the strategy criteria could not be found.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • annotation

        final java.lang.Class<? extends java.lang.annotation.Annotation> annotation
    • Constructor Detail

      • FieldAnnotationMatcherStrategy

        public FieldAnnotationMatcherStrategy​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)

        Constructor for FieldAnnotationMatcherStrategy.

        Parameters:
        annotation - a Class object.
    • Method Detail

      • matches

        public boolean matches​(java.lang.reflect.Field field)
        A field matcher that checks if a field matches a given criteria.
        Specified by:
        matches in class FieldMatcherStrategy
        Parameters:
        field - The field to check whether it matches the strategy or not.
        Returns:
        true if this field matches the strategy, false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object