JavaNode
, net.sourceforge.pmd.lang.ast.Node
, net.sourceforge.pmd.lang.symboltable.ScopedNode
AbstractAnyTypeDeclaration
, AbstractJavaAccessNode
, AbstractJavaAccessTypeNode
, AbstractMethodLikeNode
, AbstractMethodOrConstructorDeclaration
, ASTAnnotationMethodDeclaration
, ASTAnnotationTypeDeclaration
, ASTClassOrInterfaceDeclaration
, ASTConstructorDeclaration
, ASTEnumDeclaration
, ASTFieldDeclaration
, ASTFormalParameter
, ASTLambdaExpression
, ASTLocalVariableDeclaration
, ASTMethodDeclaration
, ASTPackageDeclaration
, ASTResource
public 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, setScope
findChildNodesWithXPath, 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, setUserData
java.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 null
boolean 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 false
boolean isAnnotationPresent(java.lang.String annotQualifiedName)
annotQualifiedName
- qulified name of the annotation.true
if the annotation is present on this node, else false
Copyright © 2002–2018 PMD. All rights reserved.