1 /** 2 * @fileoverview Class represents the empty tag token. 3 */ 4 5 goog.provide('xrx.token.EmptyTag'); 6 7 8 9 goog.require('xrx.token'); 10 11 12 /** 13 * Constructs a new empty tag token. 14 * @constructor 15 * @extends xrx.token 16 */ 17 xrx.token.EmptyTag = function(label, opt_offset, opt_length) { 18 goog.base(this, xrx.token.EMPTY_TAG, label, opt_offset, opt_length); 19 }; 20 goog.inherits(xrx.token.EmptyTag, xrx.token); 21 22 23 24 /** 25 * Compares the generic type of two tokens. 26 * 27 * @param {!number} type The type to check against. 28 * @return {!boolean} 29 */ 30 xrx.token.EmptyTag.prototype.typeOf = function(type) { 31 return this.type_ === type || xrx.token.START_EMPTY_TAG === type || 32 xrx.token.TAG === type; 33 };