Package org.jostraca.directive

Examples of org.jostraca.directive.ReplaceDirective.perform()


    ReplaceDirective rd = new ReplaceDirective();
    assertEquals( "replace", rd.getName() );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace", " a b ", bul, tahs, ps, ttmt );
    assertEquals( "xbx", ttmt.getTextTTM().transform( "xax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace/first", " a b ", bul, tahs, ps, ttmt );
View Full Code Here


    rd.perform( "replace", " a b ", bul, tahs, ps, ttmt );
    assertEquals( "xbx", ttmt.getTextTTM().transform( "xax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace/first", " a b ", bul, tahs, ps, ttmt );
    assertEquals( "xbxax", ttmt.getTextTTM().transform( "xaxax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace", " a 1 ", bul, tahs, ps, ttmt );
View Full Code Here

    rd.perform( "replace/first", " a b ", bul, tahs, ps, ttmt );
    assertEquals( "xbxax", ttmt.getTextTTM().transform( "xaxax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace", " a 1 ", bul, tahs, ps, ttmt );
    rd.perform( "replace", " b 2 ", bul, tahs, ps, ttmt );
    assertEquals( "x1x2x", ttmt.getTextTTM().transform( "xaxbx" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
View Full Code Here

    assertEquals( "xbxax", ttmt.getTextTTM().transform( "xaxax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace", " a 1 ", bul, tahs, ps, ttmt );
    rd.perform( "replace", " b 2 ", bul, tahs, ps, ttmt );
    assertEquals( "x1x2x", ttmt.getTextTTM().transform( "xaxbx" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace",       " a 1 ", bul, tahs, ps, ttmt );
View Full Code Here

    rd.perform( "replace", " b 2 ", bul, tahs, ps, ttmt );
    assertEquals( "x1x2x", ttmt.getTextTTM().transform( "xaxbx" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace",       " a 1 ", bul, tahs, ps, ttmt );
    rd.perform( "replace/first", " b 2 ", bul, tahs, ps, ttmt );
    assertEquals( "x1x2xbx1x", ttmt.getTextTTM().transform( "xaxbxbxax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
View Full Code Here

    assertEquals( "x1x2x", ttmt.getTextTTM().transform( "xaxbx" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace",       " a 1 ", bul, tahs, ps, ttmt );
    rd.perform( "replace/first", " b 2 ", bul, tahs, ps, ttmt );
    assertEquals( "x1x2xbx1x", ttmt.getTextTTM().transform( "xaxbxbxax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace",       " a 1 ", bul, tahs, ps, ttmt );
View Full Code Here

    rd.perform( "replace/first", " b 2 ", bul, tahs, ps, ttmt );
    assertEquals( "x1x2xbx1x", ttmt.getTextTTM().transform( "xaxbxbxax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace",       " a 1 ", bul, tahs, ps, ttmt );
    rd.perform( "replace/first", " b 2 ", bul, tahs, ps, ttmt );
    assertEquals( "12b1", ttmt.getTextTTM().transform( "abba" ) );


    ttmt = new TextualTransformManagerTable( ps );
View Full Code Here

    assertEquals( "x1x2xbx1x", ttmt.getTextTTM().transform( "xaxbxbxax" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace",       " a 1 ", bul, tahs, ps, ttmt );
    rd.perform( "replace/first", " b 2 ", bul, tahs, ps, ttmt );
    assertEquals( "12b1", ttmt.getTextTTM().transform( "abba" ) );


    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
View Full Code Here

    assertEquals( "12b1", ttmt.getTextTTM().transform( "abba" ) );


    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace", " a 1 ", bul, tahs, ps, ttmt );
    rd.perform( "replace", " bab 2 ", bul, tahs, ps, ttmt );
    assertEquals( "121", ttmt.getTextTTM().transform( "ababa" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
View Full Code Here


    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace", " a 1 ", bul, tahs, ps, ttmt );
    rd.perform( "replace", " bab 2 ", bul, tahs, ps, ttmt );
    assertEquals( "121", ttmt.getTextTTM().transform( "ababa" ) );

    ttmt = new TextualTransformManagerTable( ps );
    rd   = new ReplaceDirective();
    rd.perform( "replace/first", " a 1 ", bul, tahs, ps, ttmt );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.