Examples of PTArray


Examples of com.uic.ase.proj.xbn.jdlcode.PTArray

  public final JDCArray getJDCAFromFLR(ForLineRetrieval for_lineRetrieval)  {
    throwAXIfNull(for_lineRetrieval, "for_lineRetrieval", "getJDCAFromFLR");

    VWObject acoJDC = new VWObject();
    VWObject acoPT = new VWObject();
    PTArray pta = null;

    boolean bFoundPTDivider = false;
    while(for_lineRetrieval.hasMoreLines())  {
      String sLine = for_lineRetrieval.getNextLine().toString();

      sLine = sLine.trim();
      if(sLine.length() > 0)  {
        if(!bFoundPTDivider)  {
          if(sLine.startsWith("~"))  {
            if(acoPT.size() == 0)  {
              throwAX("getJDCAFromFLR:  No PackageTypes found before the '~' divider line.  PackageTypes belong before it, and JDClasses after.  At least one of each is required.");
            }

            Object[] ao = acoPT.getAOObject();
            PackageType[] aPT = new PackageType[ao.length + 1];
            for(int i = 0; i < ao.length; i++)  {
              aPT[i] = (PackageType)ao[i];
            }

            aPT[aPT.length - 1] = new PackageType("overview-summary", null);
            pta = new PTArray(aPT);
            bFoundPTDivider = true;

          else  {
            acoPT.add(getPackageTypeFromLine(sLine, for_lineRetrieval.getLineNumberPrev()));
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.