Package org.jostraca.unit

Examples of org.jostraca.unit.BasicUnitOrigin


        // backwards compatibility support
        Hashtable isattr = new Hashtable();
        isattr.put( InsertSectionTransform.ATTR_unit_source_section, sectionName );
        BasicUnit bu = new BasicUnit( NAME, pTemplateActionHandler.getDefaultSection(), section.getContent(),
                                      new BasicUnitOrigin(), isattr );
        pBasicUnitList.add( bu );
      }
      else {
       
        // REVIEW: better to have the full directive text or line numbers
View Full Code Here


        // backwards compatibility support
        Hashtable isattr = new Hashtable();
        isattr.put( InsertSectionTransform.ATTR_unit_source_section, sectionName );
        BasicUnit bu = new BasicUnit( NAME, pTemplateActionHandler.getDefaultSection(), section.getContent(),
                                      new BasicUnitOrigin(), isattr );
        pBasicUnitList.add( bu );
      }
      else {
       
        // REVIEW: better to have the full directive text or line numbers
View Full Code Here

      match(TEXT);
     
      iBlocks.add( new Block( Block.TYPE_text, t.getText() ) );
      //System.out.println( "t:"+t.getText() );
      iUnitList.add( new BasicUnit( BasicUnitProcessor.TYPE_text, t.getText(),
      new BasicUnitOrigin( iReference, t.getLine(), t.getColumn(), 0, 0 ) ) );
     
    }
    catch (RecognitionException ex) {
      reportError(ex);
      consume();
View Full Code Here

      match(SCRIPT);
     
      iBlocks.add( new Block( Block.TYPE_script, t.getText() ) );
      //System.out.println( "s:"+t.getText() );
      iUnitList.add( new BasicUnit( BasicUnitProcessor.TYPE_script, t.getText(),
      new BasicUnitOrigin( iReference, t.getLine(), t.getColumn(), 0, 0 ) ) );
     
    }
    catch (RecognitionException ex) {
      reportError(ex);
      consume();
View Full Code Here

    isattr.put( InsertSectionTransform.ATTR_unit_source_section, "foo" );

    bus.add( new BasicUnit( "text",    "body", "12345678901234567890123456789012345678901234567890" ) );
    bus.add( new BasicUnit( "text",    "body", "bt01" ) );
    bus.add( new BasicUnit( "script""body", "bs01" ) );
    bus.add( new BasicUnit( "insert-section", "body", "", new BasicUnitOrigin(), isattr ) );
    bus.add( new BasicUnit( "text",    "body", "bt02" ) );
    bus.add( new BasicUnit( "script""body", "bs02" ) );

    bus.add( new BasicUnit( "text",    "foo", "foot02" ) );
    bus.add( new BasicUnit( "script""foo", "foos02" ) );
View Full Code Here

    isattr.put( InsertSectionTransform.ATTR_unit_source_section, "foo" );

    bus.add( new BasicUnit( "text",    "body", "12345678901234567890123456789012345678901234567890" ) );
    bus.add( new BasicUnit( "text",    "body", "bt01" ) );
    bus.add( new BasicUnit( "script""body", "bs01" ) );
    bus.add( new BasicUnit( "insert-section", "body", "", new BasicUnitOrigin(), isattr ) );
    bus.add( new BasicUnit( "text",    "body", "bt02" ) );
    bus.add( new BasicUnit( "script""body", "bs02" ) );

    bus.add( new BasicUnit( "text",    "foo", "foot02" ) );
    bus.add( new BasicUnit( "script""foo", "foos02" ) );
View Full Code Here

    try {
      bu01 = new BasicUnit( t01, null, c01 );
      fail();
    } catch( IllegalArgumentException iae ) {}

    UnitOrigin uo = new BasicUnitOrigin();
    bu01 = new BasicUnit( t01, s01, c01, uo );
    assertEquals( uo, bu01.getOrigin() );

    try {
      bu01 = new BasicUnit( t01, s01, c01, null );
View Full Code Here

TOP

Related Classes of org.jostraca.unit.BasicUnitOrigin

Copyright © 2018 www.massapicom. 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.