public void addFilterAfter ( IRuleFilter filter , Class < ? extends IRuleFilter > afterFilter ) { int index = getIndexOfClass ( filters , afterFilter ) ; if ( index == - 1 ) { throw new FilterAddException ( "filter " + afterFilter . getSimpleName ( ) + " has not been added" ) ; } filters . add ( index + 1 , filter ) ; }
add filter after