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,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
@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 TnodeDeprecated.-
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 ObjectchildrenAccept(EcmascriptParserVisitor visitor, Object data)Deprecated.Accept the visitor.StringgetJsDoc()Deprecated.Get the JsDoc associated with the given node.TgetNode()Deprecated.StringgetXPathNodeName()Deprecated.booleanhasSideEffects()Deprecated.ObjectjjtAccept(EcmascriptParserVisitor visitor, Object data)Deprecated.Accept the visitor.protected voidsetTrailingCommaExists(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:
jjtAcceptin interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
childrenAccept
public Object childrenAccept(EcmascriptParserVisitor visitor, Object data)
Deprecated.Accept the visitor. *- Specified by:
childrenAcceptin interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
getNode
@Deprecated public T getNode()
Deprecated.Description copied from interface:EcmascriptNodeGet the underlying Rhino AST node.- Specified by:
getNodein interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
getJsDoc
public String getJsDoc()
Deprecated.Description copied from interface:EcmascriptNodeGet 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:
getJsDocin 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:
hasSideEffectsin interfaceEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
-
getXPathNodeName
public String getXPathNodeName()
Deprecated.- Specified by:
getXPathNodeNamein interfaceNode- Overrides:
getXPathNodeNamein classAbstractNode
-
setTrailingCommaExists
protected void setTrailingCommaExists(boolean b)
Deprecated.
-
-