public static boolean hasConstructors ( List < JCTree > trees ) { for ( List < JCTree > l = trees ; l . nonEmpty ( ) ; l = l . tail ) if ( isConstructor ( l . head ) ) return true ; return false ; }
Is there a constructor declaration in the given list of trees?