Class AbstractAnyTypeDeclaration

    • Method Detail

      • isNested

        public final boolean isNested()
        Deprecated.
        Description copied from interface: ASTAnyTypeDeclaration
        Returns true if this type declaration is nested inside an interface, class or annotation.
        Specified by:
        isNested in interface ASTAnyTypeDeclaration
      • getRecordComponents

        public ASTRecordComponentList getRecordComponents()
        Deprecated.
        Returns the record component list, or null if this is not a record declaration.
      • enclosingTypeIsA

        public final boolean enclosingTypeIsA​(ASTAnyTypeDeclaration.TypeKind... kinds)
        Deprecated.
        Returns true if the enclosing type of this type declaration is any of the given kinds. If this declaration is a top-level declaration, returns false. This won't consider anonymous classes until #905 is tackled. TODO 7.0.0
        Parameters:
        kinds - Kinds to test
      • getEnclosingTypeDeclaration

        public final ASTAnyTypeDeclaration getEnclosingTypeDeclaration()
        Deprecated.
        Returns the enclosing type of this type, if it is nested. Otherwise returns null. This won't consider anonymous classes until #905 is tackled. TODO 7.0.0
      • getAnnotation

        public ASTAnnotation getAnnotation​(String annotQualifiedName)
        Description copied from interface: Annotatable
        Get specific annotaion on this node.
        Specified by:
        getAnnotation in interface Annotatable
        Parameters:
        annotQualifiedName - qulified name of the annotation.
        Returns:
        ASTAnnotaion node if the annotation is present on this node, else null
      • isAnnotationPresent

        public boolean isAnnotationPresent​(String annotQualifiedName)
        Description copied from interface: Annotatable
        Checks whether the annotation is present on this node.
        Specified by:
        isAnnotationPresent in interface Annotatable
        Parameters:
        annotQualifiedName - qulified name of the annotation.
        Returns:
        true if the annotation is present on this node, else false
      • isAnyAnnotationPresent

        public boolean isAnyAnnotationPresent​(Collection<String> annotQualifiedNames)
        Description copied from interface: Annotatable
        Checks whether any annotation is present on this node.
        Specified by:
        isAnyAnnotationPresent in interface Annotatable
        Parameters:
        annotQualifiedNames - collection that cotains qulified name of annotations.
        Returns:
        true if any annotation is present on this node, else false