Examples of toList()


Examples of com.whatevernot.flatlang.INode.toList()

      {
        String methodName = value;
       
        if(node.isList())
        {
          String[] list = node.toList();
          mi = SetterUtil.handleList(methodName, list, className_, methods);
        }
        else if(node.isMap())
        {
          Properties props = node.toMap();
View Full Code Here

Examples of erjang.EBitString.toList()

  @BIF
  public static EObject bitstring_to_list(EObject obj) {
    EBitString bin = obj.testBitString();
    if (bin == null)
      throw ERT.badarg(obj);
    return bin.toList();
  }

  @BIF
  public static EString binary_to_list(EObject obj, EObject start, EObject stop) {
    EBinary bin = obj.testBinary();
View Full Code Here

Examples of hudson.util.ArgumentListBuilder.toList()

            {
                boolean normalExit = false;
                try {
                    Result r = process.call(new Builder(
                        listener,new ProxyImpl(),
                        getProject(), margs.toList(), systemProps));
                    normalExit = true;
                    return r;
                } finally {
                    if(normalExitprocess.recycle();
                    else            process.discard();
View Full Code Here

Examples of hudson.util.DescribableList.toList()

        DescribableList describableList = (DescribableList) value;

        BasicDBList convertedList = new BasicDBList();

        for(Object obj : describableList.toList()) {
            convertedList.add(getMapper().toDBObject(obj));
        }

        return convertedList;
    }
View Full Code Here

Examples of net.didion.jwnl.data.list.PointerTargetTree.toList()

      IndexWord iw = Dictionary.getInstance().lookupIndexWord(
          getPOS(pos), word);
      PointerTargetTree hyponyms = PointerUtils.getInstance()
          .getHyponymTree(iw.getSense(1));
      @SuppressWarnings("unchecked")
      List<PointerTargetNodeList> list = hyponyms.toList();
      for (int i = 0; i < list.size(); i++) {
        PointerTargetNodeList ptnl = (PointerTargetNodeList) list
            .get(i);
        for (int j = 0; j < ptnl.size(); j++) {
          PointerTargetNode ptn = (PointerTargetNode) ptnl.get(0);
View Full Code Here

Examples of net.fortytwo.ripple.model.ModelConnection.toList()

        RippleValue l2a = mc.valueOf("2a", XMLSchema.STRING);
        RippleValue l2b = mc.valueOf("2b", XMLSchema.STRING);

        head = new RDFValue(createURI("urn:test.RippleListTest.FromRdfTest#simpleList", mc));
        created.clear();
        mc.toList(head, created);
        assertEquals(1, created.size());
        allowed.clear();
        allowed.put(mc.list().push(l2).push(l1));
        created.writeTo(verifySink);
View Full Code Here

Examples of net.sf.kpex.prolog.Source.toList()

  @Override
  public int exec(Prog p)
  {
    Source original = (Source) getArg(0);
    Const Xs = original.toList();
    return putArg(1, new net.sf.kpex.prolog.ListSource(Xs, p), p) > 0
        && putArg(2, new net.sf.kpex.prolog.ListSource(Xs, p), p) > 0 ? 1 : 0;
  }
}
View Full Code Here

Examples of org.antlr.misc.IntSet.toList()

  protected static Integer getTokenType(Label label) {
    if ( label.isSet() ) {
      // pick random element of set
      IntSet typeSet = label.getSet();
      List typeList = typeSet.toList();
      int randomIndex = random.nextInt(typeList.size());
      return (Integer)typeList.get(randomIndex);
    }
    else {
      return Utils.integer(label.getAtom());
View Full Code Here

Examples of org.antlr.misc.IntervalSet.toList()

  @Test public void testToList() throws Exception {
    IntervalSet s = IntervalSet.of(20,25);
    s.add(50,55);
    s.add(5,5);
    String expecting = "[5, 20, 21, 22, 23, 24, 25, 50, 51, 52, 53, 54, 55]";
    String result = String.valueOf(s.toList());
    assertEquals(result, expecting);
  }

  /** The following was broken:
      {'\u0000'..'s', 'u'..'\uFFFE'} &amp; {'\u0000'..'q', 's'..'\uFFFE'}=
View Full Code Here

Examples of org.antlr.v4.runtime.misc.IntervalSet.toList()

  @Test public void testToList() throws Exception {
    IntervalSet s = IntervalSet.of(20,25);
    s.add(50,55);
    s.add(5,5);
    String expecting = "[5, 20, 21, 22, 23, 24, 25, 50, 51, 52, 53, 54, 55]";
    String result = String.valueOf(s.toList());
    assertEquals(expecting, result);
  }

  /** The following was broken:
      {'\u0000'..'s', 'u'..'\uFFFE'} & {'\u0000'..'q', 's'..'\uFFFE'}=
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.