Interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
- All Superinterfaces:
Node
- All Known Implementing Classes:
AbstractEcmascriptNode
,AbstractInfixEcmascriptNode
,ASTArrayComprehension
,ASTArrayComprehensionLoop
,ASTArrayLiteral
,ASTAssignment
,ASTAstRoot
,ASTBigIntLiteral
,ASTBlock
,ASTBreakStatement
,ASTCatchClause
,ASTComment
,ASTConditionalExpression
,ASTContinueStatement
,ASTDoLoop
,ASTElementGet
,ASTEmptyExpression
,ASTEmptyStatement
,ASTErrorNode
,ASTExpressionStatement
,ASTForInLoop
,ASTForLoop
,ASTFunctionCall
,ASTFunctionNode
,ASTGeneratorExpression
,ASTGeneratorExpressionLoop
,ASTIfStatement
,ASTInfixExpression
,ASTKeywordLiteral
,ASTLabel
,ASTLabeledStatement
,ASTLetNode
,ASTName
,ASTNewExpression
,ASTNumberLiteral
,ASTObjectLiteral
,ASTObjectProperty
,ASTParenthesizedExpression
,ASTPropertyGet
,ASTRegExpLiteral
,ASTReturnStatement
,ASTScope
,ASTScriptNode
,ASTStringLiteral
,ASTSwitchCase
,ASTSwitchStatement
,ASTTaggedTemplateLiteral
,ASTTemplateCharacters
,ASTTemplateLiteral
,ASTThrowStatement
,ASTTryStatement
,ASTUnaryExpression
,ASTUpdateExpression
,ASTVariableDeclaration
,ASTVariableInitializer
,ASTWhileLoop
,ASTWithStatement
,ASTXmlDotQuery
,ASTXmlElemRef
,ASTXmlExpression
,ASTXmlLiteral
,ASTXmlMemberGet
,ASTXmlPropRef
,ASTXmlString
,ASTYield
public interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode> extends Node
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Object
childrenAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.This method is not useful, the logic for combining children values should be present on the visitor, not the nodeString
getJsDoc()
Get the JsDoc associated with the given node.T
getNode()
Deprecated.The underlying Rhino node should not be used directly.boolean
hasSideEffects()
Object
jjtAccept(EcmascriptParserVisitor visitor, Object data)
Accept the visitor.-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
children, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getChild, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParent, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
jjtAccept
Object jjtAccept(EcmascriptParserVisitor visitor, Object data)
Accept the visitor. *
-
childrenAccept
@Deprecated Object childrenAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.This method is not useful, the logic for combining children values should be present on the visitor, not the nodeAccept the visitor. *
-
getNode
@Deprecated T getNode()
Deprecated.The underlying Rhino node should not be used directly.Get the underlying Rhino AST node.
-
getJsDoc
String getJsDoc()
Get the JsDoc associated with the given node. If there is no JsDoc on this node, it may be associated with a parent node, on more representative of the entire expression containing this node.- Returns:
- The JsDoc comment for the node, may be
null
.
-
hasSideEffects
boolean hasSideEffects()
-
-