Examples of VWString


Examples of com.uic.ase.proj.xbn.array.VWString

    /**
      <P>Get a full (deep) copy of this VWString as an Object.</P>
     **/
    protected final Object clone() throws CloneNotSupportedException  {
      VWString acsClone = new VWString();
      for(int i = 0; i < size(); i++)  {
        acsClone.add(getString(i));
      }

      return acsClone;
    }
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.VWString

      new PARString(
        new PARDupNullLen(false, true, (new RCLength(1, -1, false))),
        new PAROrderDir(true)));
    pass.isValid("xbn.util.Utility.getPackageDependencies", "as_acceptPkgPre");

    VWString acsAcceptPre = new VWString(true);
    if(as_acceptPkgPre != null)  {
      acsAcceptPre.addArray(as_acceptPkgPre);
    }

    //Get all the fully-qualified package names, in ascending
    //order.
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.VWString

    super(true);
  }

  public final void addPackage(String s_package)  {
    add(s_package);
    acoAcsDependsOn.add(new VWString(true));
    acoAcsDependedOnBy.add(new VWString(true));
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.VWString

      optr_dbg.write("TemplateDataOrString:  Parsing...START");
      optr_dbg.write("\tTemplate name:           '" + getName() + "'");
      optr_dbg.write("[" + tp_config.toString() + "]");
    }

    VWString acsSurroundingText = new VWString();
    StringBuffer sbCurrentSurrText = new StringBuffer(sES);
    AOSLCreator aoslc = new AOSLCreator();

    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())  {
        sbCurrentSurrText.append(sFinalSurrTxt);
      }
    }

    if(aoslc.getCountUnq() < 1)  {
      //There are no gaps, so the FLR contains a plain string.
      sString = sbCurrentSurrText.toString();
      tData = null;

      optr_dbg.write("No gaps found.  isTemplate() equals false.  Use getString().");

    else  {
      //There is at least one gap.  Add the final surrounding
      //text to the array.
      if(!tp_config.doIgnoreSurrTxt())  {
        addCurrSurrTextOntoArray(acsSurroundingText, sbCurrentSurrText);
      }

      sString = null;

      aoslc.lock();
      tData = new TemplateData(getName(),
        aoslc.getAOSLookup(),
        new APString(acsSurroundingText.getAOString()),
        tlao.sTagStart, tlao.sTagEnd);

      sName = null;

      if(optr_dbg.isOn())  {
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.VWString

    @param  crc_delimiters  Defines variable and comment delimiters.  May not be null.  See <A HREF="#getCRCDelimiters()">getCRCDelimiters</A>.
    @param  crc_variable  The configuration for variables.  May not be null.  See <A HREF="#getCRCVariable()">getCRCVariable</A>.
   **/
  public CRConfig(CRCDelimiters crc_delimiters, CRCVariable crc_variable)  {
    VWString vws = new VWString();

    try  {
      vws.addAPChar(crc_delimiters.getVarDelimsAPC());
    catch(NullPointerException npx)  {
      throwAX("constructor:  crc_delimiters is null.");
    }
    vws.addChar(crc_delimiters.getMLCStart());
    vws.addChar(crc_delimiters.getMLCEnd());
    vws.addChar(crc_delimiters.getSingleLineCmt());

    try  {
      if(crc_variable.getCRCVTrim().doUseESChar())  {
        vws.addChar(crc_variable.getCRCVTrim().getESChar());
      }
    }  catch(NullPointerException npx)  {
      throwAX("constructor:  crc_delimiters is null.");
    }

    //This constructor validates things that are *relational*
    //between crc_delimiters and crc_variable:
    //  - Uniqueness overall
    //  - crc_delimiters characters not existing in
    //    crc_variable.getNullValue().
    //  - crc_delimiters characters not being specifically
    //    escaped.

    vws.addChar(crc_variable.getCRCVUnescape().getEscapeChar());
    vws.addAPChar(crc_variable.getCRCVUnescape().getUSCIgnore().getAPCIgnore());

    //Get name array for getContainedIdxs...START
      VWString acsNames = new VWString();
      for(int i = 0; i < crc_delimiters.getVarDelimsAPC().getLength(); i++)  {
        acsNames.add("crc_delimiters.getVarDelimsAPC().getChar(" + i + ")");
      }
      acsNames.add("crc_delimiters.getMLCStart()");
      acsNames.add("crc_delimiters.getMLCEnd()");
      acsNames.add("crc_delimiters.getSingleLine()");
      if(crc_variable.getCRCVTrim().doUseESChar())  {
        acsNames.add("crc_variable.getCRCVTrim().getESChar()");
      }
      acsNames.add("crc_variable.getCRCVUnescape().getEscapeChar()");
    //Get name array for getContainedIdxs...END

    SOBString[] ass = (new PASString(vws.getAOString())).getNewAOSOBString();
    (new UtilSOB()).getContainedIdxs(ass, (new GCIConfig("xbn.config.CRConfig.constructor", acsNames.getAOString(), false)));

    ZCICharErr cice = new ZCICharErr("crc_variable.getNullValue()");
    SOBString ssNV = new SOBString(crc_variable.getNullValue());

    for(int i = 0; i < crc_delimiters.getVarDelimsAPC().getLength(); i++)  {
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.VWString

    }

    optr.write("   df.toString()=" + df.toString());

      StringBuffer sbErrors = new StringBuffer(sES);
      VWString vws = new VWString();

      optr.getOConfig().getMsgFormat().setIndent("\t");
      int iErrors = actuallyReport(df, b_printXOnTheFly, sbErrors, jdca, b_cibJDLCTarget, false, optr, vws, s_pkgPrefix, s_sourceCodeBaseDir, s_relUrlJDToCodeBases, sbSCLReport);
      optr.getOConfig().getMsgFormat().setIndent(null);
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.VWString

  public String getExternalUrl(int i_dx)  {
    return getPackageType(i_dx).getExternalUrl();
  }

  String getNotFoundPrefixList()  {
    VWString vws = null;
    for(int i = 0; i < getLength(); i++)  {
      if(!getPackageType(i).isFound())  {
        if(vws == null)  {
          vws = new VWString();
        }

        vws.add(getPackageType(i).getPrefix());
      }
    }

    if(vws == null)  {
      return null;
    }

    return (new ListPA("'", "', '", "'")).get(vws.getAOString());
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.VWString

    <P>Get all the unique gap names that exist in the provided source text, or null if no gaps exist.</P>

    <P>See <A HREF="~JD~addUnqGapNamesToACS(vws,flr,gc,optr)~EJD~">addUnqGapNamesToACS</A></P>
   **/
  public final String[] getAOSUniqueGapNames(ForLineRetrieval flr_srcTxt, GapConfig gap_config, Outputter optr_dbg)  {
    VWString vws = new VWString();
    addUnqGapNamesToACS(vws, flr_srcTxt, gap_config, optr_dbg);

    if(vws.size() == 0)  {
      return null;
    }

    return vws.getAOString();
  }
View Full Code Here

Examples of com.uic.ase.proj.xbn.array.VWString

    catch(TemplateFormatException tfx)  {
      throwAX("getAOSUniqueGapNames:  Attempting to create a TemplateDataOrString:  " + tfx.toString());
    }

    if(vws_uniqueGaps == null)  {
      vws_uniqueGaps = new VWString();
    }

    i_i ii = new i_i(0, 0);

    if(tdos.isString())  {
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.