GlobalClass.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * @summary This is the summary of the global test class, test `markdown`.
  3. * @constructor GlobalClass
  4. * @param {string} arg1 - The first test arg, test `markdown`.
  5. * @param {...string} [arg2=false] - A repeatable, optional argument with a default value of false, test `markdown`.
  6. * @description This is the description for the class this is meant to be a more in depth explanation of what this class does and it's general use case, test `markdown`
  7. * @example {@caption You can provide example captions with `markdown` and specify the language to use when rendering the code, defaults to `javascript`.}
  8. * var gc = new GlobalClass("arg1", "arg2");
  9. * @example {@lang xml}
  10. * <head>
  11. * <title>HTML Highlighting</title>
  12. * <script>
  13. * // supports embedded languages
  14. * var gc = new GlobalClass("arg1", "arg2");
  15. * </script>
  16. * </head>
  17. */
  18. function GlobalClass(arg1, arg2){
  19. /**
  20. * @summary The name of the class.
  21. * @memberof GlobalClass#
  22. * @name name
  23. * @type {string}
  24. * @default "Test Global"
  25. */
  26. this.name = "Test Global";
  27. /**
  28. * @summary A private member of the class.
  29. * @memberof GlobalClass#
  30. * @name _privateMember
  31. * @type {string}
  32. * @private
  33. * @default "Test Global"
  34. */
  35. this._privateMember = "Private Member";
  36. }
  37. /**
  38. * @summary This is a test instance method of the global test class, test `markdown`
  39. * @memberof GlobalClass#
  40. * @function testMethod
  41. * @param {*} value - Any value, test `markdown`
  42. * @param {Object} obj - The first object of what could be many, test `markdown`
  43. * @param {...Object} [objN] - Any additional objects, test `markdown`
  44. * @returns {Object} The combination of all the objects, test `markdown`.
  45. */
  46. GlobalClass.prototype.testMethod = function(value, obj, objN){
  47. };
  48. /**
  49. * @summary This is a test instance method of the global test class to check that global type definitions are documented.
  50. * @memberof GlobalClass#
  51. * @function testMethod
  52. * @param {SomeType} type - The parameter which is of type SomeType
  53. */
  54. GlobalClass.prototype.testTypeDefMethod = function(type){
  55. };
  56. window.GlobalClass = GlobalClass;
  57. /**
  58. * Some global type.
  59. * @global
  60. * @typedef {Object} SomeType
  61. * @property {string} someProp
  62. */