protected List < Map < String , ? > > generatePrimitiveTypes ( Set < String > primitiveTypes ) { final List < Map < String , ? > > list = new ArrayList <> ( ) ; if ( ! primitiveTypes . isEmpty ( ) ) { list . add ( pattern ( it -> { it . matches ( keywordRegex ( primitiveTypes ) + "(?:\\s*\\[\\s*\\])*" ) ; //$NON-NLS-1$ it . style ( PRIMITIVE_TYPE_STYLE ) ; it . comment ( "Primitive types" ) ; //$NON-NLS-1$ } ) ) ; } return list ; }
Generate the rules for the primitive types .