"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var html_node_1 = require("./html-node");
/**
* @class Autolinker.htmlParser.EntityNode
* @extends Autolinker.htmlParser.HtmlNode
*
* Represents a known HTML entity node that has been parsed by the {@link Autolinker.htmlParser.HtmlParser}.
* Ex: ' ', or ' ' (which will be retrievable from the {@link #getText}
* method.
*
* Note that this class will only be returned from the HtmlParser for the set of
* checked HTML entity nodes defined by the {@link Autolinker.htmlParser.HtmlParser#htmlCharacterEntitiesRegex}.
*
* See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more
* details.
*/
var EntityNode = (function (_super) {
__extends(EntityNode, _super);
function EntityNode() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* Returns a string name for the type of node that this class represents.
*
* @return {String}
*/
EntityNode.prototype.getType = function () {
return 'entity';
};
return EntityNode;
}(html_node_1.HtmlNode));
exports.EntityNode = EntityNode;
//# sourceMappingURL=entity-node.js.map