net.sourceforge.pmd.lang.ecmascript.ast
Class ASTName
java.lang.Object
net.sourceforge.pmd.lang.ast.AbstractNode
net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode<org.mozilla.javascript.ast.Name>
net.sourceforge.pmd.lang.ecmascript.ast.ASTName
- All Implemented Interfaces:
- Node, EcmascriptNode<org.mozilla.javascript.ast.Name>
public class ASTName
- extends AbstractEcmascriptNode<org.mozilla.javascript.ast.Name>
Constructor Summary |
ASTName(org.mozilla.javascript.ast.Name name)
|
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode |
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, 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, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData |
ASTName
public ASTName(org.mozilla.javascript.ast.Name name)
jjtAccept
public Object jjtAccept(EcmascriptParserVisitor visitor,
Object data)
- Accept the visitor.
- Specified by:
jjtAccept
in interface EcmascriptNode<org.mozilla.javascript.ast.Name>
- Overrides:
jjtAccept
in class AbstractEcmascriptNode<org.mozilla.javascript.ast.Name>
getIdentifier
public String getIdentifier()
isLocalName
public boolean isLocalName()
isGlobalName
public boolean isGlobalName()
isFunctionNodeName
public boolean isFunctionNodeName()
- Returns whether this name node is the name of a function declaration.
- Returns:
true
if name of a function declaration,
false
otherwise.
isFunctionNodeParameter
public boolean isFunctionNodeParameter()
- Returns whether this name node is the name of a function declaration parameter.
- Returns:
true
if name of a function declaration parameter,
false
otherwise.
isFunctionCallName
public boolean isFunctionCallName()
- Returns whether this name node is the name of a function call.
- Returns:
true
if name of a function call,
false
otherwise.
isVariableDeclaration
public boolean isVariableDeclaration()
- Returns whether this name node is the name of a variable declaration.
- Returns:
true
if name of a variable declaration,
false
otherwise.
Copyright © 2002-2016 InfoEther. All Rights Reserved.