Examples of elementAt()


Examples of org.apache.xpath.NodeSetDTM.elementAt()

    // the positions it indicates may not be associated with the
    // current iterator.
    if ((null != m_cachedNodes)
        && (m_next < m_cachedNodes.size()))       
    {
      int next = m_cachedNodes.elementAt(m_next);
      this.setCurrentPos(++m_next);
      m_lastFetched = next;
     
      return next;
    }
View Full Code Here

Examples of org.apache.xpath.VariableStack.elementAt()

      // XObject xobj = v.getValue(this, contextNode);
      XObject xobj = new XUnresolvedVariable(v, contextNode, this,
                                     vs.getStackFrame(), 0, true);
     
      if(null == vs.elementAt(i))                              
        vs.setGlobalVariable(i, xobj);
    }

  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.util.ObjectVector.elementAt()

            // protected method need to be checked only - default access is already dealt with in #canBeSeen implementation
            // when checking that p.C -> q.B -> p.A cannot see default access members from A through B.
            // if ((currentMethod.modifiers & AccProtected) == 0) continue nextMethod;
            // BUT we can also ignore any overridden method since we already know the better match (fixes 80028)
            for (int j = 0, max = found.size; j < max; j++) {
              MethodBinding matchingMethod = (MethodBinding) found.elementAt(j);
              if (verifier.doesMethodOverride(matchingMethod.original(), currentMethod.original())) {
                if (isCompliant15) {
                  if (matchingMethod.isBridge() && !currentMethod.isBridge())
                    continue nextMethod; // keep inherited methods to find concrete method over a bridge method
                }
View Full Code Here

Examples of org.cybergarage.upnp.DeviceList.elementAt()

    }else if((childs==null)||(childsUDN==null)){
      return false;
    }else if(childs.length==childsUDN.length){
            DeviceList dl = d.getDeviceList();
            for (int i = 0; i < childs.length; i++) {
                Device dev = (Device)dl.elementAt(i);
                if(!bindInvokes(dev,childs[i]))
                    return false;
            }

      return true;
View Full Code Here

Examples of org.cybergarage.upnp.ServiceList.elementAt()

      hash.put(UPnPDevice.TYPE, deviceType);
      ServiceList services = device.getServiceList();
      Vector eventedSers = new Vector();

      for (int i = 0; i < services.size(); i++) {
        Service service = (Service) services.elementAt(i);
        ServiceStateTable vars = service.getServiceStateTable();
        for (int j = 0; j < vars.size(); j++) {
          StateVariable var = (StateVariable) vars.elementAt(j);
          if (var.isSendEvents()) {
            eventedSers.add(service);
View Full Code Here

Examples of org.cybergarage.upnp.ServiceStateTable.elementAt()

      for (int i = 0; i < services.size(); i++) {
        Service service = (Service) services.elementAt(i);
        ServiceStateTable vars = service.getServiceStateTable();
        for (int j = 0; j < vars.size(); j++) {
          StateVariable var = (StateVariable) vars.elementAt(j);
          if (var.isSendEvents()) {
            eventedSers.add(service);
            break;
          }
        }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector.elementAt()

            // protected method need to be checked only - default access is already dealt with in #canBeSeen implementation
            // when checking that p.C -> q.B -> p.A cannot see default access members from A through B.
            // if ((currentMethod.modifiers & AccProtected) == 0) continue nextMethod;
            // BUT we can also ignore any overridden method since we already know the better match (fixes 80028)
            for (int j = 0, max = found.size; j < max; j++) {
              MethodBinding matchingMethod = (MethodBinding) found.elementAt(j);
              MethodBinding matchingOriginal = matchingMethod.original();
              MethodBinding currentOriginal = matchingOriginal.findOriginalInheritedMethod(currentMethod);
              if (currentOriginal != null && verifier.isParameterSubsignature(matchingOriginal, currentOriginal)) {
                if (isCompliant15) {
                  if (matchingMethod.isBridge() && !currentMethod.isBridge())
View Full Code Here

Examples of org.fnlp.ml.types.sv.SparseMatrix.elementAt()

    SparseMatrix matrixWVWH = matrixTranW.mutiplyMatrix(matrixVWH);
    for (int i = h.vector.size(); i-- > 0;) {
      itH.advance();
      matrixHWVWH.set(itH.key(),
          itH.value() * matrixWVWH.elementAt(itH.key()));
    }
    return matrixHWVWH;
  }

  SparseMatrix updateW() {
View Full Code Here

Examples of org.htmlparser.lexer.PageIndex.elementAt()

            n = (int)(d * 100838);
            pos = index.row (n);

            // test for correct position
            if (0 <= pos - 1)
                assertTrue ("search error less " + pos + " " + index.elementAt (pos - 1) + " " + n, index.elementAt (pos - 1) <= n);
            if (pos + 1 < index.size ())
                assertTrue ("search error greater " + pos + " " + index.elementAt (pos + 1) + " " + n, index.elementAt (pos + 1) > n);
        }

        list = index.get ();
View Full Code Here

Examples of org.htmlparser.util.NodeList.elementAt()

      nodes = parser.extractAllNodesThatMatch(nfilter);
    } catch (ParserException e) {
      return html;
    }
    for(int i=0;i<nodes.size();i++){
      TextNode node = (TextNode)nodes.elementAt(i);
      text.append(node.getText());
    }
    return StringUtils.remove(text.toString(),"&nbsp;");
  }
View Full Code Here
TOP
Copyright © 2015 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.