public final boolean hasAnnotation ( final String name ) { if ( name == null ) { throw new IllegalArgumentException ( "The argument 'name' cannot be NULL!" ) ; } for ( int i = 0 ; i < annotations . size ( ) ; i ++ ) { final SgAnnotation annotation = annotations . get ( i ) ; if ( annotation . getName ( ) . equals ( name ) ) { return true ; } } return false ; }
Checks if a given annotation is in the list .