/tags/jsdoc_toolkit-1.4.0/test/data/test.js
http://jsdoc-toolkit.googlecode.com/ · JavaScript · 103 lines · 47 code · 9 blank · 47 comment · 0 complexity · 2ba52a94edf6ce1049677d2bea1105cc MD5 · raw file
- /**
- * @overview This library contains a lot of classes and functions.
- * @name Test Library
- * @author <a href="mailto:jsmith@company.com">Joe Smith</a>
- * @version 0.1
- */
-
- /**
- * Gets the current foo
- * @param {String} fooId The unique identifier for the foo.
- * @param [r] Recursion level.
- * @return {Object} Returns the current foo.
- * @throws {MalformedFoo} In the case of a fooId not being positve and evenly divisable by 9.
- */
- function getFoo(fooID, r){
- }
-
- /**@constructor*/ function Shape3D(){}
- Shape3D.prototype.shrink = function(ratio) {}
- /**
- * @desc This is a library of geometry-related functions.
- *
- */
- Shape2D /*a two-dimensional shape*/
- = {
- // Shape.Circle()
- /** @ignore */
- Circle: function(r, x, y){
- },
- Rect: "r"+makerect({
- callback: function(){
- flarp: function(){}
- }
- }),
- Triangle: { /* this is wicked };-) */
- /** A triangle with a 90 degree angle.
- @constructor
- @property {number} angles The angles.
- @rating {stars} 3
- @deprecated
- */
- Right: function(a, b, c) {
- /** The ratio. */
- this.ratio = a+b/c;
- }
- },
- /** The constant PI*/
- PI: 3.14,
- /** @constructor
- * @example
- * var myPent = new Polygon(5);
- * myPent.addSide(s1);
- * @example
- * var myHex = new Polygon(5).addSide(s2);
- */
- Polygon: function(sides) //how many sides
- {
- this.addSide = function(newSide) {
- }
-
- }
- };
- /**
- * A Geo.
- *
- */
- Geo = <!-- ignore me
- {
- /* flat surface */ Plane:
- function
- (
- w, // the width of the plane
- d // the depth of the plane
- ) {
-
- }
-
- }
-
- /**The e constant.
- @type number*/
- var E = 12345;
-
- /** meaning of life?
- @type integer*/
- var life = function(n) {return n}(42);
-
- // nested constructors
- /** @constructor */
- function ShapeFactory() {
- /** @constructor */
- this.SquareMaker = function(size) {
- /** @constructor */
- this.Square = function(s) {
- /** The size. */
- this.size = s;
- this.display = function() {
- alert("square: "+s);
- }
- }
- }
- }