Class AbstractJavaNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<JavaNode>
-
- net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.Node,JavaNode,net.sourceforge.pmd.lang.symboltable.ScopedNode
- Direct Known Subclasses:
AbstractJavaAccessNode,AbstractJavaTypeNode,ASTAnnotationTypeBody,ASTAnnotationTypeMemberDeclaration,ASTArgumentList,ASTArguments,ASTArrayDimsAndInits,ASTArrayInitializer,ASTAssertStatement,ASTAssignmentOperator,ASTBlock,ASTBlockStatement,ASTBreakStatement,ASTCatchStatement,ASTClassOrInterfaceBody,ASTClassOrInterfaceBodyDeclaration,ASTContinueStatement,ASTDefaultValue,ASTDoStatement,ASTEmptyStatement,ASTEnumBody,ASTEnumConstant,ASTExplicitConstructorInvocation,ASTExtendsList,ASTFinallyStatement,ASTForInit,ASTFormalParameters,ASTForStatement,ASTForUpdate,ASTIfStatement,ASTImplementsList,ASTInitializer,ASTLabeledStatement,ASTMemberSelector,ASTMemberValue,ASTMemberValueArrayInitializer,ASTMemberValuePair,ASTMemberValuePairs,ASTMethodDeclarator,ASTMethodReference,ASTModuleDeclaration,ASTModuleDirective,ASTModuleName,ASTNameList,ASTPackageDeclaration,ASTRecordBody,ASTRecordComponent,ASTRecordComponentList,ASTResources,ASTResourceSpecification,ASTResultType,ASTReturnStatement,ASTRSIGNEDSHIFT,ASTRUNSIGNEDSHIFT,ASTStatement,ASTStatementExpressionList,ASTSwitchLabel,ASTSwitchLabeledBlock,ASTSwitchLabeledExpression,ASTSwitchLabeledThrowStatement,ASTSwitchStatement,ASTSynchronizedStatement,ASTThrowStatement,ASTTryStatement,ASTTypeArguments,ASTTypeParameters,ASTTypeTestPattern,ASTVariableInitializer,ASTWhileStatement,DummyJavaNode
@Deprecated @InternalApi public abstract class AbstractJavaNode extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<JavaNode> implements JavaNode
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description protected JavaParserparserDeprecated.
-
Constructor Summary
Constructors Constructor Description AbstractJavaNode(int id)Deprecated.AbstractJavaNode(JavaParser parser, int id)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectchildrenAccept(JavaParserVisitor visitor, Object data)Deprecated.Dispatches the given visitor to the children of this node.Commentcomment()Deprecated.voidcomment(Comment theComment)Deprecated.net.sourceforge.pmd.lang.symboltable.ScopegetScope()Deprecated.StringgetXPathNodeName()Deprecated.ObjectjjtAccept(JavaParserVisitor visitor, Object data)Deprecated.Calls back the visitor's visit method corresponding to the runtime type of this Node.voidjjtClose()Deprecated.voidjjtOpen()Deprecated.voidsetScope(net.sourceforge.pmd.lang.symboltable.Scope scope)Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
children, getChild, getParent
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, 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.java.ast.JavaNode
children, getChild, getParent
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Field Detail
-
parser
protected JavaParser parser
Deprecated.
-
-
Constructor Detail
-
AbstractJavaNode
@InternalApi @Deprecated public AbstractJavaNode(int id)
Deprecated.
-
AbstractJavaNode
@InternalApi @Deprecated public AbstractJavaNode(JavaParser parser, int id)
Deprecated.
-
-
Method Detail
-
jjtOpen
public void jjtOpen()
Deprecated.- Specified by:
jjtOpenin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
jjtOpenin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtClose
public void jjtClose()
Deprecated.- Specified by:
jjtClosein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
jjtClosein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtAccept
public Object jjtAccept(JavaParserVisitor visitor, Object data)
Deprecated.Description copied from interface:JavaNodeCalls back the visitor's visit method corresponding to the runtime type of this Node.
-
childrenAccept
public Object childrenAccept(JavaParserVisitor visitor, Object data)
Deprecated.Description copied from interface:JavaNodeDispatches the given visitor to the children of this node. This is the default implementation ofJavaParserVisitor.visit(JavaNode, Object), to which all other default implementations for visit methods delegate. Unless visit methods are overridden without callingsuper.visit, the visitor performs a depth-first tree walk.The return value of the visit methods called on children are ignored.
- Specified by:
childrenAcceptin interfaceJavaNode- Parameters:
visitor- Visitor to dispatchdata- Visit data
-
getScope
public net.sourceforge.pmd.lang.symboltable.Scope getScope()
Deprecated.- Specified by:
getScopein interfacenet.sourceforge.pmd.lang.symboltable.ScopedNode
-
setScope
@InternalApi @Deprecated public void setScope(net.sourceforge.pmd.lang.symboltable.Scope scope)
Deprecated.
-
comment
@InternalApi @Deprecated public void comment(Comment theComment)
Deprecated.
-
comment
public Comment comment()
Deprecated.
-
getXPathNodeName
public final String getXPathNodeName()
Deprecated.- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getXPathNodeNamein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
-