Esempio n. 1
0
 /// <summary> This method returns the next node in the nodeset
 /// it returns -1 if there is no more node
 /// Afer finishing evaluating, don't forget to <em> reset the xpath </em>
 /// </summary>
 /// <returns> int corresponding to the VTD index
 /// </returns>
 public int evalXPath()
 {
     if (xpe != null)
     {
         if (ft == true)
         {
             if (vn != null)
             {
                 stackSize = vn.contextStack2.size;
             }
             ft = false;
             xpe.adjust(vn.getTokenCount());
         }
         return(xpe.evalNodeSet(vn));
     }
     throw new PilotException(" Null XPath expression ");
 }
Esempio n. 2
0
        public override int adjust(int n)
        {
            int i = e.adjust(n);

            if (ih != null && i == ih.e)
            {
            }
            else
            {
                ih = new intHash(i);
            }
            UnionExpr tmp = this.next;

            while (tmp != null)
            {
                tmp.e.adjust(n);
                tmp = tmp.next;
            }
            return(i);
        }
Esempio n. 3
0
 public override int adjust(int n)
 {
     // TODO Auto-generated method stub
     return(e.adjust(n));
 }