public matchElementNS ( System URL, System ln ) : bool | ||
URL | System | String /// |
ln | System | String /// |
Результат | bool |
public bool eval(VTDNav vn) { if (vn.atTerminal) return false; switch (type) { case 0: return true; case 1: return vn.matchElement(nodeName); case 2: return vn.matchElementNS(URL, localName); } //} return false; }
public bool eval(VTDNav vn) { if (testType == NODE) return true; else if (testType == NAMETEST) { if (vn.atTerminal == true) return false; if (localName != null) return vn.matchElementNS(URL, localName); else return vn.matchElement(nodeName); } return false; }
public bool eval2(VTDNav vn) { switch (testType) { case NAMETEST: if (vn.atTerminal) return false; switch (type) { case 0: return true; case 1: return vn.matchElement(nodeName); case 2: return vn.matchElementNS(URL, localName); } return false; case NODE: return true; case TEXT: if (!vn.atTerminal) return false; int t = vn.getTokenType(vn.LN); if (t == VTDNav.TOKEN_CHARACTER_DATA || t == VTDNav.TOKEN_CDATA_VAL) { return true; } return false; case PI0: if (!vn.atTerminal) return false; if (vn.getTokenType(vn.LN) == VTDNav.TOKEN_PI_NAME) { return true; } return false; case PI1: if (!vn.atTerminal) return false; if (vn.getTokenType(vn.LN) == VTDNav.TOKEN_PI_NAME) { return vn.matchTokenString(vn.LN, nodeName); } return false; default: // comment if (!vn.atTerminal) return false; if (vn.getTokenType(vn.LN) == VTDNav.TOKEN_COMMENT) { return true; } return false; } }