1 /** 2 * @fileoverview An interface for the NodeTest construct. 3 */ 4 5 goog.provide('xrx.xpath.NodeTest'); 6 7 8 9 /** 10 * The NodeTest interface to represent the NodeTest production 11 * in the xpath grammar: 12 * http://www.w3.org/TR/xpath-30/#prod-xpath30-NodeTest 13 * 14 * @interface 15 */ 16 xrx.xpath.NodeTest = function() {}; 17 18 19 /** 20 * Tests if a node matches the stored characteristics. 21 * 22 * @param {xrx.xpath..Node} node The node to be tested. 23 * @return {boolean} Whether the node passes the test. 24 */ 25 xrx.xpath.NodeTest.prototype.matches = goog.abstractMethod; 26 27 28 /** 29 * Returns the name of the test. 30 * 31 * @return {string} The name, either nodename or type name. 32 */ 33 xrx.xpath.NodeTest.prototype.getName = goog.abstractMethod; 34 35 36 /** 37 * @override 38 */ 39 xrx.xpath.NodeTest.prototype.toString = goog.abstractMethod; 40