sbin/res/jsdoc/app/lib/JSDOC/Token.js
author hamidouk
Wed, 25 Jan 2012 17:30:11 +0100
branchembed-playerapi-rewrite
changeset 715 93410f5b91e2
parent 520 fe008e95a716
permissions -rw-r--r--
closing branch.

if (typeof JSDOC == "undefined") JSDOC = {};

/**
	@constructor
*/
JSDOC.Token = function(data, type, name) {
	this.data = data;
	this.type = type;
	this.name = name;
}

JSDOC.Token.prototype.toString = function() { 
	return "<"+this.type+" name=\""+this.name+"\">"+this.data+"</"+this.type+">";
}

JSDOC.Token.prototype.is = function(what) {
	return this.name === what || this.type === what;
}