net.sourceforge.pmd.lang.ast.Node
, JavaNode
, net.sourceforge.pmd.lang.symboltable.ScopedNode
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
Modifier and Type | Field | Description |
---|---|---|
protected JavaParser |
parser |
Constructor | Description |
---|---|
AbstractJavaNode(int id) |
|
AbstractJavaNode(JavaParser parser,
int id) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
childrenAccept(JavaParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
Comment |
comment() |
|
void |
comment(Comment theComment) |
|
net.sourceforge.pmd.lang.symboltable.Scope |
getScope() |
|
java.lang.String |
getXPathNodeName() |
|
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
void |
jjtClose() |
|
void |
jjtOpen() |
|
void |
setScope(net.sourceforge.pmd.lang.symboltable.Scope scope) |
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, 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
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
protected JavaParser parser
public AbstractJavaNode(int id)
public AbstractJavaNode(JavaParser parser, int id)
public void jjtOpen()
jjtOpen
in interface net.sourceforge.pmd.lang.ast.Node
jjtOpen
in class net.sourceforge.pmd.lang.ast.AbstractNode
public void jjtClose()
jjtClose
in interface net.sourceforge.pmd.lang.ast.Node
jjtClose
in class net.sourceforge.pmd.lang.ast.AbstractNode
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
public java.lang.Object childrenAccept(JavaParserVisitor visitor, java.lang.Object data)
childrenAccept
in interface JavaNode
public net.sourceforge.pmd.lang.symboltable.Scope getScope()
public void setScope(net.sourceforge.pmd.lang.symboltable.Scope scope)
public void comment(Comment theComment)
public Comment comment()
public final java.lang.String getXPathNodeName()
getXPathNodeName
in interface net.sourceforge.pmd.lang.ast.Node
getXPathNodeName
in class net.sourceforge.pmd.lang.ast.AbstractNode
Copyright © 2002–2018 PMD. All rights reserved.