net.sourceforge.pmd.lang.ast.Node
, EcmascriptNode<T>
AbstractInfixEcmascriptNode
, ASTArrayComprehension
, ASTArrayComprehensionLoop
, ASTArrayLiteral
, ASTAstRoot
, ASTBlock
, ASTBreakStatement
, ASTCatchClause
, ASTComment
, ASTConditionalExpression
, ASTContinueStatement
, ASTDoLoop
, ASTElementGet
, ASTEmptyExpression
, ASTEmptyStatement
, ASTExpressionStatement
, ASTForInLoop
, ASTForLoop
, ASTFunctionCall
, ASTFunctionNode
, ASTIfStatement
, ASTKeywordLiteral
, ASTLabel
, ASTLabeledStatement
, ASTLetNode
, ASTName
, ASTNewExpression
, ASTNumberLiteral
, ASTObjectLiteral
, ASTParenthesizedExpression
, ASTRegExpLiteral
, ASTReturnStatement
, ASTScope
, ASTStringLiteral
, ASTSwitchCase
, ASTSwitchStatement
, ASTThrowStatement
, ASTTryStatement
, ASTUnaryExpression
, ASTVariableDeclaration
, ASTVariableInitializer
, ASTWhileLoop
, ASTWithStatement
, ASTXmlExpression
, ASTXmlString
public abstract class AbstractEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode> extends net.sourceforge.pmd.lang.ast.AbstractNode implements EcmascriptNode<T>
Constructor | Description |
---|---|
AbstractEcmascriptNode(T node) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
childrenAccept(EcmascriptParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
java.lang.String |
getJsDoc() |
Get the JsDoc associated with the given node.
|
T |
getNode() |
Get the underlying Rhino AST node.
|
java.lang.String |
getXPathNodeName() |
|
boolean |
hasSideEffects() |
|
java.lang.Object |
jjtAccept(EcmascriptParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, 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
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
protected final T extends org.mozilla.javascript.ast.AstNode node
public AbstractEcmascriptNode(T node)
public java.lang.Object jjtAccept(EcmascriptParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
public java.lang.Object childrenAccept(EcmascriptParserVisitor visitor, java.lang.Object data)
childrenAccept
in interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
public T getNode()
EcmascriptNode
getNode
in interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
public java.lang.String getJsDoc()
EcmascriptNode
getJsDoc
in interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
null
.public boolean hasSideEffects()
hasSideEffects
in interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
public java.lang.String getXPathNodeName()
getXPathNodeName
in interface net.sourceforge.pmd.lang.ast.Node
getXPathNodeName
in class net.sourceforge.pmd.lang.ast.AbstractNode
Copyright © 2002–2018 PMD. All rights reserved.