Examples of toArray()


Examples of org.apache.uima.cas.impl.StringArrayFSImpl.toArray()

    IntArrayFSImpl vamount = (IntArrayFSImpl) fs.getFeatureValue(famount);
    DoubleArrayFSImpl vpart = (DoubleArrayFSImpl) fs.getFeatureValue(fparts);

    String[] narray = new String[0];
    if(vname != null) {
      narray = vname.toArray();
    }
    double[] tarray = vtotal.toArray();
    int[] aarray = vamount.toArray();
    double[] parray = vpart.toArray();
View Full Code Here

Examples of org.apache.uima.internal.util.IntVector.toArray()

      v.add(fsLoopIndex.length);
      for (int k = 0; k < fsLoopIndex.length; k++) {
        v.add(fsLoopIndex[k]);
      }
    }
    return v.toArray();
  }

  void createStringTableFromArray(String[] stringTable) {
    // why a new heap instead of reseting the old one???
    // this.stringHeap = new StringHeap();
View Full Code Here

Examples of org.apache.uima.jcas.cas.FSArray.toArray()

      AnnotationFS fs = iterator.get();
      if (fs.getType().equals(blockApplyType)) {
        FeatureStructure featureValue = fs.getFeatureValue(innerApplyFeature);
        FSArray array = (FSArray) featureValue;

        FeatureStructure[] fsArray = array.toArray();
        for (FeatureStructure featureStructure : fsArray) {
          AnnotationFS ruleApply = (AnnotationFS) featureStructure;
          if (ruleApply.getType().equals(ruleApplyType)) {
            applyAmount = ruleApply.getIntValue(appliedFeature);
            triedAmount = ruleApply.getIntValue(triedFeature);
View Full Code Here

Examples of org.apache.uima.jcas.cas.StringArray.toArray()

      } else if (parentElement instanceof FeatureValue) {
        FeatureValue value = (FeatureValue) parentElement;

        if (parentElement instanceof StringArray) {
          StringArray array = (StringArray) parentElement;
          return array.toArray();
        }

        featureStructure = (FeatureStructure) value.getValue();
      } else {
        assert false : "Unexpected element!";
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.SequencedHashSet.toArray()

        }

        setUnionConstituentTypes((SchemaType[])
                constituentMemberTypes.toArray(StscState.EMPTY_ST_ARRAY));
        setUnionSubTypes((SchemaType[])
                allSubTypes.toArray(StscState.EMPTY_ST_ARRAY));
        setUnionCommonBaseType(commonBaseType);
    }

    public QName getSubstitutionGroup()
        { return _sg; }
View Full Code Here

Examples of org.aspectj.apache.bcel.util.ClassVector.toArray()

  clazz = clazz.getSuperClass())
    {
      vec.addElement(clazz);
    }

    return vec.toArray();
  }

  /**
   * Get interfaces directly implemented by this JavaClass.
   */
 
View Full Code Here

Examples of org.assertj.core.groups.Tuple.toArray()

 
  @SuppressWarnings("unchecked")
  @Test
  public void convert_tuple_to_an_array() {
  Tuple tuple = new Tuple("Yoda", 800, "Jedi");
  assertThat(tuple.toArray()).isEqualTo(array("Yoda", 800, "Jedi"));
  }
 
  @Test
  public void tuple_representation() {
  Tuple tuple = new Tuple("Yoda", 800, "Jedi");
View Full Code Here

Examples of org.boco.seamwebappgen.utils.CodeChunkArray.toArray()

      {
        relatedManagers += "&" + rel.getToBeanName() + "Manager";
      }
    }

    CodeChunk chunks[] = codeChunks.toArray(new CodeChunk[0]);

    Arrays.sort(chunks, new CodeChunkComparator());

    for (int i = 0; i < chunks.length; i++)
    {
View Full Code Here

Examples of org.boris.expr.util.ExprArrayBuilder.toArray()

    public static ExprArray loadArray(String filename) throws IOException {
        ExprArrayBuilder ab = new ExprArrayBuilder();
        for (String line : IO.readLines(TH.class, filename)) {
            ab.addRow(Exprs.parseValues(CSV.parseLine(line, ',', false)));
        }
        return ab.toArray();
    }
}
View Full Code Here

Examples of org.boris.xlloop.util.XLList.toArray()

        Thread.sleep(1000);

        XLList a = new XLList();
        a.add(4);
        a.add(4.5);
        XLoper res = rep.execute(null, "Script.sum", a.toArray());
        System.out.println(res);
    }
}
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.