/** * This method matches two VTD tokens of VTDNav objects * * @param i1 * index of the first token * @param vn2 * the second VTDNav instance * @param i2 * index of the second token * @return boolean true if two tokens are lexically identical * */ final public boolean matchTokens(int i1, VTDNav vn2, int i2) throws NavException{ return compareTokens(i1,vn2,i2)==0; }
/** * This method matches two VTD tokens of VTDNav objects * * @param i1 * index of the first token * @param vn2 * the second VTDNav instance * @param i2 * index of the second token * @return boolean true if two tokens are lexically identical * */ final public boolean matchTokens(int i1, VTDNav vn2, int i2) throws NavException{ return compareTokens(i1,vn2,i2)==0; }
/** * This method matches two VTD tokens of VTDNav objects * * @param i1 * index of the first token * @param vn2 * the second VTDNav instance * @param i2 * index of the second token * @return boolean true if two tokens are lexically identical * */ final public boolean matchTokens(int i1, VTDNav vn2, int i2) throws NavException{ return compareTokens(i1,vn2,i2)==0; }
final private boolean compareVV(int k, VTDNav vn, int j,int op) throws NavException { int i = vn.compareTokens(k, vn, j); switch(i){ case 1: if (op == NE || op==GE || op == GT ){ return true; } break; case 0: if (op==EQ || op == LE || op == GE ){ return true; } break; case -1: if (op== NE || op == LT || op == LE){ return true; } } return false; }
final private boolean compareVV(int k, VTDNav vn, int j,int op) throws NavException { int i = vn.compareTokens(k, vn, j); switch(i){ case 1: if (op == NE || op==GE || op == GT ){ return true; } break; case 0: if (op==EQ || op == LE || op == GE ){ return true; } break; case -1: if (op== NE || op == LT || op == LE){ return true; } } return false; }
protected boolean checkNsUniqueness(int i) throws NavException { for (int j = 0; j < fib.size(); j++) { if (vn.compareTokens(fib.intAt(j), vn, i) == 0) return false; } fib.append(i); return true; }
protected boolean checkNsUniqueness(int i) throws NavException{ for (int j=0;j<fib.size();j++){ if (vn.compareTokens(fib.intAt(j), vn, i)==0) return false; } fib.append(i); return true; } /**
protected boolean checkNsUniqueness(int i) throws NavException{ for (int j=0;j<fib.size();j++){ if (vn.compareTokens(fib.intAt(j), vn, i)==0) return false; } fib.append(i); return true; } /**
for (i=j+1;i<fib.size();i++){ if (fib.intAt(i)!=-1) if (vn.compareTokens(fib.intAt(j), vn, fib.intAt(i))==0){ fib.modifyEntry(i, -1);