Class AccessTarget

    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface HasName
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public boolean isAnnotatedWith​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Returns true, if one of the resolved targets is annotated with the given annotation type.
        NOTE: If the target was not imported, this method will always return false.
        Specified by:
        isAnnotatedWith in interface CanBeAnnotated
        Parameters:
        annotationType - The type of the annotation to check for
        Returns:
        true if one of the resolved targets is annotated with the given type
      • isAnnotatedWith

        public boolean isAnnotatedWith​(DescribedPredicate<? super JavaAnnotation> predicate)
        Returns true, if one of the resolved targets is annotated with an annotation matching the predicate.
        NOTE: If the target was not imported, this method will always return false.
        Specified by:
        isAnnotatedWith in interface CanBeAnnotated
        Parameters:
        predicate - Qualifies matching annotations
        Returns:
        true if one of the resolved targets is annotated with an annotation matching the predicate
      • isMetaAnnotatedWith

        public boolean isMetaAnnotatedWith​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Specified by:
        isMetaAnnotatedWith in interface CanBeAnnotated