net.sourceforge.pmd.lang.ecmascript.ast
Class ASTFunctionNode
java.lang.Object
net.sourceforge.pmd.lang.ast.AbstractNode
net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode<org.mozilla.javascript.ast.FunctionNode>
net.sourceforge.pmd.lang.ecmascript.ast.ASTFunctionNode
- All Implemented Interfaces:
- Node, EcmascriptNode
public class ASTFunctionNode
- extends AbstractEcmascriptNode<org.mozilla.javascript.ast.FunctionNode>
Constructor Summary |
ASTFunctionNode(org.mozilla.javascript.ast.FunctionNode functionNode)
|
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode |
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChild, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine |
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node |
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setDataFlowNode, setImage, setUserData |
ASTFunctionNode
public ASTFunctionNode(org.mozilla.javascript.ast.FunctionNode functionNode)
jjtAccept
public Object jjtAccept(EcmascriptParserVisitor visitor,
Object data)
- Accept the visitor.
- Specified by:
jjtAccept
in interface EcmascriptNode
- Overrides:
jjtAccept
in class AbstractEcmascriptNode<org.mozilla.javascript.ast.FunctionNode>
getNumParams
public int getNumParams()
getFunctionName
public ASTName getFunctionName()
getParam
public EcmascriptNode getParam(int index)
getBody
public EcmascriptNode getBody(int index)
isClosure
public boolean isClosure()
isGetter
public boolean isGetter()
isSetter
public boolean isSetter()
isGetterOrSetter
public boolean isGetterOrSetter()
Copyright © 2002-2012 InfoEther. All Rights Reserved.