net.sourceforge.pmd.lang.ast.Node, AccessNode, Annotatable, JavaNode, net.sourceforge.pmd.lang.symboltable.ScopedNodeAbstractJavaAccessTypeNode, AbstractMethodLikeNode, ASTAnnotationMethodDeclaration, ASTLocalVariableDeclarationpublic abstract class AbstractJavaAccessNode extends AbstractJavaNode implements AccessNode
parserbeginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent| Constructor | Description |
|---|---|
AbstractJavaAccessNode(int i) |
|
AbstractJavaAccessNode(JavaParser parser,
int i) |
| Modifier and Type | Method | Description |
|---|---|---|
ASTAnnotation |
getAnnotation(java.lang.String annotQualifiedName) |
Get specific annotaion on this node.
|
java.util.List<ASTAnnotation> |
getDeclaredAnnotations() |
Get all annotations present on this node.
|
int |
getModifiers() |
|
boolean |
isAbstract() |
|
boolean |
isAnnotationPresent(java.lang.String annotQualifiedName) |
Checks whether the annotation is present on this node.
|
boolean |
isAnyAnnotationPresent(java.util.Collection<java.lang.String> annotQualifiedNames) |
Checks whether any annotation is present on this node.
|
boolean |
isDefault() |
|
boolean |
isFinal() |
|
boolean |
isNative() |
|
boolean |
isPackagePrivate() |
|
boolean |
isPrivate() |
|
boolean |
isProtected() |
|
boolean |
isPublic() |
|
boolean |
isStatic() |
|
boolean |
isStrictfp() |
|
boolean |
isSynchronized() |
|
boolean |
isTransient() |
|
boolean |
isVolatile() |
|
void |
setAbstract(boolean isAbstract) |
|
void |
setDefault(boolean isDefault) |
|
void |
setFinal(boolean isFinal) |
|
void |
setModifiers(int modifiers) |
|
void |
setNative(boolean isNative) |
|
void |
setPrivate(boolean isPrivate) |
|
void |
setProtected(boolean isProtected) |
|
void |
setPublic(boolean isPublic) |
|
void |
setStatic(boolean isStatic) |
|
void |
setStrictfp(boolean isStrictfp) |
|
void |
setSynchronized(boolean isSynchronized) |
|
void |
setTransient(boolean isTransient) |
|
void |
setVolatile(boolean isVolative) |
childrenAccept, comment, comment, getScope, getXPathNodeName, jjtAccept, jjtClose, jjtOpen, setScopeappendElement, findChildNodesWithXPath, findChildrenOfType, 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, toStringchildrenAccept, getScope, jjtAccept, setScopefindChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserDatapublic AbstractJavaAccessNode(int i)
public AbstractJavaAccessNode(JavaParser parser, int i)
public int getModifiers()
getModifiers in interface AccessNodepublic void setModifiers(int modifiers)
setModifiers in interface AccessNodepublic boolean isPublic()
isPublic in interface AccessNodepublic void setPublic(boolean isPublic)
setPublic in interface AccessNodepublic boolean isProtected()
isProtected in interface AccessNodepublic void setProtected(boolean isProtected)
setProtected in interface AccessNodepublic boolean isPrivate()
isPrivate in interface AccessNodepublic void setPrivate(boolean isPrivate)
setPrivate in interface AccessNodepublic boolean isAbstract()
isAbstract in interface AccessNodepublic void setAbstract(boolean isAbstract)
setAbstract in interface AccessNodepublic boolean isStatic()
isStatic in interface AccessNodepublic void setStatic(boolean isStatic)
setStatic in interface AccessNodepublic boolean isFinal()
isFinal in interface AccessNodepublic void setFinal(boolean isFinal)
setFinal in interface AccessNodepublic boolean isSynchronized()
isSynchronized in interface AccessNodepublic void setSynchronized(boolean isSynchronized)
setSynchronized in interface AccessNodepublic boolean isNative()
isNative in interface AccessNodepublic void setNative(boolean isNative)
setNative in interface AccessNodepublic boolean isTransient()
isTransient in interface AccessNodepublic void setTransient(boolean isTransient)
setTransient in interface AccessNodepublic boolean isVolatile()
isVolatile in interface AccessNodepublic void setVolatile(boolean isVolative)
setVolatile in interface AccessNodepublic boolean isStrictfp()
isStrictfp in interface AccessNodepublic void setStrictfp(boolean isStrictfp)
setStrictfp in interface AccessNodepublic boolean isDefault()
isDefault in interface AccessNodepublic void setDefault(boolean isDefault)
setDefault in interface AccessNodepublic boolean isPackagePrivate()
isPackagePrivate in interface AccessNodepublic java.util.List<ASTAnnotation> getDeclaredAnnotations()
AnnotatablegetDeclaredAnnotations in interface Annotatablepublic ASTAnnotation getAnnotation(java.lang.String annotQualifiedName)
AnnotatablegetAnnotation in interface AnnotatableannotQualifiedName - qulified name of the annotation.ASTAnnotaion node if the annotation is present on this node, else nullpublic boolean isAnnotationPresent(java.lang.String annotQualifiedName)
AnnotatableisAnnotationPresent in interface AnnotatableannotQualifiedName - qulified name of the annotation.true if the annotation is present on this node, else falsepublic boolean isAnyAnnotationPresent(java.util.Collection<java.lang.String> annotQualifiedNames)
AnnotatableisAnyAnnotationPresent in interface AnnotatableannotQualifiedNames - collection that cotains qulified name of annotations.true if any annotation is present on this node, else falseCopyright © 2002–2018 PMD. All rights reserved.