Class AbstractJavaNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- 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,ASTResources,ASTResourceSpecification,ASTResultType,ASTReturnStatement,ASTRSIGNEDSHIFT,ASTRUNSIGNEDSHIFT,ASTStatement,ASTStatementExpressionList,ASTSwitchLabel,ASTSwitchStatement,ASTSynchronizedStatement,ASTThrowStatement,ASTTryStatement,ASTTypeArguments,ASTTypeParameters,ASTVariableInitializer,ASTWhileStatement,DummyJavaNode
public abstract class AbstractJavaNode extends net.sourceforge.pmd.lang.ast.AbstractNode implements JavaNode
-
-
Field Summary
Fields Modifier and Type Field Description protected JavaParserparser
-
Constructor Summary
Constructors Constructor Description AbstractJavaNode(int id)AbstractJavaNode(JavaParser parser, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectchildrenAccept(JavaParserVisitor visitor, java.lang.Object data)Accept the visitorCommentcomment()voidcomment(Comment theComment)net.sourceforge.pmd.lang.symboltable.ScopegetScope()java.lang.StringgetXPathNodeName()java.lang.ObjectjjtAccept(JavaParserVisitor visitor, java.lang.Object data)Accept the visitorvoidjjtClose()voidjjtOpen()voidsetScope(net.sourceforge.pmd.lang.symboltable.Scope scope)-
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, getNthParent, getParentsOfType, getUserData, 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.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Field Detail
-
parser
protected JavaParser parser
-
-
Constructor Detail
-
AbstractJavaNode
public AbstractJavaNode(int id)
-
AbstractJavaNode
public AbstractJavaNode(JavaParser parser, int id)
-
-
Method Detail
-
jjtOpen
public void jjtOpen()
- Specified by:
jjtOpenin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
jjtOpenin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtClose
public void jjtClose()
- Specified by:
jjtClosein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
jjtClosein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtAccept
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
Accept the visitor. *
-
childrenAccept
public java.lang.Object childrenAccept(JavaParserVisitor visitor, java.lang.Object data)
Accept the visitor. *- Specified by:
childrenAcceptin interfaceJavaNode
-
getScope
public net.sourceforge.pmd.lang.symboltable.Scope getScope()
-
setScope
public void setScope(net.sourceforge.pmd.lang.symboltable.Scope scope)
-
comment
public void comment(Comment theComment)
-
comment
public Comment comment()
-
getXPathNodeName
public final java.lang.String getXPathNodeName()
- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getXPathNodeNamein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
-