Interface IAnnotatedFeatureInfo

    • Method Detail

      • getAnnotations

        List<IAnnotationInfo> getAnnotations()
        Returns:
        A map of AnnotationInfo objects by type representing all the annotations associated with this feature and all the features in its ancestry, or an empty map if there are no annotations.
      • getDeclaredAnnotations

        List<IAnnotationInfo> getDeclaredAnnotations()
        Returns:
        A map of AnnotationInfo objects by type representing all the annotations associated with this feature, or an empty map if there are no annotations.
      • getAnnotationsOfType

        List<IAnnotationInfo> getAnnotationsOfType​(IType type)
        Returns:
        A list of AnnotationInfo objects having the specified type.
      • getAnnotation

        IAnnotationInfo getAnnotation​(IType type)
        Returns:
        An AnnotationInfo object having the specified type, or null if no such AnnotationInfo exists.
        Throws:
        IllegalStateException - if more than one AnnotationInfo of the given type exists
      • hasAnnotation

        boolean hasAnnotation​(IType type)
        Parameters:
        type - The type of the annotation to test for existence.
        Returns:
        true If this feature has an annotation with of the given type, false otherwise
      • hasDeclaredAnnotation

        boolean hasDeclaredAnnotation​(IType type)
        Parameters:
        type - The type of the annotation to test for existence.
        Returns:
        true If this feature has a declared annotation of the given type, false otherwise
      • isDeprecated

        boolean isDeprecated()
        Returns:
        True if this feature is deprecated.
      • getDeprecatedReason

        String getDeprecatedReason()
        Returns:
        The deprecation message, or null if the feature is not deprecated.
      • isDefaultImpl

        boolean isDefaultImpl()
        Returns:
        True if this feature is the default implementation e.g., default interface method