Class AbstractJavaAccessNode

    • Method Summary

      All Methods Instance Methods Concrete 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()  
      boolean isAbstract()  
      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()  
      boolean isFinal()  
      boolean isNative()  
      boolean isPackagePrivate()  
      boolean isPrivate()  
      boolean isProtected()  
      boolean isPublic()  
      boolean isStatic()  
      boolean isStrictfp()  
      boolean isSynchronized()  
      boolean isTransient()  
      boolean isVolatile()  
      void setAbstract​(boolean isAbstract)  
      void setDefault​(boolean isDefault)  
      void setFinal​(boolean isFinal)  
      void setModifiers​(int modifiers)  
      void setNative​(boolean isNative)  
      void setPrivate​(boolean isPrivate)  
      void setProtected​(boolean isProtected)  
      void setPublic​(boolean isPublic)  
      void setStatic​(boolean isStatic)  
      void setStrictfp​(boolean isStrictfp)  
      void setSynchronized​(boolean isSynchronized)  
      void setTransient​(boolean isTransient)  
      void setVolatile​(boolean isVolative)  
      • 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
    • Constructor Detail

      • AbstractJavaAccessNode

        public AbstractJavaAccessNode​(int i)
      • AbstractJavaAccessNode

        public AbstractJavaAccessNode​(JavaParser parser,
                                      int i)
    • Method Detail

      • setModifiers

        public void setModifiers​(int modifiers)
        Specified by:
        setModifiers in interface AccessNode
      • setPublic

        public void setPublic​(boolean isPublic)
        Specified by:
        setPublic in interface AccessNode
      • setProtected

        public void setProtected​(boolean isProtected)
        Specified by:
        setProtected in interface AccessNode
      • setPrivate

        public void setPrivate​(boolean isPrivate)
        Specified by:
        setPrivate in interface AccessNode
      • setAbstract

        public void setAbstract​(boolean isAbstract)
        Specified by:
        setAbstract in interface AccessNode
      • setStatic

        public void setStatic​(boolean isStatic)
        Specified by:
        setStatic in interface AccessNode
      • setFinal

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

        public void setSynchronized​(boolean isSynchronized)
        Specified by:
        setSynchronized in interface AccessNode
      • setNative

        public void setNative​(boolean isNative)
        Specified by:
        setNative in interface AccessNode
      • setTransient

        public void setTransient​(boolean isTransient)
        Specified by:
        setTransient in interface AccessNode
      • setVolatile

        public void setVolatile​(boolean isVolative)
        Specified by:
        setVolatile in interface AccessNode
      • setStrictfp

        public void setStrictfp​(boolean isStrictfp)
        Specified by:
        setStrictfp in interface AccessNode
      • setDefault

        public void setDefault​(boolean isDefault)
        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