Class AbstractEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode<T>
-
- All Implemented Interfaces:
Node
,EcmascriptNode<T>
- Direct Known Subclasses:
AbstractInfixEcmascriptNode
,ASTArrayComprehension
,ASTArrayComprehensionLoop
,ASTArrayLiteral
,ASTAstRoot
,ASTBigIntLiteral
,ASTBlock
,ASTBreakStatement
,ASTCatchClause
,ASTComment
,ASTConditionalExpression
,ASTContinueStatement
,ASTDoLoop
,ASTElementGet
,ASTEmptyExpression
,ASTEmptyStatement
,ASTErrorNode
,ASTExpressionStatement
,ASTForInLoop
,ASTForLoop
,ASTFunctionCall
,ASTFunctionNode
,ASTGeneratorExpression
,ASTGeneratorExpressionLoop
,ASTIfStatement
,ASTKeywordLiteral
,ASTLabel
,ASTLabeledStatement
,ASTLetNode
,ASTName
,ASTNewExpression
,ASTNumberLiteral
,ASTObjectLiteral
,ASTParenthesizedExpression
,ASTRegExpLiteral
,ASTReturnStatement
,ASTScope
,ASTScriptNode
,ASTStringLiteral
,ASTSwitchCase
,ASTSwitchStatement
,ASTTaggedTemplateLiteral
,ASTTemplateCharacters
,ASTTemplateLiteral
,ASTThrowStatement
,ASTTryStatement
,ASTUnaryExpression
,ASTUpdateExpression
,ASTVariableDeclaration
,ASTVariableInitializer
,ASTWhileLoop
,ASTWithStatement
,ASTXmlElemRef
,ASTXmlExpression
,ASTXmlLiteral
,ASTXmlPropRef
,ASTXmlString
,ASTYield
@Deprecated @InternalApi public abstract class AbstractEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode> extends AbstractNode implements EcmascriptNode<T>
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description protected T
node
Deprecated.-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Constructor Summary
Constructors Constructor Description AbstractEcmascriptNode(T node)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
childrenAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.Accept the visitor.String
getJsDoc()
Deprecated.Get the JsDoc associated with the given node.T
getNode()
Deprecated.String
getXPathNodeName()
Deprecated.boolean
hasSideEffects()
Deprecated.Object
jjtAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.Accept the visitor.protected void
setTrailingCommaExists(boolean b)
Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, 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, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Field Detail
-
node
protected final T extends org.mozilla.javascript.ast.AstNode node
Deprecated.
-
-
Constructor Detail
-
AbstractEcmascriptNode
@Deprecated @InternalApi public AbstractEcmascriptNode(T node)
Deprecated.
-
-
Method Detail
-
jjtAccept
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.Accept the visitor. *- Specified by:
jjtAccept
in interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
childrenAccept
public Object childrenAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.Accept the visitor. *- Specified by:
childrenAccept
in interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
getNode
@Deprecated public T getNode()
Deprecated.Description copied from interface:EcmascriptNode
Get the underlying Rhino AST node.- Specified by:
getNode
in interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
getJsDoc
public String getJsDoc()
Deprecated.Description copied from interface:EcmascriptNode
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.- Specified by:
getJsDoc
in interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
- Returns:
- The JsDoc comment for the node, may be
null
.
-
hasSideEffects
public boolean hasSideEffects()
Deprecated.- Specified by:
hasSideEffects
in interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
getXPathNodeName
public String getXPathNodeName()
Deprecated.- Specified by:
getXPathNodeName
in interfaceNode
- Overrides:
getXPathNodeName
in classAbstractNode
-
setTrailingCommaExists
protected void setTrailingCommaExists(boolean b)
Deprecated.
-
-