public static boolean annotationTypeMatches ( Class < ? extends Annotation > type , JavacNode node ) { if ( node . getKind ( ) != Kind . ANNOTATION ) return false ; return typeMatches ( type , node , ( ( JCAnnotation ) node . get ( ) ) . annotationType ) ; }
Checks if the Annotation AST Node provided is likely to be an instance of the provided annotation type .