public static List < String > process ( List < String > tokens , Policy policy ) { if ( policy == Policy . CONCATENATE ) { return concatenate ( tokens ) ; } else { return expand ( tokens ) ; } }
Process a list of tokens to apply the stated policy to the tokens .