Examples of Ref


Examples of org.eclipse.jgit.lib.Ref

    }

    @Override
    protected boolean compareAndRemove(Ref oldRef) throws IOException {
      String name = oldRef.getName();
      Ref cur = refs.get(name);
      if (cur != null && eq(cur, oldRef))
        return refs.remove(name, cur);
      else
        return false;
    }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.Ref

      EList<EObject> _contents_2 = textOrMarkup.getContents();
      Iterable<EObject> _tail = IterableExtensions.<EObject>tail(_contents_2);
      final EObject a = IterableExtensions.<EObject>head(_tail);
      EList<EObject> _contents_3 = textOrMarkup.getContents();
      EObject _get = _contents_3.get(3);
      final Ref r = ((Ref) _get);
      Identifiable _ref = r.getRef();
      Assert.assertEquals(a, _ref);
      EList<TextOrMarkup> _contents_4 = r.getContents();
      TextOrMarkup _head = IterableExtensions.<TextOrMarkup>head(_contents_4);
      EList<EObject> _contents_5 = _head.getContents();
      EObject _head_1 = IterableExtensions.<EObject>head(_contents_5);
      String _text = ((TextPart) _head_1).getText();
      Assert.assertEquals(refText, _text);
View Full Code Here

Examples of org.locationtech.geogig.api.Ref

            return null;
        }

        final Optional<Ref> currHead = command(RefParse.class).setName(Ref.HEAD).call();
        checkState(currHead.isPresent(), "Repository has no HEAD, can't commit");
        final Ref headRef = currHead.get();
        checkState(headRef instanceof SymRef,//
                "HEAD is in a dettached state, cannot commit. Create a branch from it before committing");

        final String currentBranch = ((SymRef) headRef).getTarget();
        final ObjectId currHeadCommitId = headRef.getObjectId();

        Supplier<RevTree> oldRoot = resolveOldRoot();
        if (!currHeadCommitId.isNull()) {
            if (amend) {
                RevCommit headCommit = command(RevObjectParse.class).setObjectId(currHeadCommitId)
View Full Code Here

Examples of org.openxri.xml.Ref

    List refs = parent.getPrioritizedRefs();
    Iterator it = refs.iterator();
   
    //// try each one in turn
    while (it.hasNext()) {
      Ref ref = (Ref)it.next();

      checkMaxRefs(xrdsOut, ref.getValue(), state);

      XRI refXRI;
      try {
        refXRI = parseAbsoluteQXRIOrError(ref.getValue());
      }
      catch (PartialResolutionException e) {
        xrdsOut.add(e.getPartialXRDS());
        continue;
      }
View Full Code Here

Examples of org.python.indexer.Ref

        }
        return null;
    }

    public Ref getRefOrFail(String qname, int offset, int length) throws Exception {
        Ref ref = getRefOrNull(qname, offset, length);
        assertNotNull("No reference to " + qname + " at offset " + offset + " of length " + length,
                      ref);
        return ref;
    }
View Full Code Here

Examples of org.zkoss.zss.engine.Ref

   * @see org.zkoss.zss.engine.RefMatrix#addRef(int, int, int, int)
   */
  @Override
  public Ref getOrCreateRef(int tRow, int lCol, int bRow, int rCol) {
    final RefAddr addr = new RefAddr(tRow, lCol, bRow, rCol);
    final Ref ref = _ltrbIndex.get(addr);
    if (ref != null) {
      return ref;
    }
    //a new reference
    //add the new Ref into the RefIndex
    final Ref candidateRef = tRow == bRow && lCol == rCol ?
      new CellRefImpl(tRow, lCol, this) : new AreaRefImpl(tRow, lCol, bRow, rCol, this);

    //update the ltrb index
    _ltrbIndex.put(addr, candidateRef);
   
View Full Code Here

Examples of railo.runtime.interpreter.ref.Ref

    if(JSON_STRUCT==null)JSON_STRUCT=fld.getFunction("_jsonStruct");
        isJson=this instanceof JSONExpressionInterpreter;
       
   
        cfml.removeSpace();
        Ref ref = assignOp();
        cfml.removeSpace();
       
        if(cfml.isAfterLast()) {
          //data.put(str+":"+preciseMath,ref);
            return ref.getValue(pc);
        }
        throw new InterpreterException("Syntax Error, invalid Expression ["+cfml.toString()+"]");
    }
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.