jsdoc-toolkit 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/Rakefile +1 -0
  2. data/VERSION +1 -1
  3. data/jsdoc-toolkit.gemspec +108 -1
  4. data/src/jsdoc-toolkit/jsdoc-toolkit/README.txt +183 -0
  5. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame.js +33 -0
  6. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Chain.js +102 -0
  7. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Dumper.js +144 -0
  8. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Hash.js +84 -0
  9. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Link.js +153 -0
  10. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Namespace.js +10 -0
  11. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Opt.js +134 -0
  12. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Reflection.js +26 -0
  13. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/String.js +93 -0
  14. data/src/jsdoc-toolkit/jsdoc-toolkit/app/frame/Testrun.js +129 -0
  15. data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/FOODOC.js +26 -0
  16. data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC.js +26 -0
  17. data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js +159 -0
  18. data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js +16 -0
  19. data/src/jsdoc-toolkit/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js +292 -0
  20. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC.js +104 -0
  21. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/DocComment.js +200 -0
  22. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/DocTag.js +294 -0
  23. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js +126 -0
  24. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js +109 -0
  25. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Lang.js +144 -0
  26. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Parser.js +145 -0
  27. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js +33 -0
  28. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Symbol.js +645 -0
  29. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js +241 -0
  30. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TextStream.js +41 -0
  31. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Token.js +18 -0
  32. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js +332 -0
  33. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js +133 -0
  34. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Util.js +32 -0
  35. data/src/jsdoc-toolkit/jsdoc-toolkit/app/lib/JSDOC/Walker.js +474 -0
  36. data/src/jsdoc-toolkit/jsdoc-toolkit/app/main.js +111 -0
  37. data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/commentSrcJson.js +20 -0
  38. data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/frameworkPrototype.js +16 -0
  39. data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/functionCall.js +10 -0
  40. data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/publishSrcHilite.js +62 -0
  41. data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/symbolLink.js +10 -0
  42. data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/tagParamConfig.js +31 -0
  43. data/src/jsdoc-toolkit/jsdoc-toolkit/app/plugins/tagSynonyms.js +43 -0
  44. data/src/jsdoc-toolkit/jsdoc-toolkit/app/run.js +348 -0
  45. data/src/jsdoc-toolkit/jsdoc-toolkit/app/t/TestDoc.js +144 -0
  46. data/src/jsdoc-toolkit/jsdoc-toolkit/app/t/runner.js +13 -0
  47. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test.js +325 -0
  48. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/addon.js +24 -0
  49. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/anon_inner.js +14 -0
  50. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/augments.js +31 -0
  51. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/augments2.js +26 -0
  52. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/borrows.js +46 -0
  53. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/borrows2.js +23 -0
  54. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/config.js +22 -0
  55. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/constructs.js +18 -0
  56. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/encoding.js +10 -0
  57. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/encoding_other.js +12 -0
  58. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/event.js +54 -0
  59. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/exports.js +14 -0
  60. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/functions_anon.js +39 -0
  61. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/functions_nested.js +33 -0
  62. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/global.js +13 -0
  63. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/globals.js +25 -0
  64. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/ignore.js +10 -0
  65. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/inner.js +16 -0
  66. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/jsdoc_test.js +477 -0
  67. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/lend.js +33 -0
  68. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/memberof.js +19 -0
  69. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/memberof_constructor.js +17 -0
  70. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/module.js +17 -0
  71. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/name.js +19 -0
  72. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/namespace_nested.js +23 -0
  73. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/nocode.js +13 -0
  74. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/oblit_anon.js +20 -0
  75. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/overview.js +20 -0
  76. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/param_inline.js +37 -0
  77. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/params_optional.js +8 -0
  78. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype.js +17 -0
  79. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_nested.js +9 -0
  80. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_oblit.js +13 -0
  81. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/prototype_oblit_constructor.js +24 -0
  82. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/public.js +10 -0
  83. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/scripts/code.js +5 -0
  84. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/scripts/notcode.txt +5 -0
  85. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/shared.js +42 -0
  86. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/shared2.js +2 -0
  87. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/shortcuts.js +22 -0
  88. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/static_this.js +13 -0
  89. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/synonyms.js +31 -0
  90. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/tosource.js +23 -0
  91. data/src/jsdoc-toolkit/jsdoc-toolkit/app/test/variable_redefine.js +14 -0
  92. data/src/jsdoc-toolkit/jsdoc-toolkit/changes.txt +107 -0
  93. data/src/jsdoc-toolkit/jsdoc-toolkit/conf/sample.conf +31 -0
  94. data/src/jsdoc-toolkit/jsdoc-toolkit/java/build.xml +36 -0
  95. data/src/jsdoc-toolkit/jsdoc-toolkit/java/build_1.4.xml +36 -0
  96. data/src/jsdoc-toolkit/jsdoc-toolkit/java/classes/js.jar +0 -0
  97. data/src/jsdoc-toolkit/jsdoc-toolkit/java/src/JsDebugRun.java +21 -0
  98. data/src/jsdoc-toolkit/jsdoc-toolkit/java/src/JsRun.java +21 -0
  99. data/src/jsdoc-toolkit/jsdoc-toolkit/jsdebug.jar +0 -0
  100. data/src/jsdoc-toolkit/jsdoc-toolkit/jsrun.jar +0 -0
  101. data/src/jsdoc-toolkit/jsdoc-toolkit/jsrun.sh +52 -0
  102. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl +17 -0
  103. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl +56 -0
  104. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/class.tmpl +649 -0
  105. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/index.tmpl +39 -0
  106. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/publish.js +200 -0
  107. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/default.css +162 -0
  108. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/header.html +2 -0
  109. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/static/index.html +19 -0
  110. data/src/jsdoc-toolkit/jsdoc-toolkit/templates/jsdoc/symbol.tmpl +35 -0
  111. metadata +108 -1
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @param {Object} object
3
+ * @return {string}
4
+ */
5
+ function valueOf(object) {}
6
+
7
+ /**
8
+ * @param {Object} object
9
+ * @return {string}
10
+ */
11
+ function toString(object) {}
12
+
13
+ /**
14
+ * @param {Object} object
15
+ * @return {string}
16
+ */
17
+ function toSource(object) {}
18
+
19
+ /**
20
+ * @param {Object} object
21
+ * @return {string}
22
+ */
23
+ function constructor(object) {}
@@ -0,0 +1,14 @@
1
+ /** @constructor */
2
+ function Foo() {
3
+ var bar = 1;
4
+ bar = 2; // redefining a private
5
+
6
+ this.baz = 1;
7
+ baz = 2; // global
8
+
9
+ /** a private */
10
+ var blap = {
11
+ /** in here */
12
+ tada: 1
13
+ }
14
+ }
@@ -0,0 +1,107 @@
1
+ == 2.3.2 ==
2
+
3
+ * Minor update to the usage notes and corrected the version number displayed in the output.
4
+
5
+ == 2.3.1 ==
6
+
7
+ * Fixed HTML typo in allfiles template. (issue #228)
8
+ * Modified template to display version information for classes.
9
+ * Modified template to better support multiple methods with the same name.
10
+ * Fixed bug that caused template to error when backtick characters appeared around class names.
11
+
12
+ == 2.3.0 ==
13
+
14
+ * Added option -u, --unique to avoid bug that causes multiple symbols with names that differ only by case to overwrite each others output on case-insensitive filesystems. ( issue #162 )
15
+ * Fixed bug where {@links} in @deprecated tags did not resolve. ( issue #220 )
16
+ * Fixed bug that caused parens around a function to make it to be unrecognized. ( issue #213 )
17
+ * Fixed bug prevented explicit links to named anchors from working (thanks katgao.pku). ( issue #215 )
18
+ * Fixed bug that prevented full description from appearing in file overview. ( issue #224 )
19
+
20
+ == 2.2.1 ==
21
+
22
+ * Fixed bug with class template, where sorting of methods was accidentally removed (thanks dezfowler).
23
+ * Added missing test files for the @exports unit tests.
24
+
25
+ == 2.2.0 ==
26
+
27
+ * Fixed bug that caused exception when given a folder containing non-js files, even with the x commandline option set to "js". ( issue #193 )
28
+ * Fixed typo in index template [patch submitted by olle]. ( issue #198 )
29
+ * Modified @borrows tag experimentally to allow for missing "as ..." clause.
30
+ * Added support for the @exports tag, to allow one symbol to be documented as another.
31
+ * Added support for the -S option to document code following the Secure Modules pattern.
32
+
33
+ == 2.1.0 ==
34
+
35
+ * Added support for the @event tag.
36
+ * Fixed bug that prevented the : character from appearing in symbol names.
37
+ * Fixed bug that prevented underscored symbols marked with @public being tagged as private. (issue #184 )
38
+ * Fixed bug that randomly affected the @memberOf tag when the name of the symbol did not include the parent name.
39
+ * Fixed bug that prevented templates that were not in the jsdoc-toolkit folder from being found. ( issue #176 )
40
+ * Added ability to check for trailing slash on template path. ( issue #177 )
41
+ * Modified classDesc so that it no longer is appended with the constructor desc.
42
+ * Fixed call to plugin onDocCommentSrc.
43
+ * Added missing support for inline doc comments for function return types. ( issue #189 )
44
+ * Added command line option -q, --quiet.
45
+ * Added command line option -E, --exclude. ( issue #143 )
46
+ * Added 2 more hooks for plugins. ( issue #163 )
47
+ * Added support for extending built-ins. ( issue #160 )
48
+ * Added "compact" option to JSDOC.JsPlate.prototype.process. ( issue #159 )
49
+ * @augments no longer documents static members as inherited. ( issue #138 )
50
+ * @link to a class now goes to the page for that class, not the constructor. ( issue #178 )
51
+ * Warnings of mismatched curly brace now include filename. ( issue #166 )
52
+ * Fixed bug affecting template paths loaded via a configuration file when the trailing slash is missing. ( issue #191 )
53
+ * Minor optimizations.
54
+
55
+ == 2.0.2 ==
56
+
57
+ * Fixed bug that sometimes caused an example of division in the source code to be interpretted as a regex by the JsDoc Toolkit analyzer. ( issue #158 )
58
+ * Fixed a bug that prevented private variables marked as @public from appearing in the documentation. ( issue #161 )
59
+ * Fixed bug that prevented variable names with underscored properties from appearing in summaries. ( issue #173 )
60
+
61
+ == 2.0.1 ==
62
+
63
+ * Fixed bug that prevented @fileOverview tag from being recognized.
64
+ * Added support for @fieldOf as a synonym for @field plus @memberOf.
65
+ * Added support for @name tag in a @fileOverview comment to control the displayed name of the file.
66
+ * Added support for multiple @example tags. ( issue #152 )
67
+ * Modified style sheet of jsdoc template to make more readable. ( issue #151 )
68
+ * Fixed bug that prevented @since documentation from displaying correctly when it appeared in a class. ( issue #150 )
69
+ * Fixed bug that caused inhertited properties to sometimes not resolve correctly. ( issue #144 )
70
+ * Modified so that trailing whitespace in @example is always trimmed. ( issue #153 )
71
+ * Added support for elseif to JsPlate. (hat tip to fredck)
72
+ * Added support for @location urls in the @overview comment to the jsdoc template.
73
+
74
+ == Changes From Versions 1.4.0 to 2.0.0 ==
75
+
76
+ * Upgraded included version of Rhino from 1.6 to 1.7R1.
77
+ * Removed circular references in parsed documentation objects.
78
+ * Improved inheritance handling, now properties and events can be inherited same as methods.
79
+ * Improved handling of cross-file relationships, now having two related objects in separate files is not a problem.
80
+ * Improved ability to recognize membership of previously defined objects.
81
+ * Added ability to redefine parsing behavior with plugins.
82
+ * @methodOf is a synonym for @function and @memberOf.
83
+ * Added @default to document default values of members that are objects.
84
+ * Added ability to parse and refer to inner functions.
85
+ * Fixed bug that appeared when calling a method to set properties of the instance referred to by "this".
86
+ * Added ability to automatically create links to other symbols.
87
+ * New "jsdoc" template now produces fully W3C valid XHTML.
88
+ * Inline parameter type hint comments are now documented.
89
+ * Fixed error: Locally scoped variables (declared with var) no longer appear as global.
90
+ * It is now possible to run JsDoc Toolkit from any directory.
91
+ * Added support for inline {@link ...} tags.
92
+ * Added support for the -H command-line option to allow for custom content handlers.
93
+ * Tag names @inherits and @scope changed to @borrows and @lends.
94
+ ? Combining @constructor in a doclet with @lends now supported.
95
+ * Multiple @lend tags now supported.
96
+ * Added support for the @constructs tag, used inside a @lends block.
97
+ * Added support for the @constant tag.
98
+ * Fixed bug that prevented the use of [] as a default value.
99
+ * Added support for the @field tag.
100
+ * Added support for the @public tag (applied to inner functions).
101
+ * @namespace tag can now be applied to functions, not just object literals.
102
+ * Added support for the -s command line option to suppress source code output.
103
+ * Added new unit test framework.
104
+ * Underscored symbols are now treated as if they have a @private tag by default.
105
+ * Improved support for anonymous constructors.
106
+ * Added support for the nocode meta tag.
107
+
@@ -0,0 +1,31 @@
1
+ /*
2
+ This is an example of one way you could set up a configuration file to more
3
+ conveniently define some commandline options. You might like to do this if
4
+ you frequently reuse the same options. Note that you don't need to define
5
+ every option in this file, you can combine a configuration file with
6
+ additional options on the commandline if your wish.
7
+
8
+ You would include this configuration file by running JsDoc Toolkit like so:
9
+ java -jar jsrun.jar app/run.js -c=conf/sample.conf
10
+
11
+ */
12
+
13
+ {
14
+ // source files to use
15
+ _: ['app/test/jsdoc_test.js'],
16
+
17
+ // document all functions, even uncommented ones
18
+ a: true,
19
+
20
+ // including those marked @private
21
+ p: true,
22
+
23
+ // some extra variables I want to include
24
+ D: {generatedBy: "Michael Mathews", copyright: "2008"},
25
+
26
+ // use this directory as the output directory
27
+ d: "docs",
28
+
29
+ // use this template
30
+ t: "templates/jsdoc"
31
+ }
@@ -0,0 +1,36 @@
1
+ <project>
2
+ <target name="clean">
3
+ <delete dir="build"/>
4
+ </target>
5
+
6
+ <target name="compile">
7
+ <mkdir dir="build/classes"/>
8
+ <javac
9
+ srcdir="src" destdir="build/classes"
10
+ classpath="./classes/js.jar"
11
+ />
12
+ </target>
13
+
14
+ <target name="jar">
15
+ <mkdir dir="build/jar"/>
16
+ <jar destfile="build/jar/jsrun.jar" basedir="build/classes">
17
+ <manifest>
18
+ <attribute name="Main-Class" value="JsRun"/>
19
+ <attribute name="Class-Path" value="./java/classes/js.jar"/>
20
+ </manifest>
21
+ </jar>
22
+ </target>
23
+
24
+ <target name="debugjar">
25
+ <mkdir dir="build/jar"/>
26
+ <jar destfile="build/jar/jsdebug.jar" basedir="build/classes">
27
+ <manifest>
28
+ <attribute name="Main-Class" value="JsDebugRun"/>
29
+ <attribute name="Class-Path" value="./java/classes/js.jar"/>
30
+ </manifest>
31
+ </jar>
32
+ </target>
33
+
34
+ <target name="clean-build" depends="clean,compile,jar"/>
35
+ <target name="clean-debug" depends="clean,compile,debugjar"/>
36
+ </project>
@@ -0,0 +1,36 @@
1
+ <project default="clean-build"><!-- use this build script if you are stuck with ant version 1.4 -->
2
+ <target name="clean">
3
+ <delete dir="build"/>
4
+ </target>
5
+
6
+ <target name="compile">
7
+ <mkdir dir="build/classes"/>
8
+ <javac
9
+ srcdir="src" destdir="build/classes"
10
+ classpath="./classes/js.jar"
11
+ />
12
+ </target>
13
+
14
+ <target name="jar">
15
+ <mkdir dir="build/jar"/>
16
+ <jar jarfile="build/jar/jsrun.jar" basedir="build/classes">
17
+ <manifest>
18
+ <attribute name="Main-Class" value="JsRun"/>
19
+ <attribute name="Class-Path" value="./java/classes/js.jar"/>
20
+ </manifest>
21
+ </jar>
22
+ </target>
23
+
24
+ <target name="debugjar">
25
+ <mkdir dir="build/jar"/>
26
+ <jar jarfile="build/jar/jsdebug.jar" basedir="build/classes">
27
+ <manifest>
28
+ <attribute name="Main-Class" value="JsDebugRun"/>
29
+ <attribute name="Class-Path" value="./java/classes/js.jar"/>
30
+ </manifest>
31
+ </jar>
32
+ </target>
33
+
34
+ <target name="clean-build" depends="clean,compile,jar"/>
35
+ <target name="clean-debug" depends="clean,compile,debugjar"/>
36
+ </project>
@@ -0,0 +1,21 @@
1
+ /**
2
+ * A trivial bootstrap class that simply adds the path to the
3
+ * .js file as an argument to the Rhino call. This little hack
4
+ * allows the code in the .js file to have access to it's own
5
+ * path via the Rhino arguments object. This is necessary to
6
+ * allow the .js code to find resource files in a location
7
+ * relative to itself.
8
+ *
9
+ * USAGE: java -jar jsdebug.jar path/to/file.js
10
+ */
11
+ public class JsDebugRun {
12
+ public static void main(String[] args) {
13
+ String[] jsargs = {"-j="+args[0]};
14
+
15
+ String[] allArgs = new String[jsargs.length + args.length];
16
+ System.arraycopy(args, 0, allArgs, 0, args.length);
17
+ System.arraycopy(jsargs, 0, allArgs, args.length ,jsargs.length);
18
+
19
+ org.mozilla.javascript.tools.debugger.Main.main(allArgs);
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * A trivial bootstrap class that simply adds the path to the
3
+ * .js file as an argument to the Rhino call. This little hack
4
+ * allows the code in the .js file to have access to it's own
5
+ * path via the Rhino arguments object. This is necessary to
6
+ * allow the .js code to find resource files in a location
7
+ * relative to itself.
8
+ *
9
+ * USAGE: java -jar jsrun.jar path/to/file.js
10
+ */
11
+ public class JsRun {
12
+ public static void main(String[] args) {
13
+ String[] jsargs = {"-j="+args[0]};
14
+
15
+ String[] allArgs = new String[jsargs.length + args.length];
16
+ System.arraycopy(args, 0, allArgs, 0, args.length);
17
+ System.arraycopy(jsargs, 0, allArgs, args.length ,jsargs.length);
18
+
19
+ org.mozilla.javascript.tools.shell.Main.main(allArgs);
20
+ }
21
+ }
@@ -0,0 +1,52 @@
1
+ #!/bin/ksh
2
+
3
+ # launcher script for jsdoc
4
+ # Author: Avi Deitcher
5
+ #
6
+ # This program is released under the MIT License as follows:
7
+
8
+ # Copyright (c) 2008-2009 Atomic Inc <avi@jsorm.com>
9
+ #
10
+ #Permission is hereby granted, free of charge, to any person
11
+ #obtaining a copy of this software and associated documentation
12
+ #files (the "Software"), to deal in the Software without
13
+ #restriction, including without limitation the rights to use,
14
+ #copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ #copies of the Software, and to permit persons to whom the
16
+ #Software is furnished to do so, subject to the following
17
+ #conditions:
18
+ ##
19
+ #The above copyright notice and this permission notice shall be
20
+ #included in all copies or substantial portions of the Software.
21
+ #
22
+ #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
+ #EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
24
+ #OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25
+ #NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26
+ #HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27
+ #WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28
+ #FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29
+ #OTHER DEALINGS IN THE SOFTWARE.
30
+ #
31
+
32
+
33
+ if [[ -n "$JSDOCDIR" ]]; then
34
+ _DOCDIR="-Djsdoc.dir=$JSDOCDIR"
35
+ _APPDIR="$JSDOCDIR/app"
36
+ _BASEDIR="$JSDOCDIR"
37
+ else
38
+ _DOCDIR=""
39
+ _APPDIR="./app"
40
+ _BASEDIR="."
41
+ fi
42
+
43
+ if [[ -n "$JSDOCTEMPLATEDIR" ]]; then
44
+ _TDIR="-Djsdoc.template.dir=$JSDOCTEMPLATEDIR"
45
+ else
46
+ _TDIR=""
47
+ fi
48
+
49
+ CMD="java $_DOCDIR $_TDIR -jar $_BASEDIR/jsrun.jar $_APPDIR/run.js $@"
50
+ echo $CMD
51
+ $CMD
52
+
@@ -0,0 +1,17 @@
1
+ <div align="center">{+new Link().toFile("index.html").withText("Class Index")+}
2
+ | {+new Link().toFile("files.html").withText("File Index")+}</div>
3
+ <hr />
4
+ <h2>Classes</h2>
5
+ <ul class="classList">
6
+ <for each="thisClass" in="data">
7
+ <li>{!
8
+ if (thisClass.alias == "_global_") {
9
+ output += "<i>"+new Link().toClass(thisClass.alias)+"</i>";
10
+ }
11
+ else {
12
+ output += new Link().toClass(thisClass.alias);
13
+ }
14
+ !}</li>
15
+ </for>
16
+ </ul>
17
+ <hr />
@@ -0,0 +1,56 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}" />
6
+ {! Link.base = ""; /* all generated links will be relative to this */ !}
7
+ <title>JsDoc Reference - File Index</title>
8
+ <meta name="generator" content="JsDoc Toolkit" />
9
+
10
+ <style type="text/css">
11
+ {+include("static/default.css")+}
12
+ </style>
13
+ </head>
14
+
15
+ <body>
16
+ {+include("static/header.html")+}
17
+
18
+ <div id="index">
19
+ {+publish.classesIndex+}
20
+ </div>
21
+
22
+ <div id="content">
23
+ <h1 class="classTitle">File Index</h1>
24
+
25
+ <for each="item" in="data">
26
+ <div>
27
+ <h2>{+new Link().toSrc(item.alias).withText(item.name)+}</h2>
28
+ <if test="item.desc">{+resolveLinks(item.desc)+}</if>
29
+ <dl>
30
+ <if test="item.author">
31
+ <dt class="heading">Author:</dt>
32
+ <dd>{+item.author+}</dd>
33
+ </if>
34
+ <if test="item.version">
35
+ <dt class="heading">Version:</dt>
36
+ <dd>{+item.version+}</dd>
37
+ </if>
38
+ {! var locations = item.comment.getTag('location').map(function($){return $.toString().replace(/(^\$ ?| ?\$$)/g, '').replace(/^HeadURL: https:/g, 'http:');}) !}
39
+ <if test="locations.length">
40
+ <dt class="heading">Location:</dt>
41
+ <for each="location" in="locations">
42
+ <dd><a href="{+location+}">{+location+}</a></dd>
43
+ </for>
44
+ </if>
45
+ </dl>
46
+ </div>
47
+ <hr />
48
+ </for>
49
+
50
+ </div>
51
+ <div class="fineprint" style="clear:both">
52
+ <if test="JSDOC.opt.D.copyright">&copy;{+JSDOC.opt.D.copyright+}<br /></if>
53
+ Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+}
54
+ </div>
55
+ </body>
56
+ </html>
@@ -0,0 +1,649 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="content-type" content="text/html; charset={+IO.encoding+}" />
6
+ <meta name="generator" content="JsDoc Toolkit" />
7
+ {! Link.base = "../"; /* all generated links will be relative to this */ !}
8
+ <title>JsDoc Reference - {+data.alias+}</title>
9
+
10
+ <style type="text/css">
11
+ {+include("static/default.css")+}
12
+ </style>
13
+ </head>
14
+
15
+ <body>
16
+ <!-- ============================== header ================================= -->
17
+ <!-- begin static/header.html -->
18
+ {+include("static/header.html")+}
19
+ <!-- end static/header.html -->
20
+
21
+ <!-- ============================== classes index ============================ -->
22
+ <div id="index">
23
+ <!-- begin publish.classesIndex -->
24
+ {+publish.classesIndex+}
25
+ <!-- end publish.classesIndex -->
26
+ </div>
27
+
28
+ <div id="content">
29
+ <!-- ============================== class title ============================ -->
30
+ <h1 class="classTitle">
31
+ {!
32
+ var classType = "";
33
+
34
+ if (data.isBuiltin()) {
35
+ classType += "Built-In ";
36
+ }
37
+
38
+ if (data.isNamespace) {
39
+ if (data.is('FUNCTION')) {
40
+ classType += "Function ";
41
+ }
42
+ classType += "Namespace ";
43
+ }
44
+ else {
45
+ classType += "Class ";
46
+ }
47
+ !}
48
+ {+classType+}{+data.alias+}
49
+ </h1>
50
+
51
+ <!-- ============================== class summary ========================== -->
52
+ <p class="description">
53
+ <if test="data.version"><br />Version
54
+ {+ data.version +}.<br />
55
+ </if>
56
+ <if test="data.augments.length"><br />Extends
57
+ {+
58
+ data.augments
59
+ .sort()
60
+ .map(
61
+ function($) { return new Link().toSymbol($); }
62
+ )
63
+ .join(", ")
64
+ +}.<br />
65
+ </if>
66
+
67
+ {+resolveLinks(data.classDesc)+}
68
+
69
+ <if test="!data.isBuiltin()">{# isn't defined in any file #}
70
+ <br /><i>Defined in: </i> {+new Link().toSrc(data.srcFile)+}.
71
+ </if>
72
+ </p>
73
+
74
+ <!-- ============================== constructor summary ==================== -->
75
+ <if test="!data.isBuiltin() && (data.isNamespace || data.is('CONSTRUCTOR'))">
76
+ <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class {+data.alias+}.">
77
+ <caption>{+classType+}Summary</caption>
78
+ <thead>
79
+ <tr>
80
+ <th scope="col">Constructor Attributes</th>
81
+ <th scope="col">Constructor Name and Description</th>
82
+ </tr>
83
+ </thead>
84
+ <tbody>
85
+ <tr>
86
+ <td class="attributes">{!
87
+ if (data.isPrivate) output += "&lt;private&gt; ";
88
+ if (data.isInner) output += "&lt;inner&gt; ";
89
+ !}&nbsp;</td>
90
+ <td class="nameDescription" {!if (data.comment.getTag("hilited").length){output += 'style="color: red"'}!}>
91
+ <div class="fixedFont">
92
+ <b>{+ new Link().toSymbol(data.alias).inner('constructor')+}</b><if test="classType != 'Namespace '">{+ makeSignature(data.params) +}</if>
93
+ </div>
94
+ <div class="description">{+resolveLinks(summarize(data.desc))+}</div>
95
+ </td>
96
+ </tr>
97
+ </tbody>
98
+ </table>
99
+ </if>
100
+
101
+ <!-- ============================== properties summary ===================== -->
102
+ <if test="data.properties.length">
103
+ {! var ownProperties = data.properties.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !}
104
+ <if test="ownProperties.length">
105
+ <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class {+data.alias+}.">
106
+ <caption>Field Summary</caption>
107
+ <thead>
108
+ <tr>
109
+ <th scope="col">Field Attributes</th>
110
+ <th scope="col">Field Name and Description</th>
111
+ </tr>
112
+ </thead>
113
+ <tbody>
114
+ <for each="member" in="ownProperties">
115
+ <tr>
116
+ <td class="attributes">{!
117
+ if (member.isPrivate) output += "&lt;private&gt; ";
118
+ if (member.isInner) output += "&lt;inner&gt; ";
119
+ if (member.isStatic) output += "&lt;static&gt; ";
120
+ if (member.isConstant) output += "&lt;constant&gt; ";
121
+ !}&nbsp;</td>
122
+ <td class="nameDescription">
123
+ <div class="fixedFont">
124
+ <if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b>
125
+ </div>
126
+ <div class="description">{+resolveLinks(summarize(member.desc))+}</div>
127
+ </td>
128
+ </tr>
129
+ </for>
130
+ </tbody>
131
+ </table>
132
+ </if>
133
+
134
+ <if test="data.inheritsFrom.length">
135
+ <dl class="inheritsList">
136
+ {!
137
+ var borrowedMembers = data.properties.filter(function($) {return $.memberOf != data.alias});
138
+
139
+ var contributers = [];
140
+ borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)});
141
+ for (var i = 0, l = contributers.length; i < l; i++) {
142
+ output +=
143
+ "<dt>Fields borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>"
144
+ +
145
+ "<dd>" +
146
+ borrowedMembers
147
+ .filter(
148
+ function($) { return $.memberOf == contributers[i] }
149
+ )
150
+ .sort(makeSortby("name"))
151
+ .map(
152
+ function($) { return new Link().toSymbol($.alias).withText($.name) }
153
+ )
154
+ .join(", ")
155
+ +
156
+ "</dd>";
157
+ }
158
+ !}
159
+ </dl>
160
+ </if>
161
+ </if>
162
+
163
+ <!-- ============================== methods summary ======================== -->
164
+ <if test="data.methods.length">
165
+ {! var ownMethods = data.methods.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !}
166
+ <if test="ownMethods.length">
167
+ <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class {+data.alias+}.">
168
+ <caption>Method Summary</caption>
169
+ <thead>
170
+ <tr>
171
+ <th scope="col">Method Attributes</th>
172
+ <th scope="col">Method Name and Description</th>
173
+ </tr>
174
+ </thead>
175
+ <tbody>
176
+ <for each="member" in="ownMethods">
177
+ <tr>
178
+ <td class="attributes">{!
179
+ if (member.isPrivate) output += "&lt;private&gt; ";
180
+ if (member.isInner) output += "&lt;inner&gt; ";
181
+ if (member.isStatic) output += "&lt;static&gt; ";
182
+ !}&nbsp;</td>
183
+ <td class="nameDescription">
184
+ <div class="fixedFont"><if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name.replace(/\^\d+$/, ''))+}</b>{+makeSignature(member.params)+}
185
+ </div>
186
+ <div class="description">{+resolveLinks(summarize(member.desc))+}</div>
187
+ </td>
188
+ </tr>
189
+ </for>
190
+ </tbody>
191
+ </table>
192
+ </if>
193
+
194
+ <if test="data.inheritsFrom.length">
195
+ <dl class="inheritsList">
196
+ {!
197
+ var borrowedMembers = data.methods.filter(function($) {return $.memberOf != data.alias});
198
+ var contributers = [];
199
+ borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)});
200
+ for (var i = 0, l = contributers.length; i < l; i++) {
201
+ output +=
202
+ "<dt>Methods borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>"
203
+ +
204
+ "<dd>" +
205
+ borrowedMembers
206
+ .filter(
207
+ function($) { return $.memberOf == contributers[i] }
208
+ )
209
+ .sort(makeSortby("name"))
210
+ .map(
211
+ function($) { return new Link().toSymbol($.alias).withText($.name) }
212
+ )
213
+ .join(", ")
214
+ +
215
+ "</dd>";
216
+ }
217
+
218
+ !}
219
+ </dl>
220
+ </if>
221
+ </if>
222
+ <!-- ============================== events summary ======================== -->
223
+ <if test="data.events.length">
224
+ {! var ownEvents = data.events.filter(function($){return $.memberOf == data.alias && !$.isNamespace}).sort(makeSortby("name")); !}
225
+ <if test="ownEvents.length">
226
+ <table class="summaryTable" cellspacing="0" summary="A summary of the events documented in the class {+data.alias+}.">
227
+ <caption>Event Summary</caption>
228
+ <thead>
229
+ <tr>
230
+ <th scope="col">Event Attributes</th>
231
+ <th scope="col">Event Name and Description</th>
232
+ </tr>
233
+ </thead>
234
+ <tbody>
235
+ <for each="member" in="ownEvents">
236
+ <tr>
237
+ <td class="attributes">{!
238
+ if (member.isPrivate) output += "&lt;private&gt; ";
239
+ if (member.isInner) output += "&lt;inner&gt; ";
240
+ if (member.isStatic) output += "&lt;static&gt; ";
241
+ !}&nbsp;</td>
242
+ <td class="nameDescription">
243
+ <div class="fixedFont"><if test="member.isStatic && member.memberOf != '_global_'">{+member.memberOf+}.</if><b>{+new Link().toSymbol(member.alias).withText(member.name)+}</b>{+makeSignature(member.params)+}
244
+ </div>
245
+ <div class="description">{+resolveLinks(summarize(member.desc))+}</div>
246
+ </td>
247
+ </tr>
248
+ </for>
249
+ </tbody>
250
+ </table>
251
+ </if>
252
+
253
+ <if test="data.inheritsFrom.length">
254
+ <dl class="inheritsList">
255
+ {!
256
+ var borrowedMembers = data.events.filter(function($) {return $.memberOf != data.alias});
257
+ var contributers = [];
258
+ borrowedMembers.map(function($) {if (contributers.indexOf($.memberOf) < 0) contributers.push($.memberOf)});
259
+ for (var i = 0, l = contributers.length; i < l; i++) {
260
+ output +=
261
+ "<dt>Events borrowed from class "+new Link().toSymbol(contributers[i])+": </dt>"
262
+ +
263
+ "<dd>" +
264
+ borrowedMembers
265
+ .filter(
266
+ function($) { return $.memberOf == contributers[i] }
267
+ )
268
+ .sort(makeSortby("name"))
269
+ .map(
270
+ function($) { return new Link().toSymbol($.alias).withText($.name) }
271
+ )
272
+ .join(", ")
273
+ +
274
+ "</dd>";
275
+ }
276
+
277
+ !}
278
+ </dl>
279
+ </if>
280
+ </if>
281
+
282
+ <!-- ============================== constructor details ==================== -->
283
+ <if test="!data.isBuiltin() && (data.isNamespace || data.is('CONSTRUCTOR'))">
284
+ <div class="details"><a name="constructor"> </a>
285
+ <div class="sectionTitle">
286
+ {+classType+}Detail
287
+ </div>
288
+
289
+ <div class="fixedFont">{!
290
+ if (data.isPrivate) output += "&lt;private&gt; ";
291
+ if (data.isInner) output += "&lt;inner&gt; ";
292
+ !}
293
+ <b>{+ data.alias +}</b><if test="classType != 'Namespace '">{+ makeSignature(data.params) +}</if>
294
+ </div>
295
+
296
+ <div class="description">
297
+ {+resolveLinks(data.desc)+}
298
+ <if test="data.author"><br /><i>Author: </i>{+data.author+}.</if>
299
+ </div>
300
+
301
+ <if test="data.example.length">
302
+ <for each="example" in="data.example">
303
+ <pre class="code">{+example+}</pre>
304
+ </for>
305
+ </if>
306
+
307
+
308
+ <if test="data.params.length">
309
+ <dl class="detailList">
310
+ <dt class="heading">Parameters:</dt>
311
+ <for each="item" in="data.params">
312
+ <dt>
313
+ {+((item.type)?""+("<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type)+"}</span> ")) : "")+} <b>{+item.name+}</b>
314
+ <if test="item.isOptional"><i>Optional<if test="item.defaultValue">, Default: {+item.defaultValue+}</if></i></if>
315
+ </dt>
316
+ <dd>{+resolveLinks(item.desc)+}</dd>
317
+ </for>
318
+ </dl>
319
+ </if>
320
+ <if test="data.deprecated">
321
+ <dl class="detailList">
322
+ <dt class="heading">Deprecated:</dt>
323
+ <dt>
324
+ {+resolveLinks(data.deprecated)+}
325
+ </dt>
326
+ </dl>
327
+ </if>
328
+ <if test="data.since">
329
+ <dl class="detailList">
330
+ <dt class="heading">Since:</dt>
331
+ <dd>{+ data.since +}</dd>
332
+ </dl>
333
+ </if>
334
+ <if test="data.exceptions.length">
335
+ <dl class="detailList">
336
+ <dt class="heading">Throws:</dt>
337
+ <for each="item" in="data.exceptions">
338
+ <dt>
339
+ {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+} <b>{+item.name+}</b>
340
+ </dt>
341
+ <dd>{+resolveLinks(item.desc)+}</dd>
342
+ </for>
343
+ </dl>
344
+ </if>
345
+ <if test="data.returns.length">
346
+ <dl class="detailList">
347
+ <dt class="heading">Returns:</dt>
348
+ <for each="item" in="data.returns">
349
+ <dd>{+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}{+resolveLinks(item.desc)+}</dd>
350
+ </for>
351
+ </dl>
352
+ </if>
353
+ <if test="data.requires.length">
354
+ <dl class="detailList">
355
+ <dt class="heading">Requires:</dt>
356
+ <for each="item" in="data.requires">
357
+ <dd>{+ resolveLinks(item) +}</dd>
358
+ </for>
359
+ </dl>
360
+ </if>
361
+ <if test="data.see.length">
362
+ <dl class="detailList">
363
+ <dt class="heading">See:</dt>
364
+ <for each="item" in="data.see">
365
+ <dd>{+ new Link().toSymbol(item) +}</dd>
366
+ </for>
367
+ </dl>
368
+ </if>
369
+
370
+ </div>
371
+ </if>
372
+
373
+ <!-- ============================== field details ========================== -->
374
+ <if test="defined(ownProperties) && ownProperties.length">
375
+ <div class="sectionTitle">
376
+ Field Detail
377
+ </div>
378
+ <for each="member" in="ownProperties">
379
+ <a name="{+Link.symbolNameToLinkName(member)+}"> </a>
380
+ <div class="fixedFont">{!
381
+ if (member.isPrivate) output += "&lt;private&gt; ";
382
+ if (member.isInner) output += "&lt;inner&gt; ";
383
+ if (member.isStatic) output += "&lt;static&gt; ";
384
+ if (member.isConstant) output += "&lt;constant&gt; ";
385
+ !}
386
+
387
+ <if test="member.type"><span class="light">{{+new Link().toSymbol(member.type)+}}</span></if>
388
+ <if test="member.isStatic && member.memberOf != '_global_'"><span class="light">{+member.memberOf+}.</span></if><b>{+member.name+}</b>
389
+
390
+ </div>
391
+ <div class="description">
392
+ {+resolveLinks(member.desc)+}
393
+ <if test="member.srcFile != data.srcFile">
394
+ <br />
395
+ <i>Defined in: </i> {+new Link().toSrc(member.srcFile)+}.
396
+ </if>
397
+ <if test="member.author"><br /><i>Author: </i>{+member.author+}.</if>
398
+ </div>
399
+
400
+ <if test="member.example.length">
401
+ <for each="example" in="member.example">
402
+ <pre class="code">{+example+}</pre>
403
+ </for>
404
+ </if>
405
+
406
+ <if test="member.deprecated">
407
+ <dl class="detailList">
408
+ <dt class="heading">Deprecated:</dt>
409
+ <dt>
410
+ {+ resolveLinks(member.deprecated) +}
411
+ </dt>
412
+ </dl>
413
+ </if>
414
+ <if test="member.since">
415
+ <dl class="detailList">
416
+ <dt class="heading">Since:</dt>
417
+ <dd>{+ member.since +}</dd>
418
+ </dl>
419
+ </if>
420
+ <if test="member.see.length">
421
+ <dl class="detailList">
422
+ <dt class="heading">See:</dt>
423
+ <for each="item" in="member.see">
424
+ <dd>{+ new Link().toSymbol(item) +}</dd>
425
+ </for>
426
+ </dl>
427
+ </if>
428
+ <if test="member.defaultValue">
429
+ <dl class="detailList">
430
+ <dt class="heading">Default Value:</dt>
431
+ <dd>
432
+ {+resolveLinks(member.defaultValue)+}
433
+ </dd>
434
+ </dl>
435
+ </if>
436
+
437
+ <if test="!$member_last"><hr /></if>
438
+ </for>
439
+ </if>
440
+
441
+ <!-- ============================== method details ========================= -->
442
+ <if test="defined(ownMethods) && ownMethods.length">
443
+ <div class="sectionTitle">
444
+ Method Detail
445
+ </div>
446
+ <for each="member" in="ownMethods">
447
+ <a name="{+Link.symbolNameToLinkName(member)+}"> </a>
448
+ <div class="fixedFont">{!
449
+ if (member.isPrivate) output += "&lt;private&gt; ";
450
+ if (member.isInner) output += "&lt;inner&gt; ";
451
+ if (member.isStatic) output += "&lt;static&gt; ";
452
+ !}
453
+
454
+ <if test="member.type"><span class="light">{{+new Link().toSymbol(member.type)+}}</span></if>
455
+ <if test="member.isStatic && member.memberOf != '_global_'"><span class="light">{+member.memberOf+}.</span></if><b>{+member.name.replace(/\^\d+$/, '')+}</b>{+makeSignature(member.params)+}
456
+
457
+ </div>
458
+ <div class="description">
459
+ {+resolveLinks(member.desc)+}
460
+ <if test="member.srcFile != data.srcFile">
461
+ <br />
462
+ <i>Defined in: </i> {+new Link().toSrc(member.srcFile)+}.
463
+ </if>
464
+ <if test="member.author"><br /><i>Author: </i>{+member.author+}.</if>
465
+ </div>
466
+
467
+ <if test="member.example.length">
468
+ <for each="example" in="member.example">
469
+ <pre class="code">{+example+}</pre>
470
+ </for>
471
+ </if>
472
+
473
+ <if test="member.params.length">
474
+ <dl class="detailList">
475
+ <dt class="heading">Parameters:</dt>
476
+ <for each="item" in="member.params">
477
+ <dt>
478
+ {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}<b>{+item.name+}</b>
479
+ <if test="item.isOptional"><i>Optional<if test="item.defaultValue">, Default: {+item.defaultValue+}</if></i></if>
480
+ </dt>
481
+ <dd>{+resolveLinks(item.desc)+}</dd>
482
+ </for>
483
+ </dl>
484
+ </if>
485
+ <if test="member.deprecated">
486
+ <dl class="detailList">
487
+ <dt class="heading">Deprecated:</dt>
488
+ <dt>
489
+ {+ resolveLinks(member.deprecated) +}
490
+ </dt>
491
+ </dl>
492
+ </if>
493
+ <if test="member.since">
494
+ <dl class="detailList">
495
+ <dt class="heading">Since:</dt>
496
+ <dd>{+ member.since +}</dd>
497
+ </dl>
498
+ </dl>
499
+ </if>
500
+ <if test="member.exceptions.length">
501
+ <dl class="detailList">
502
+ <dt class="heading">Throws:</dt>
503
+ <for each="item" in="member.exceptions">
504
+ <dt>
505
+ {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+} <b>{+item.name+}</b>
506
+ </dt>
507
+ <dd>{+resolveLinks(item.desc)+}</dd>
508
+ </for>
509
+ </dl>
510
+ </if>
511
+ <if test="member.returns.length">
512
+ <dl class="detailList">
513
+ <dt class="heading">Returns:</dt>
514
+ <for each="item" in="member.returns">
515
+ <dd>{+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}{+resolveLinks(item.desc)+}</dd>
516
+ </for>
517
+ </dl>
518
+ </if>
519
+ <if test="member.requires.length">
520
+ <dl class="detailList">
521
+ <dt class="heading">Requires:</dt>
522
+ <for each="item" in="member.requires">
523
+ <dd>{+ resolveLinks(item) +}</dd>
524
+ </for>
525
+ </dl>
526
+ </if>
527
+ <if test="member.see.length">
528
+ <dl class="detailList">
529
+ <dt class="heading">See:</dt>
530
+ <for each="item" in="member.see">
531
+ <dd>{+ new Link().toSymbol(item) +}</dd>
532
+ </for>
533
+ </dl>
534
+ </if>
535
+
536
+ <if test="!$member_last"><hr /></if>
537
+ </for>
538
+ </if>
539
+
540
+ <!-- ============================== event details ========================= -->
541
+ <if test="defined(ownEvents) && ownEvents.length">
542
+ <div class="sectionTitle">
543
+ Event Detail
544
+ </div>
545
+ <for each="member" in="ownEvents">
546
+ <a name="event:{+Link.symbolNameToLinkName(member)+}"> </a>
547
+ <div class="fixedFont">{!
548
+ if (member.isPrivate) output += "&lt;private&gt; ";
549
+ if (member.isInner) output += "&lt;inner&gt; ";
550
+ if (member.isStatic) output += "&lt;static&gt; ";
551
+ !}
552
+
553
+ <if test="member.type"><span class="light">{{+new Link().toSymbol(member.type)+}}</span></if>
554
+ <if test="member.isStatic && member.memberOf != '_global_'"><span class="light">{+member.memberOf+}.</span></if><b>{+member.name+}</b>{+makeSignature(member.params)+}
555
+
556
+ </div>
557
+ <div class="description">
558
+ {+resolveLinks(member.desc)+}
559
+ <if test="member.srcFile != data.srcFile">
560
+ <br />
561
+ <i>Defined in: </i> {+new Link().toSrc(member.srcFile)+}.
562
+ </if>
563
+ <if test="member.author"><br /><i>Author: </i>{+member.author+}.</if>
564
+ </div>
565
+
566
+ <if test="member.example.length">
567
+ <for each="example" in="member.example">
568
+ <pre class="code">{+example+}</pre>
569
+ </for>
570
+ </if>
571
+
572
+ <if test="member.params.length">
573
+ <dl class="detailList">
574
+ <dt class="heading">Parameters:</dt>
575
+ <for each="item" in="member.params">
576
+ <dt>
577
+ {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}<b>{+item.name+}</b>
578
+ <if test="item.isOptional"><i>Optional<if test="item.defaultValue">, Default: {+item.defaultValue+}</if></i></if>
579
+ </dt>
580
+ <dd>{+ resolveLinks(item.desc) +}</dd>
581
+ </for>
582
+ </dl>
583
+ </if>
584
+ <if test="member.deprecated">
585
+ <dl class="detailList">
586
+ <dt class="heading">Deprecated:</dt>
587
+ <dt>
588
+ {+ resolveLinks(member.deprecated) +}
589
+ </dt>
590
+ </dl>
591
+ </if>
592
+ <if test="member.since">
593
+ <dl class="detailList">
594
+ <dt class="heading">Since:</dt>
595
+ <dd>{+ member.since +}</dd>
596
+ </dl>
597
+ </dl>
598
+ </if>
599
+ <if test="member.exceptions.length">
600
+ <dl class="detailList">
601
+ <dt class="heading">Throws:</dt>
602
+ <for each="item" in="member.exceptions">
603
+ <dt>
604
+ {+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+} <b>{+item.name+}</b>
605
+ </dt>
606
+ <dd>{+ resolveLinks(item.desc) +}</dd>
607
+ </for>
608
+ </dl>
609
+ </if>
610
+ <if test="member.returns.length">
611
+ <dl class="detailList">
612
+ <dt class="heading">Returns:</dt>
613
+ <for each="item" in="member.returns">
614
+ <dd>{+((item.type)?"<span class=\"light fixedFont\">{"+(new Link().toSymbol(item.type))+"}</span> " : "")+}{+resolveLinks(item.desc)+}</dd>
615
+ </for>
616
+ </dl>
617
+ </if>
618
+ <if test="member.requires.length">
619
+ <dl class="detailList">
620
+ <dt class="heading">Requires:</dt>
621
+ <for each="item" in="member.requires">
622
+ <dd>{+ resolveLinks(item) +}</dd>
623
+ </for>
624
+ </dl>
625
+ </if>
626
+ <if test="member.see.length">
627
+ <dl class="detailList">
628
+ <dt class="heading">See:</dt>
629
+ <for each="item" in="member.see">
630
+ <dd>{+ new Link().toSymbol(item) +}</dd>
631
+ </for>
632
+ </dl>
633
+ </if>
634
+
635
+ <if test="!$member_last"><hr /></if>
636
+ </for>
637
+ </if>
638
+
639
+ <hr />
640
+ </div>
641
+
642
+
643
+ <!-- ============================== footer ================================= -->
644
+ <div class="fineprint" style="clear:both">
645
+ <if test="JSDOC.opt.D.copyright">&copy;{+JSDOC.opt.D.copyright+}<br /></if>
646
+ Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> {+JSDOC.VERSION+} on {+new Date()+}
647
+ </div>
648
+ </body>
649
+ </html>