JavaNode, net.sourceforge.pmd.lang.ast.Node, net.sourceforge.pmd.lang.symboltable.ScopedNodeAbstractAnyTypeDeclaration, AbstractJavaAccessNode, AbstractJavaAccessTypeNode, AbstractMethodLikeNode, AbstractMethodOrConstructorDeclaration, ASTAnnotationMethodDeclaration, ASTAnnotationTypeDeclaration, ASTClassOrInterfaceDeclaration, ASTConstructorDeclaration, ASTEnumDeclaration, ASTFieldDeclaration, ASTFormalParameter, ASTLambdaExpression, ASTLocalVariableDeclaration, ASTMethodDeclaration, ASTPackageDeclaration, ASTResourcepublic interface Annotatable extends JavaNode
| 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.
|
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.
|
childrenAccept, 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, setUserDatajava.util.List<ASTAnnotation> getDeclaredAnnotations()
ASTAnnotation getAnnotation(java.lang.String annotQualifiedName)
annotQualifiedName - qulified name of the annotation.ASTAnnotaion node if the annotation is present on this node, else nullboolean isAnyAnnotationPresent(java.util.Collection<java.lang.String> annotQualifiedNames)
annotQualifiedNames - collection that cotains qulified name of annotations.true if any annotation is present on this node, else falseboolean isAnnotationPresent(java.lang.String annotQualifiedName)
annotQualifiedName - qulified name of the annotation.true if the annotation is present on this node, else falseCopyright © 2002–2018 PMD. All rights reserved.