question: protected static RegExp createAllRule ( Map < String , String > defsMap ) { StringBuilder ruleRegExpr = new StringBuilder ( ) ; List < String > defsList = new ArrayList < > ( defsMap . values ( ) ) ; for ( int i = 0 , iMax = defsList . size ( ) ; i < iMax ; i ++ ) { String regExpr = defsList . get ( i ) ; ruleRegExpr . append ( String . format ( "(%s)" , regExpr ) ) ; if ( i < iMax - 1 ) { ruleRegExpr . append ( "|" ) ; } } return FACTORY . createRegExp ( ruleRegExpr . toString ( ) ) ; }
target:  Creates a rule that matches ALL definitions.