Class AbstractJavaAccessNode

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      ASTAnnotation getAnnotation​(java.lang.String annotQualifiedName)
      Get specific annotaion on this node.
      java.util.List<ASTAnnotation> getDeclaredAnnotations()
      Get all annotations present on this node.
      int getModifiers()
      Deprecated.
       
      boolean isAbstract()
      Deprecated.
       
      boolean isAnnotationPresent​(java.lang.String annotQualifiedName)
      Checks whether the annotation is present on this node.
      boolean isAnyAnnotationPresent​(java.util.Collection<java.lang.String> annotQualifiedNames)
      Checks whether any annotation is present on this node.
      boolean isDefault()
      Deprecated.
       
      boolean isFinal()
      Deprecated.
       
      boolean isNative()
      Deprecated.
       
      boolean isPackagePrivate()
      Deprecated.
       
      boolean isPrivate()
      Deprecated.
       
      boolean isProtected()
      Deprecated.
       
      boolean isPublic()
      Deprecated.
       
      boolean isStatic()
      Deprecated.
       
      boolean isStrictfp()
      Deprecated.
       
      boolean isSynchronized()
      Deprecated.
       
      boolean isTransient()
      Deprecated.
       
      boolean isVolatile()
      Deprecated.
       
      void setAbstract​(boolean isAbstract)
      Deprecated.
      void setDefault​(boolean isDefault)
      Deprecated.
      void setFinal​(boolean isFinal)
      Deprecated.
      void setModifiers​(int modifiers)
      Deprecated.
      void setNative​(boolean isNative)
      Deprecated.
      void setPrivate​(boolean isPrivate)
      Deprecated.
      void setProtected​(boolean isProtected)
      Deprecated.
      void setPublic​(boolean isPublic)
      Deprecated.
      void setStatic​(boolean isStatic)
      Deprecated.
      void setStrictfp​(boolean isStrictfp)
      Deprecated.
      void setSynchronized​(boolean isSynchronized)
      Deprecated.
      void setTransient​(boolean isTransient)
      Deprecated.
      void setVolatile​(boolean isVolative)
      Deprecated.
      • Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode

        appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.Node

        findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
      • Methods inherited from interface net.sourceforge.pmd.lang.symboltable.ScopedNode

        getScope
    • Constructor Detail

      • AbstractJavaAccessNode

        @Deprecated
        @InternalApi
        public AbstractJavaAccessNode​(int i)
        Deprecated.
      • AbstractJavaAccessNode

        @Deprecated
        @InternalApi
        public AbstractJavaAccessNode​(JavaParser parser,
                                      int i)
        Deprecated.
    • Method Detail

      • setModifiers

        @InternalApi
        @Deprecated
        public void setModifiers​(int modifiers)
        Deprecated.
        Specified by:
        setModifiers in interface AccessNode
      • isPublic

        public boolean isPublic()
        Deprecated.
        Specified by:
        isPublic in interface AccessNode
      • setPublic

        @InternalApi
        @Deprecated
        public void setPublic​(boolean isPublic)
        Deprecated.
        Specified by:
        setPublic in interface AccessNode
      • isProtected

        public boolean isProtected()
        Deprecated.
        Specified by:
        isProtected in interface AccessNode
      • setProtected

        @InternalApi
        @Deprecated
        public void setProtected​(boolean isProtected)
        Deprecated.
        Specified by:
        setProtected in interface AccessNode
      • isPrivate

        public boolean isPrivate()
        Deprecated.
        Specified by:
        isPrivate in interface AccessNode
      • setPrivate

        @InternalApi
        @Deprecated
        public void setPrivate​(boolean isPrivate)
        Deprecated.
        Specified by:
        setPrivate in interface AccessNode
      • isAbstract

        public boolean isAbstract()
        Deprecated.
        Specified by:
        isAbstract in interface AccessNode
      • setAbstract

        @InternalApi
        @Deprecated
        public void setAbstract​(boolean isAbstract)
        Deprecated.
        Specified by:
        setAbstract in interface AccessNode
      • isStatic

        public boolean isStatic()
        Deprecated.
        Specified by:
        isStatic in interface AccessNode
      • setStatic

        @InternalApi
        @Deprecated
        public void setStatic​(boolean isStatic)
        Deprecated.
        Specified by:
        setStatic in interface AccessNode
      • isFinal

        public boolean isFinal()
        Deprecated.
        Specified by:
        isFinal in interface AccessNode
      • setFinal

        @InternalApi
        @Deprecated
        public void setFinal​(boolean isFinal)
        Deprecated.
        Specified by:
        setFinal in interface AccessNode
      • setSynchronized

        @InternalApi
        @Deprecated
        public void setSynchronized​(boolean isSynchronized)
        Deprecated.
        Specified by:
        setSynchronized in interface AccessNode
      • isNative

        public boolean isNative()
        Deprecated.
        Specified by:
        isNative in interface AccessNode
      • setNative

        @InternalApi
        @Deprecated
        public void setNative​(boolean isNative)
        Deprecated.
        Specified by:
        setNative in interface AccessNode
      • isTransient

        public boolean isTransient()
        Deprecated.
        Specified by:
        isTransient in interface AccessNode
      • setTransient

        @InternalApi
        @Deprecated
        public void setTransient​(boolean isTransient)
        Deprecated.
        Specified by:
        setTransient in interface AccessNode
      • isVolatile

        public boolean isVolatile()
        Deprecated.
        Specified by:
        isVolatile in interface AccessNode
      • setVolatile

        @InternalApi
        @Deprecated
        public void setVolatile​(boolean isVolative)
        Deprecated.
        Specified by:
        setVolatile in interface AccessNode
      • isStrictfp

        public boolean isStrictfp()
        Deprecated.
        Specified by:
        isStrictfp in interface AccessNode
      • setStrictfp

        @InternalApi
        @Deprecated
        public void setStrictfp​(boolean isStrictfp)
        Deprecated.
        Specified by:
        setStrictfp in interface AccessNode
      • isDefault

        public boolean isDefault()
        Deprecated.
        Specified by:
        isDefault in interface AccessNode
      • setDefault

        @InternalApi
        @Deprecated
        public void setDefault​(boolean isDefault)
        Deprecated.
        Specified by:
        setDefault in interface AccessNode
      • getDeclaredAnnotations

        public java.util.List<ASTAnnotation> getDeclaredAnnotations()
        Description copied from interface: Annotatable
        Get all annotations present on this node.
        Specified by:
        getDeclaredAnnotations in interface Annotatable
        Returns:
        all annotations present on this node.
      • getAnnotation

        public ASTAnnotation getAnnotation​(java.lang.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​(java.lang.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​(java.util.Collection<java.lang.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