Interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
- All Superinterfaces:
GenericNode<EcmascriptNode<?>>
,Node
,Reportable
- All Known Implementing Classes:
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 GenericNode<EcmascriptNode<?>>
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description String
getJsDoc()
Get the JsDoc associated with the given node.T
getNode()
Deprecated.The underlying Rhino node should not be used directly.boolean
hasSideEffects()
default Object
jjtAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getNthParent, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
jjtAccept
@Deprecated default Object jjtAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.
-
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()
-
-