public Pattern < T , T > notFollowedBy ( final String name ) { if ( quantifier . hasProperty ( Quantifier . QuantifierProperty . OPTIONAL ) ) { throw new UnsupportedOperationException ( "Specifying a pattern with an optional path to NOT condition is not supported yet. " + "You can simulate such pattern with two independent patterns, one with and the other without " + "the optional part." ) ; } return new Pattern <> ( name , this , ConsumingStrategy . NOT_FOLLOW , afterMatchSkipStrategy ) ; }
Appends a new pattern to the existing one . The new pattern enforces that there is no event matching this pattern between the preceding pattern and succeeding this one .