Package com.uic.ase.proj.xbn.template

Examples of com.uic.ase.proj.xbn.template.TemplateLineAnalyzer


    TLAObjects tlao = new TLAObjects(tp_config);

    while(for_lineRetrieval.hasMoreLines())  {
      StringBuffer sbLine = for_lineRetrieval.getNextLine();
      TemplateLineAnalyzer tla = new TemplateLineAnalyzer(getName(), for_lineRetrieval.getLineNumberPrev(), sbLine, tlao);

      String sFinalSurrTxt = null;
      while(!tla.isDoneAnalyzing())  {
        if(tla.hasAnotherGap())  {
          s_s ss = tla.getNextSurrTxtAndGap();

          if(!tp_config.doIgnoreSurrTxt())  {
            sbCurrentSurrText.append(ss.s1);
            addCurrSurrTextOntoArray(acsSurroundingText, sbCurrentSurrText);
          }

          aoslc.addString(ss.s2);

          if(aoslc.wasLastStringUnique())  {
            //THIS IS PRINTING OUT AFTER THE GAP *FOLLOWING*
            //THE ONE THAT IS UNIQUE.  HMMMMM.
            optr_dbg.write("\t\t\t[ UNIQUE ]");
          }

        }  else  {
          //The end of the line has been reached.  Get the final
          //surrounding text.
          sFinalSurrTxt = tla.getFinalSurrTxt();

        }
      }

      if(!tp_config.doIgnoreSurrTxt())  {
View Full Code Here


    StringBuffer sbOutput = new StringBuffer(sES);
    FLRString flrsLine = new FLRString(s_line);

    while(flrsLine.hasMoreLines())  {
      StringBuffer sbLine = flrsLine.getNextLine();
      TemplateLineAnalyzer tla = new TemplateLineAnalyzer(null, flrsLine.getLineNumberPrev(), sbLine, tla_objects);

      if(!tla.isDoneAnalyzing())  {
        while(tla.hasAnotherGap())  {
          s_s ss = tla.getNextSurrTxtAndGap();
          sbOutput.append(ss.s1);
          appendLinkFromCode(sbOutput, ss.s2, jdf_current, jdc_array, b_cibJDLCTarget, b_ignoreIndirectJDLCs);

        }

        //The end of the line has been reached.
        sbOutput.append(tla.getFinalSurrTxt());
      }

    }

    return sbOutput.toString();
View Full Code Here

TOP

Related Classes of com.uic.ase.proj.xbn.template.TemplateLineAnalyzer

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.