/tags/jsdoc_toolkit-2.3.2/jsdoc-toolkit/app/lib/JSDOC/Token.js
http://jsdoc-toolkit.googlecode.com/ · JavaScript · 18 lines · 12 code · 3 blank · 3 comment · 3 complexity · 7a2fff7e2cee5f3b45ab76e747b8bbc8 MD5 · raw file
- 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;
- }