Class ASTFunctionNode

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.Node, EcmascriptNode<org.mozilla.javascript.ast.FunctionNode>

    public class ASTFunctionNode
    extends AbstractEcmascriptNode<org.mozilla.javascript.ast.FunctionNode>
    • Field Summary

      • Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode

        beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
    • Constructor Summary

      Constructors 
      Constructor Description
      ASTFunctionNode​(org.mozilla.javascript.ast.FunctionNode functionNode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      EcmascriptNode<?> getBody()  
      EcmascriptNode<?> getBody​(int index)
      Deprecated.
      ASTName getFunctionName()  
      int getNumParams()  
      EcmascriptNode<?> getParam​(int index)  
      boolean isClosure()  
      boolean isGetter()  
      boolean isGetterOrSetter()  
      boolean isSetter()  
      java.lang.Object jjtAccept​(EcmascriptParserVisitor visitor, java.lang.Object data)
      Accept the visitor.
      • 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, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, 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, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
    • Constructor Detail

      • ASTFunctionNode

        public ASTFunctionNode​(org.mozilla.javascript.ast.FunctionNode functionNode)
    • Method Detail

      • getNumParams

        public int getNumParams()
      • getFunctionName

        public ASTName getFunctionName()
      • getBody

        @Deprecated
        public EcmascriptNode<?> getBody​(int index)
        Deprecated.
      • isClosure

        public boolean isClosure()
      • isGetter

        public boolean isGetter()
      • isSetter

        public boolean isSetter()
      • isGetterOrSetter

        public boolean isGetterOrSetter()