Interface ASTAnyTypeBodyDeclaration

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      JavaNode getDeclarationNode()
      Returns the child of this declaration, which can be cast to a more specific node type using getKind() as a cue.
      ASTAnyTypeBodyDeclaration.DeclarationKind getKind()
      Gets the kind of declaration this node contains.
      • 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
    • Method Detail

      • getDeclarationNode

        JavaNode getDeclarationNode()
        Returns the child of this declaration, which can be cast to a more specific node type using getKind() as a cue.

        Returns null if this is an empty declaration, that is, a single semicolon.