Interface Annotatable

    • Method Detail

      • getDeclaredAnnotations

        List<ASTAnnotation> getDeclaredAnnotations()
        Get all annotations present on this node.
        Returns:
        all annotations present on this node.
      • getAnnotation

        ASTAnnotation getAnnotation​(String annotQualifiedName)
        Get specific annotaion on this node.
        Parameters:
        annotQualifiedName - qulified name of the annotation.
        Returns:
        ASTAnnotaion node if the annotation is present on this node, else null
      • isAnyAnnotationPresent

        boolean isAnyAnnotationPresent​(Collection<String> annotQualifiedNames)
        Checks whether any annotation is present on this node.
        Parameters:
        annotQualifiedNames - collection that cotains qulified name of annotations.
        Returns:
        true if any annotation is present on this node, else false
      • isAnnotationPresent

        boolean isAnnotationPresent​(String annotQualifiedName)
        Checks whether the annotation is present on this node.
        Parameters:
        annotQualifiedName - qulified name of the annotation.
        Returns:
        true if the annotation is present on this node, else false