Package com.uic.ase.proj.xbn.util

Examples of com.uic.ase.proj.xbn.util.ForLineRetrieval


      int j = 0;

      String sPath = fThis.getPath();

      FLRFile flrf = new FLRFile(sPath);
      ForLineRetrieval flrJDLC = null;
      ForLineRetrieval flrSCL = null;

      if(sPath.endsWith(".java"))  {
        StringBuffer sbJDText = getJDTextFromJava(flrf);

        if(jdc_array != null)  {
          flrJDLC = new FLRString(sbJDText);
        }

        if(s_relUrlJDToCodeBases != null)  {
          //Must duplicate sbJDText!!!
          flrSCL = new FLRString(new StringBuffer(sbJDText.toString()));
        }

      }  else  {

        if(jdc_array != null)  {
          flrJDLC = flrf;
        }

        if(s_relUrlJDToCodeBases != null)  {
          if(jdc_array == null)  {
            flrSCL = new FLRFile(sPath);
          else  {
            flrSCL = flrf;
          }
        }
      }

      final String sJVDC_LNK = "-- JAVADOC LINK:  ";

      if(jdc_array != null)  {
        //Analyze Javadoc Link Codes.

        try  {
          i_i ii = uTemplate.addUnqGapNamesToACS(acs_uniqueGapNames,
            flrJDLC,
            new GapConfig(getJDLinkGapTextStart(), getJDLinkGapTextEnd()),
            (new Outputter()));

          iUniqueJDLCs += ii.i1;
          iAbsoluteJDLCs += ii.i2;

        catch(AssertException ax)  {
          String sXMsg = ax.toString().substring(ax.toString().indexOf(sERR_2CHOPUP2) + sERR_2CHOPUP2.length());
          iErrors++;

          optr_dbg.writeNoln("x");

          if(b_printXOnTheFly)  {
            optr_dbg.write(sLS + sJVDC_LNK + acs_uniqueGapNames.getString(j) + sLS + sXMsg);
          }

          if(!sPreviousFile.equals(sCurrentFile))  {
            sb_errors.append(sLS + "SOURCE FILE:   " + fThis.getPath() + sLS);
          }
          sPreviousFile = sCurrentFile;

          if(acs_uniqueGapNames.size() > 0)  {
            sb_errors.append(sJVDC_LNK + acs_uniqueGapNames.getString(j) + sLS);
          }
          sb_errors.append(sXMsg + sLS);
        }

        for(; j < acs_uniqueGapNames.size(); j++)  {
          try  {
            SplitLinkCode slc = new SplitLinkCode(acs_uniqueGapNames.getString(j));
            getRelUrl(slc, jdfLinkSource, jdc_array, b_cibJDLCTarget, b_ignoreIndirectJDLCs);
            optr_dbg.writeNoln(sPD);
          catch(AssertException ax)  {
            String sXMsg = ax.toString().substring(ax.toString().indexOf(sERR_2CHOPUP2) + sERR_2CHOPUP2.length());
            iErrors++;

            optr_dbg.writeNoln("x");

            if(b_printXOnTheFly)  {
              optr_dbg.write(sLS + sJVDC_LNK + acs_uniqueGapNames.getString(j) + sLS + sXMsg);
            }

            if(!sPreviousFile.equals(sCurrentFile))  {
              sb_errors.append(sLS + "SOURCE FILE:   " + fThis.getPath() + sLS);
            }
            sPreviousFile = sCurrentFile;

            if(acs_uniqueGapNames.size() > 0)  {
              sb_errors.append(sJVDC_LNK + acs_uniqueGapNames.getString(j) + sLS);
            }
            sb_errors.append(sXMsg + sLS);
          }
        }

        acs_uniqueGapNames.initializeVector();
      }

      if(jdc_array != null  &&  s_sourceCodeBaseDir != null)  {
        optr_dbg.writeNoln("|");
      }

      if(s_sourceCodeBaseDir != null)  {
        //Analyze source-code links.

        while(flrSCL.hasMoreLines())  {
          SOBStringBuffer ssb = new SOBStringBuffer(flrSCL.getNextLine());

          int iDeletedChars = 0;
          int iLink = 0;
          while(iLink != -1)  {
            iLink = ssb.indexOf(s_relUrlJDToCodeBases);
View Full Code Here

TOP

Related Classes of com.uic.ase.proj.xbn.util.ForLineRetrieval

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.