protected List < ? > createPatterns ( Set < String > literals , Set < String > expressionKeywords , Set < String > modifiers , Set < String > primitiveTypes , Set < String > punctuation , Set < String > ignored , Set < String > specialKeywords , Set < String > typeDeclarationKeywords ) { final List < Map < String , ? > > patterns = new ArrayList <> ( ) ; patterns . addAll ( generateComments ( ) ) ; patterns . addAll ( generateStrings ( ) ) ; patterns . addAll ( generateNumericConstants ( ) ) ; patterns . addAll ( generateAnnotations ( ) ) ; patterns . addAll ( generateLiterals ( literals ) ) ; patterns . addAll ( generatePrimitiveTypes ( primitiveTypes ) ) ; patterns . addAll ( generateSpecialKeywords ( specialKeywords ) ) ; patterns . addAll ( generateModifiers ( modifiers ) ) ; patterns . addAll ( generateTypeDeclarations ( typeDeclarationKeywords ) ) ; patterns . addAll ( generateStandardKeywords ( expressionKeywords ) ) ; patterns . addAll ( generatePunctuation ( punctuation ) ) ; return patterns ; }
Create the patterns .