sbin/res/jsdoc/app/lib/JSDOC/Token.js
author veltr
Mon, 16 Apr 2012 19:10:32 +0200
branchnew-model
changeset 864 5e76a06b961c
parent 520 fe008e95a716
permissions -rw-r--r--
Added Cinecast serializer, with imports management

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;
}