protected MetaMatcher createMetaMatcher ( String filterAsString , Map < String , MetaMatcher > metaMatchers ) { for ( String key : metaMatchers . keySet ( ) ) { if ( filterAsString . startsWith ( key ) ) { return metaMatchers . get ( key ) ; } } if ( filterAsString . startsWith ( GROOVY ) ) { return new GroovyMetaMatcher ( ) ; } return new DefaultMetaMatcher ( ) ; }
Creates a MetaMatcher based on the filter content .