Examples of head()


Examples of erjang.ESeq.head()

    case 5:
      proc.arg4 = rargs.head(); rargs = rargs.tail();
    case 4:
      proc.arg3 = rargs.head(); rargs = rargs.tail();
    case 3:
      proc.arg2 = rargs.head(); rargs = rargs.tail();
    case 2:
      proc.arg1 = rargs.head(); rargs = rargs.tail();
    case 1:
      proc.arg0 = rargs.head();
    case 0:
View Full Code Here

Examples of erjang.ESeq.head()

    case 4:
      proc.arg3 = rargs.head(); rargs = rargs.tail();
    case 3:
      proc.arg2 = rargs.head(); rargs = rargs.tail();
    case 2:
      proc.arg1 = rargs.head(); rargs = rargs.tail();
    case 1:
      proc.arg0 = rargs.head();
    case 0:
      break;
     
View Full Code Here

Examples of erjang.ESeq.head()

    case 3:
      proc.arg2 = rargs.head(); rargs = rargs.tail();
    case 2:
      proc.arg1 = rargs.head(); rargs = rargs.tail();
    case 1:
      proc.arg0 = rargs.head();
    case 0:
      break;
     
    default:
      return fun.apply(proc, args);
View Full Code Here

Examples of erjang.EString.head()

        || ((rdx = radix.testSmall()) == null))
      throw ERT.badarg(obj, radix);

    // remove leading +
    if (!seq.isNil()) {
    if (seq.head().equalsExactly(PLUS_SIGN)) {
        seq = seq.tail().testString();
       
        if (seq == null) {
          throw ERT.badarg(obj);
        }
View Full Code Here

Examples of erjang.EString.head()

    if ((seq = obj.testString()) == null)
      throw ERT.badarg(obj);

    // remove leading +
    if (!seq.isNil()) {
      if (seq.head().equalsExactly(PLUS_SIGN)) {
        seq = seq.tail().testString();
       
        if (seq == null) {
          throw ERT.badarg(obj);
        }
View Full Code Here

Examples of javassist.compiler.ast.ASTList.head()

/*      */   }
/*      */
/*      */   public void atArrayInit(ArrayInit init) throws CompileError {
/*  180 */     ASTList list = init;
/*  181 */     while (list != null) {
/*  182 */       ASTree h = list.head();
/*  183 */       list = list.tail();
/*  184 */       if (h != null)
/*  185 */         h.accept(this);
/*      */     }
/*      */   }
View Full Code Here

Examples of javassist.compiler.ast.Stmnt.head()

/*  528 */       if (op == 310)
/*  529 */         defaultPc = this.bytecode.currentPc();
/*  530 */       else if (op != 304)
/*  531 */         fatal();
/*      */       else {
/*  533 */         pairs[(ipairs++)] = ((computeLabel(label.head()) << 32) + (this.bytecode.currentPc() - opcodePc & 0xFFFFFFFF));
/*      */       }
/*      */
/*  538 */       this.hasReturned = false;
/*  539 */       ((Stmnt)label.tail()).accept(this);
/*      */     }
View Full Code Here

Examples of javolution.util.FastCollection.head()

    public void setEntitiesMapping(Map entityToReplacementText) {
        // Sets the maximum length for replacement text.
        Collection values = entityToReplacementText.values();
        if (values instanceof FastCollection) { // Avoids allocating iterators.
             FastCollection fc = (FastCollection) values;
             for (Record r=fc.head(), t=fc.tail(); (r = r.getNext())!= t;) {
                 CharSequence value = (CharSequence) fc.valueOf(r);
                 if (_maxLength < value.length()) {
                     _maxLength = value.length();
                 }
             }
View Full Code Here

Examples of org.apache.abdera.protocol.client.AbderaClient.head()

        return resource;
    }

    public boolean resourceExists(String path) throws RegistryException {
        AbderaClient abderaClient = new AbderaClient(abdera);
        ClientResponse response = abderaClient.head(baseURI + APPConstants.ATOM + encodeURL(path),
                getAuthorization());
        boolean exists = (response.getType() == Response.ResponseType.SUCCESS);
        abderaClient.teardown();
        return exists;
    }
View Full Code Here

Examples of org.apache.cxf.jaxrs.client.WebClient.head()

    @Test
    public void testHeadBookByURL() throws Exception {
        WebClient wc =
            WebClient.create("http://localhost:" + PORT
                             + "/bookstore/bookurl/http%3A%2F%2Ftest.com%2Frss%2F123");
        Response response = wc.head();
        assertTrue(response.getMetadata().size() != 0);
        assertEquals(0, ((InputStream)response.getEntity()).available());
    }
   
    @Test
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.