protected static List < Pattern > splice2Pattern ( final String toSplice ) throws PatternSyntaxException { final List < Pattern > toReturn = new ArrayList < Pattern > ( ) ; for ( final String current : splice ( toSplice ) ) { toReturn . add ( Pattern . compile ( current ) ) ; } return toReturn ; }
Helper method which splices the provided String into a List of Pattern instances .