public abstract class AbstractEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode> extends AbstractNode implements EcmascriptNode<T>
Modifier and Type | Field and Description |
---|---|
protected T |
node |
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
Constructor and Description |
---|
AbstractEcmascriptNode(T node) |
Modifier and Type | Method and 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.
|
boolean |
hasSideEffects() |
java.lang.Object |
jjtAccept(EcmascriptParserVisitor visitor,
java.lang.Object data)
Accept the visitor.
|
java.lang.String |
toString() |
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, 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 toString()
toString
in class AbstractNode
Copyright © 2002–2018 PMD. All rights reserved.