protected List < Map < String , ? > > generateTypeDeclarations ( Set < String > declarators ) { final List < Map < String , ? > > list = new ArrayList <> ( ) ; if ( ! declarators . isEmpty ( ) ) { list . add ( pattern ( it -> { it . matches ( keywordRegex ( declarators ) ) ; it . style ( TYPE_DECLARATION_STYLE ) ; it . comment ( "Type Declarations" ) ; //$NON-NLS-1$ } ) ) ; } return list ; }
Generate the rules for the type declaration keywords .