Permalink
Browse files

Merge pull request #470 from EngineHub/new-html-docs

New html docs
  • Loading branch information...
LadyCailin committed Jan 5, 2018
2 parents 0c51bef + a06d742 commit bba7e43f7c6db5356c3e89087ed3068a7f363d38
Showing with 47,003 additions and 23,997 deletions.
  1. +1 −0 .gitignore
  2. +3 −1 README.md
  3. +1 −2 pom.xml
  4. +34 −34 src/main/java/com/laytonsmith/PureUtilities/ArgumentSuite.java
  5. +5 −5 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/Annotations/CacheAnnotations.java
  6. +975 −992 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassDiscovery.java
  7. +545 −525 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassMirror/ClassMirror.java
  8. +10 −4 src/main/java/com/laytonsmith/PureUtilities/CommandExecutor.java
  9. +23 −9 src/main/java/com/laytonsmith/PureUtilities/Common/Annotations/AnnotationChecks.java
  10. +4 −3 src/main/java/com/laytonsmith/PureUtilities/Common/Annotations/CheckOverrides.java
  11. +3 −3 src/main/java/com/laytonsmith/PureUtilities/Common/Annotations/ForceImplementation.java
  12. +6 −4 ...tives/interfaces/TypeofRunnerFor.java → PureUtilities/Common/Annotations/InterfaceRunnerFor.java}
  13. +11 −5 src/main/java/com/laytonsmith/PureUtilities/Common/ArrayUtils.java
  14. +259 −258 src/main/java/com/laytonsmith/PureUtilities/Common/ClassUtils.java
  15. +239 −0 src/main/java/com/laytonsmith/PureUtilities/Common/GNUErrorMessageFormat.java
  16. +363 −355 src/main/java/com/laytonsmith/PureUtilities/Common/ReflectionUtils.java
  17. +40 −17 src/main/java/com/laytonsmith/PureUtilities/Common/StackTraceUtils.java
  18. +12 −12 src/main/java/com/laytonsmith/PureUtilities/Common/StreamUtils.java
  19. +954 −914 src/main/java/com/laytonsmith/PureUtilities/Common/StringUtils.java
  20. +1 −1 src/main/java/com/laytonsmith/PureUtilities/Common/TemplateBuilder.java
  21. +38 −10 src/main/java/com/laytonsmith/PureUtilities/Preferences.java
  22. +443 −349 src/main/java/com/laytonsmith/PureUtilities/SSHWrapper.java
  23. +338 −320 src/main/java/com/laytonsmith/PureUtilities/Web/RequestSettings.java
  24. +65 −6 src/main/java/com/laytonsmith/PureUtilities/Web/WebUtility.java
  25. +336 −331 src/main/java/com/laytonsmith/PureUtilities/ZipReader.java
  26. +78 −4 src/main/java/com/laytonsmith/core/Main.java
  27. +2,095 −1,943 src/main/java/com/laytonsmith/core/MethodScriptCompiler.java
  28. +56 −50 src/main/java/com/laytonsmith/core/MethodScriptFileLocations.java
  29. +4 −3 src/main/java/com/laytonsmith/core/Procedure.java
  30. +208 −212 src/main/java/com/laytonsmith/core/Profiles.java
  31. +1 −0 src/main/java/com/laytonsmith/core/Static.java
  32. +7 −7 src/main/java/com/laytonsmith/core/compiler/CompilerEnvironment.java
  33. +115 −93 src/main/java/com/laytonsmith/core/compiler/Keyword.java
  34. +47 −41 src/main/java/com/laytonsmith/core/compiler/KeywordList.java
  35. +56 −24 src/main/java/com/laytonsmith/core/compiler/ProcedureDefinition.java
  36. +42 −11 src/main/java/com/laytonsmith/core/compiler/ProcedureUsage.java
  37. +16 −4 src/main/java/com/laytonsmith/core/compiler/keywords/AsKeyword.java
  38. +18 −5 src/main/java/com/laytonsmith/core/compiler/keywords/AutoKeyword.java
  39. +16 −4 src/main/java/com/laytonsmith/core/compiler/keywords/BindKeyword.java
  40. +16 −4 src/main/java/com/laytonsmith/core/compiler/keywords/CaseKeyword.java
  41. +20 −8 src/main/java/com/laytonsmith/core/compiler/keywords/CatchKeyword.java
  42. +39 −29 src/main/java/com/laytonsmith/core/compiler/keywords/ClosureKeyword.java
  43. +17 −4 src/main/java/com/laytonsmith/core/compiler/keywords/DefaultKeyword.java
  44. +40 −27 src/main/java/com/laytonsmith/core/compiler/keywords/DoKeyword.java
  45. +29 −7 src/main/java/com/laytonsmith/core/compiler/keywords/ElseKeyword.java
  46. +11 −4 src/main/java/com/laytonsmith/core/compiler/keywords/FalseKeyword.java
  47. +21 −8 src/main/java/com/laytonsmith/core/compiler/keywords/FinallyKeyword.java
  48. +42 −30 src/main/java/com/laytonsmith/core/compiler/keywords/ForKeyword.java
  49. +42 −30 src/main/java/com/laytonsmith/core/compiler/keywords/ForeachKeyword.java
  50. +42 −29 src/main/java/com/laytonsmith/core/compiler/keywords/IClosureKeyword.java
  51. +94 −80 src/main/java/com/laytonsmith/core/compiler/keywords/IfKeyword.java
  52. +16 −4 src/main/java/com/laytonsmith/core/compiler/keywords/InKeyword.java
  53. +32 −20 src/main/java/com/laytonsmith/core/compiler/keywords/InstanceofKeyword.java
  54. +5 −0 src/main/java/com/laytonsmith/core/compiler/keywords/LiteralKeyword.java
  55. +33 −21 src/main/java/com/laytonsmith/core/compiler/keywords/NotInstanceofKeyword.java
  56. +11 −4 src/main/java/com/laytonsmith/core/compiler/keywords/NullKeyword.java
  57. +53 −41 src/main/java/com/laytonsmith/core/compiler/keywords/ProcKeyword.java
  58. +16 −4 src/main/java/com/laytonsmith/core/compiler/keywords/SwitchKeyword.java
  59. +19 −6 src/main/java/com/laytonsmith/core/compiler/keywords/SynchronizedKeyword.java
  60. +11 −4 src/main/java/com/laytonsmith/core/compiler/keywords/TrueKeyword.java
  61. +100 −89 src/main/java/com/laytonsmith/core/compiler/keywords/TryKeyword.java
  62. +16 −4 src/main/java/com/laytonsmith/core/compiler/keywords/WhileKeyword.java
  63. +9 −0 src/main/java/com/laytonsmith/core/constructs/Auto.java
  64. +599 −581 src/main/java/com/laytonsmith/core/constructs/CArray.java
  65. +29 −5 src/main/java/com/laytonsmith/core/constructs/CBareString.java
  66. +20 −0 src/main/java/com/laytonsmith/core/constructs/CBoolean.java
  67. +41 −17 src/main/java/com/laytonsmith/core/constructs/CBrace.java
  68. +41 −17 src/main/java/com/laytonsmith/core/constructs/CBracket.java
  69. +54 −2 src/main/java/com/laytonsmith/core/constructs/CByteArray.java
  70. +38 −2 src/main/java/com/laytonsmith/core/constructs/CClassType.java
  71. +124 −115 src/main/java/com/laytonsmith/core/constructs/CClosure.java
  72. +36 −24 src/main/java/com/laytonsmith/core/constructs/CDouble.java
  73. +42 −18 src/main/java/com/laytonsmith/core/constructs/CEntry.java
  74. +69 −44 src/main/java/com/laytonsmith/core/constructs/CFunction.java
  75. +87 −78 src/main/java/com/laytonsmith/core/constructs/CIClosure.java
  76. +26 −4 src/main/java/com/laytonsmith/core/constructs/CIdentifier.java
  77. +34 −26 src/main/java/com/laytonsmith/core/constructs/CInt.java
  78. +35 −12 src/main/java/com/laytonsmith/core/constructs/CKeyword.java
  79. +37 −15 src/main/java/com/laytonsmith/core/constructs/CLabel.java
  80. +72 −53 src/main/java/com/laytonsmith/core/constructs/CLock.java
  81. +12 −2 src/main/java/com/laytonsmith/core/constructs/CMutablePrimitive.java
  82. +12 −0 src/main/java/com/laytonsmith/core/constructs/CNull.java
  83. +10 −0 src/main/java/com/laytonsmith/core/constructs/CNumber.java
  84. +35 −0 src/main/java/com/laytonsmith/core/constructs/CNumberRunner.java
  85. +26 −3 src/main/java/com/laytonsmith/core/constructs/CPreIdentifier.java
  86. +11 −0 src/main/java/com/laytonsmith/core/constructs/CPrimitive.java
  87. +35 −0 src/main/java/com/laytonsmith/core/constructs/CPrimitiveRunner.java
  88. +11 −0 src/main/java/com/laytonsmith/core/constructs/CResource.java
  89. +11 −1 src/main/java/com/laytonsmith/core/constructs/CSlice.java
  90. +69 −54 src/main/java/com/laytonsmith/core/constructs/CString.java
  91. +121 −99 src/main/java/com/laytonsmith/core/constructs/CSymbol.java
  92. +10 −0 src/main/java/com/laytonsmith/core/constructs/CVoid.java
  93. +29 −8 src/main/java/com/laytonsmith/core/constructs/Command.java
  94. +481 −441 src/main/java/com/laytonsmith/core/constructs/Construct.java
  95. +63 −39 src/main/java/com/laytonsmith/core/constructs/IVariable.java
  96. +1 −1 src/main/java/com/laytonsmith/core/constructs/IVariableList.java
  97. +76 −26 src/main/java/com/laytonsmith/core/constructs/NativeTypeList.java
  98. +42 −16 src/main/java/com/laytonsmith/core/constructs/NewIVariable.java
  99. +1 −1 src/main/java/com/laytonsmith/core/constructs/Target.java
  100. +24 −1 src/main/java/com/laytonsmith/core/constructs/Token.java
  101. +27 −2 src/main/java/com/laytonsmith/core/constructs/Variable.java
  102. +1,153 −1,152 src/main/java/com/laytonsmith/core/events/drivers/BlockEvents.java
  103. +1 −1 src/main/java/com/laytonsmith/core/events/drivers/CmdlineEvents.java
  104. +224 −199 src/main/java/com/laytonsmith/core/exceptions/CRE/AbstractCREException.java
  105. +15 −4 src/main/java/com/laytonsmith/core/exceptions/CRE/CREBadEntityException.java
  106. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREBadEntityTypeException.java
  107. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREBindException.java
  108. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CRECastException.java
  109. +44 −20 src/main/java/com/laytonsmith/core/exceptions/CRE/CRECausedByWrapper.java
  110. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREEnchantmentException.java
  111. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREError.java
  112. +15 −5 src/main/java/com/laytonsmith/core/exceptions/CRE/CREEventException.java
  113. +9 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREException.java
  114. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREFormatException.java
  115. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREIOException.java
  116. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREIllegalArgumentException.java
  117. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREIncludeException.java
  118. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREIndexOverflowException.java
  119. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREInsufficientArgumentsException.java
  120. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREInsufficientPermissionException.java
  121. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREInvalidPluginException.java
  122. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREInvalidProcedureException.java
  123. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREInvalidWorldException.java
  124. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CRELengthException.java
  125. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CRENotFoundException.java
  126. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CRENullPointerException.java
  127. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREOAuthException.java
  128. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREPlayerOfflineException.java
  129. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREPluginChannelException.java
  130. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREPluginInternalException.java
  131. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CRERangeException.java
  132. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREReadOnlyException.java
  133. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CRESQLException.java
  134. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREScoreboardException.java
  135. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CRESecurityException.java
  136. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREShellException.java
  137. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREStackOverflowError.java
  138. +50 −1 src/main/java/com/laytonsmith/core/exceptions/CRE/CREThrowable.java
  139. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREUnageableMobException.java
  140. +10 −0 src/main/java/com/laytonsmith/core/exceptions/CRE/CREUntameableMobException.java
  141. +8 −8 src/main/java/com/laytonsmith/core/exceptions/ConfigRuntimeException.java
  142. +637 −632 src/main/java/com/laytonsmith/core/extensions/ExtensionManager.java
  143. +195 −184 src/main/java/com/laytonsmith/core/functions/AbstractFunction.java
  144. +1 −114 src/main/java/com/laytonsmith/core/functions/ArrayHandling.java
  145. +16 −8 src/main/java/com/laytonsmith/core/functions/BasicLogic.java
  146. +15 −3 src/main/java/com/laytonsmith/core/functions/Cmdline.java
  147. +10 −7 src/main/java/com/laytonsmith/core/functions/DataHandling.java
  148. +462 −442 src/main/java/com/laytonsmith/core/functions/Echoes.java
  149. +3,236 −3,218 src/main/java/com/laytonsmith/core/functions/EntityManagement.java
  150. +1 −1 src/main/java/com/laytonsmith/core/functions/EventBinding.java
  151. +195 −211 src/main/java/com/laytonsmith/core/functions/ExampleScript.java
  152. +3 −3 src/main/java/com/laytonsmith/core/functions/Exceptions.java
  153. +1 −0 src/main/java/com/laytonsmith/core/functions/FileHandling.java
  154. +2 −2 src/main/java/com/laytonsmith/core/functions/Function.java
  155. +34 −34 src/main/java/com/laytonsmith/core/functions/ItemMeta.java
  156. +2,506 −2,520 src/main/java/com/laytonsmith/core/functions/Math.java
  157. +991 −986 src/main/java/com/laytonsmith/core/functions/Minecraft.java
  158. +2 −2 src/main/java/com/laytonsmith/core/functions/PlayerManagement.java
  159. +15 −15 src/main/java/com/laytonsmith/core/functions/Reflection.java
  160. +1 −1 src/main/java/com/laytonsmith/core/functions/Regex.java
  161. +12 −4 src/main/java/com/laytonsmith/core/functions/Scheduling.java
  162. +1,041 −1,026 src/main/java/com/laytonsmith/core/functions/Scoreboards.java
  163. +1,981 −1,979 src/main/java/com/laytonsmith/core/functions/StringHandling.java
  164. +20 −20 src/main/java/com/laytonsmith/core/functions/Threading.java
  165. +35 −15 src/main/java/com/laytonsmith/core/functions/Web.java
  166. +97 −0 src/main/java/com/laytonsmith/core/natives/interfaces/AbstractMixedInterfaceRunner.java
  167. +150 −146 src/main/java/com/laytonsmith/core/natives/interfaces/ArrayAccess.java
  168. +35 −0 src/main/java/com/laytonsmith/core/natives/interfaces/ArrayAccessRunner.java
  169. +66 −3 src/main/java/com/laytonsmith/core/natives/interfaces/Mixed.java
  170. +82 −0 src/main/java/com/laytonsmith/core/natives/interfaces/MixedInterfaceRunner.java
  171. +49 −0 src/main/java/com/laytonsmith/core/natives/interfaces/MixedRunner.java
  172. +0 −22 src/main/java/com/laytonsmith/core/natives/interfaces/MixedTypeofRunner.java
  173. +32 −0 src/main/java/com/laytonsmith/core/natives/interfaces/ObjectModifier.java
  174. +44 −0 src/main/java/com/laytonsmith/core/natives/interfaces/ObjectType.java
  175. +34 −0 src/main/java/com/laytonsmith/core/natives/interfaces/SizableRunner.java
  176. +0 −21 src/main/java/com/laytonsmith/core/natives/interfaces/SizableTypeofRunner.java
  177. +3 −3 src/main/java/com/laytonsmith/core/natives/interfaces/{Sizable.java → Sizeable.java}
  178. +0 −16 src/main/java/com/laytonsmith/core/natives/interfaces/TypeofRunnerIface.java
  179. +19 −17 src/main/java/com/laytonsmith/persistence/MySQLDataSource.java
  180. +10 −8 src/main/java/com/laytonsmith/persistence/PersistenceNetwork.java
  181. +31 −29 src/main/java/com/laytonsmith/persistence/SQLiteDataSource.java
  182. +6 −5 src/main/java/com/laytonsmith/persistence/SerializedPersistence.java
  183. +7 −4 src/main/java/com/laytonsmith/persistence/io/SSHConnection.java
  184. +1 −1 src/main/java/com/laytonsmith/persistence/io/WebConnection.java
  185. +37 −11 src/main/java/com/laytonsmith/tools/Interpreter.java
  186. +3 −2 src/main/java/com/laytonsmith/tools/Manager.java
  187. +371 −352 src/main/java/com/laytonsmith/tools/SimpleSyntaxHighlighter.java
  188. +235 −235 src/main/java/com/laytonsmith/tools/SyntaxHighlighters.java
  189. +700 −597 src/main/java/com/laytonsmith/tools/docgen/DocGen.java
  190. +9 −9 src/main/java/com/laytonsmith/tools/docgen/DocGenExportTool.java
  191. +663 −413 src/main/java/com/laytonsmith/tools/docgen/DocGenTemplates.java
  192. +32 −30 src/main/java/com/laytonsmith/tools/docgen/ExtensionDocGen.java
  193. +219 −0 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/APIBuilder.java
  194. +34 −0 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/DeploymentMethod.java
  195. +59 −0 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/LocalDeploymentMethod.java
  196. +34 −0 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/RemoteDeploymentMethod.java
  197. +1,414 −0 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/SiteDeploy.java
  198. +14 −0 src/main/java/com/laytonsmith/tools/docgen/templates/Logic.java
  199. +3 −2 src/main/java/com/laytonsmith/tools/pnviewer/PNViewer.java
  200. +62 −0 src/main/resources/docs/About
  201. +24 −17 src/main/resources/docs/{Advanced Guide → Advanced_Guide}
  202. +404 −0 src/main/resources/docs/Advanced_Scripts
  203. +2 −2 src/main/resources/docs/Architecture
  204. +147 −0 src/main/resources/docs/Argument_Builder
  205. +7 −7 src/main/resources/docs/Arrays
  206. +8 −10 src/main/resources/docs/Beginner's_Guide
  207. +8 −8 src/main/resources/docs/Changelog
  208. +2 −2 src/main/resources/docs/Closures
  209. +3 −3 src/main/resources/docs/CommandLineTools
  210. +79 −0 src/main/resources/docs/Cookbook
  211. +83 −32 src/main/resources/docs/Data_Manager
  212. +11 −11 src/main/resources/docs/Debugging
  213. +4 −4 src/main/resources/docs/Exceptions
  214. +18 −13 src/main/resources/docs/Extension_Development
  215. +7 −0 src/main/resources/docs/Help
  216. +4 −4 src/main/resources/docs/Logic
  217. +3 −3 src/main/resources/docs/NewObjects
  218. +3 −3 src/main/resources/docs/Operators
  219. +47 −23 src/main/resources/docs/Permissions_Settings
  220. +16 −16 src/main/resources/docs/Persistence_Network
  221. +26 −26 src/main/resources/docs/Persistence_Network_Integration
  222. +3 −3 src/main/resources/docs/Profiles
  223. +3 −3 src/main/resources/docs/Routines
  224. +41 −39 src/main/resources/docs/SQL
  225. +66 −0 src/main/resources/docs/SiteDeployTool
  226. +35 −2 src/main/resources/docs/Strings
  227. +2 −2 src/main/resources/docs/Style_Guide
  228. +16 −0 src/main/resources/docs/SyntaxHighlighting
  229. +5 −0 src/main/resources/docs/Test
  230. +6 −6 src/main/resources/functionDocs/email
  231. +11 −3 src/main/resources/functionDocs/http_request
  232. +2 −2 src/main/resources/functionDocs/set_cron
  233. +21 −0 src/main/resources/siteDeploy/404
  234. +9 −0 src/main/resources/siteDeploy/DocDirectory
  235. +5 −0 src/main/resources/siteDeploy/FrontPage
  236. +66 −0 src/main/resources/siteDeploy/LearningTrail.json
  237. +26 −0 src/main/resources/siteDeploy/Sponsors
  238. +76 −0 src/main/resources/siteDeploy/VersionFrontPage
  239. +133 −0 src/main/resources/siteDeploy/frame.html
  240. +354 −0 src/main/resources/siteDeploy/index.js
  241. +21 −0 src/main/resources/siteDeploy/install.sh
  242. +207 −0 src/main/resources/siteDeploy/privacy_policy.html
  243. +4 −0 src/main/resources/siteDeploy/resources/css/font-awesome.min.css
  244. +99 −0 src/main/resources/siteDeploy/resources/css/highlight/default.css
  245. +7 −0 src/main/resources/siteDeploy/resources/css/ie/backgroundsize.min.htc
  246. +8 −0 src/main/resources/siteDeploy/resources/css/ie/html5shiv.js
  247. +13 −0 src/main/resources/siteDeploy/resources/css/ie/v8.css
  248. BIN src/main/resources/siteDeploy/resources/css/images/overlay.png
  249. +252 −0 src/main/resources/siteDeploy/resources/css/skel.css
  250. +27 −0 src/main/resources/siteDeploy/resources/css/style-large.css
  251. +106 −0 src/main/resources/siteDeploy/resources/css/style-medium.css
  252. +71 −0 src/main/resources/siteDeploy/resources/css/style-small.css
  253. +11 −0 src/main/resources/siteDeploy/resources/css/style-xlarge.css
  254. +57 −0 src/main/resources/siteDeploy/resources/css/style-xsmall.css
  255. +1,091 −0 src/main/resources/siteDeploy/resources/css/style.css
  256. +136 −0 src/main/resources/siteDeploy/resources/css/styles.css
  257. +1 −0 src/main/resources/siteDeploy/resources/css/tooltipster-sideTip-shadow.min.css
  258. +1 −0 src/main/resources/siteDeploy/resources/css/tooltipster.bundle.min.css
  259. BIN src/main/resources/siteDeploy/resources/fonts/FontAwesome.otf
  260. BIN src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.eot
  261. +520 −0 src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.svg
  262. BIN src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.ttf
  263. BIN src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.woff
  264. BIN src/main/resources/siteDeploy/resources/images/CommandHelper_Icon.png
  265. BIN src/main/resources/siteDeploy/resources/images/CommandHelper_Logo_New.png
  266. BIN src/main/resources/siteDeploy/resources/images/banner.jpg
  267. +12,954 −0 src/main/resources/siteDeploy/resources/images/browserstack.svg
  268. BIN src/main/resources/siteDeploy/resources/images/favicon.ico
  269. BIN src/main/resources/siteDeploy/resources/images/gears.gif
  270. +24 −0 src/main/resources/siteDeploy/resources/images/loading.svg
  271. BIN src/main/resources/siteDeploy/resources/images/pic05.jpg
  272. BIN src/main/resources/siteDeploy/resources/images/pic06.jpg
  273. BIN src/main/resources/siteDeploy/resources/images/pic07.jpg
  274. BIN src/main/resources/siteDeploy/resources/images/pic08.jpg
  275. BIN src/main/resources/siteDeploy/resources/images/pic09.jpg
  276. +2 −0 src/main/resources/siteDeploy/resources/js/highlight.pack.js
  277. +80 −0 src/main/resources/siteDeploy/resources/js/init.js
  278. +4 −0 src/main/resources/siteDeploy/resources/js/jquery.min.js
  279. +2 −0 src/main/resources/siteDeploy/resources/js/skel-layers.min.js
  280. +2 −0 src/main/resources/siteDeploy/resources/js/skel.min.js
  281. +2 −0 src/main/resources/siteDeploy/resources/js/tooltipster.bundle.min.js
  282. +340 −0 src/main/resources/siteDeploy/resources/js/wiky.js
  283. +2 −3 src/main/resources/templates/example_templates
  284. +103 −2 src/test/java/com/laytonsmith/PureUtilities/ClassLoading/GeneralTest.java
  285. +146 −0 src/test/java/com/laytonsmith/PureUtilities/Common/GNUErrorMessageFormatTest.java
  286. +7 −0 src/test/java/com/laytonsmith/core/MethodScriptCompilerTest.java
  287. +6 −1 src/test/java/com/laytonsmith/core/OptimizationTest.java
  288. +66 −0 src/test/java/com/laytonsmith/core/constructs/ClassInfoTest.java
  289. +91 −0 src/test/java/com/laytonsmith/core/constructs/TestCClassType.java
  290. +8 −10 src/test/java/com/laytonsmith/core/functions/MathTest.java
  291. +2 −1 src/test/java/com/laytonsmith/testing/C.java
  292. +255 −268 src/test/java/com/laytonsmith/testing/RandomTests.java
View
@@ -19,3 +19,4 @@ true
/preferences.*
.DS_Store
/test-backend/
/nbproject/
View
@@ -42,4 +42,6 @@ explained in the SPECIAL_LICENSE.txt file, which is attached.
For details about code formatting standards, and other basic information for
contributors, please see the CONTRIBUTING.txt file.
Portions of CommandHelper are copyright by various contributors.
Portions of CommandHelper are copyright by various contributors.
This project uses BrowserStack (https://www.browserstack.com) for testing the website.
View
@@ -306,8 +306,6 @@
<artifactId>org.apache.oltu.oauth2.client</artifactId>
<version>1.0.2</version>
</dependency>
<!-- Test libraries -->
<!-- Hamcrest must come before powermock -->
<dependency>
@@ -809,6 +807,7 @@
<!-- Include the default test cases, since we're overwriting them -->
<include>**/*Test.java</include>
<include>**/Test*.java</include>
<include>**/*Tests.java</include>
<include>**/*TestCase.java</include>
<!-- Include custom, none specific classes -->
@@ -13,29 +13,29 @@
/**
* An ArgumentSuite is an ArgumentParser that supports "modes".
*
*
* A mode is a required parameter that causes a fully separate argument parser to
* be used to parse the remaining arguments. This allows for finer control over
* mutually exclusive parameters in both the documentation and the validation, as
* well as wider support for traditional use cases.
*
*
*/
public class ArgumentSuite {
private Map<String, ArgumentParser> suite;
private Map<String, String> aliases;
private String description;
public ArgumentSuite(){
suite = new LinkedHashMap<String, ArgumentParser>();
aliases = new LinkedHashMap<String, String>();
}
/**
* Adds a new mode. A mode name may contain dashes, which would look like normal
* argument flags, but would actually be a mode. This is useful especially for a
* --help command, which shows the ArgumentSuite's help.
* @param modeName The name of this mode. This may not contain spaces.
* @param modeName The name of this mode. This may not contain spaces.
* @param mode The sub-ArgumentParser that will be used when in this mode.
* @throws IllegalArgumentException if the name of the mode contains spaces
*/
@@ -44,7 +44,7 @@ public ArgumentSuite addMode(String modeName, ArgumentParser mode){
suite.put(modeName, mode);
return this;
}
/**
* Adds a mode alias. This is the recommended behavior instead of adding the
* same mode with a different name, because the built description is aware
@@ -53,30 +53,30 @@ public ArgumentSuite addMode(String modeName, ArgumentParser mode){
* strictly need to exist yet.
* @param alias
* @param realModeName
* @return
* @return
*/
public ArgumentSuite addModeAlias(String alias, String realModeName){
validateModeName(alias);
aliases.put(alias, realModeName);
return this;
}
private void validateModeName(String modeName){
if(modeName.contains(" ")){
throw new IllegalArgumentException("The mode name may not contain a space.");
}
}
/**
* Adds a description, which is used in {@see #getBuiltDescription}
* @param description
* @return
* @return
*/
public ArgumentSuite addDescription(String description){
this.description = description;
return this;
}
/**
* Returns a mode that was previously registered.
* @param name The name of the mode to get
@@ -90,17 +90,17 @@ public ArgumentParser getMode(String name){
throw new IllegalArgumentException("No mode by the name \"" + name + "\" has been registered.");
}
}
/**
* Selects the appropriate mode, and calls match on that ArgumentParser.
* @param args The pre-parsed arguments
* @param defaultMode The default mode, which will be used only if no arguments were passed in.
* @return
* @return
* @throws ResultUseException if the mode cannot be found, or if the sub-ArgumentParser
* throws an exception.
*/
public ArgumentSuiteResults match(String [] args, String defaultMode) throws ResultUseException, ValidationException {
String [] nonModeArgs = new String[0];
String [] nonModeArgs = ArrayUtils.EMPTY_STRING_ARRAY;
String mode;
if(args.length > 1){
mode = args[0];
@@ -120,12 +120,12 @@ public ArgumentSuiteResults match(String [] args, String defaultMode) throws Res
throw new ResultUseException("Mode " + mode + " was not found.");
}
}
/**
* Selects the appropriate mode, and calls match on that ArgumentParser.
* @param args The unparsed arguments
* @param defaultMode The default mode, which will be used only if no arguments were passed in.
* @return
* @return
* @throws ResultUseException if the mode cannot be found, or if the sub-ArgumentParser
* throws an exception.
*/
@@ -134,11 +134,11 @@ public ArgumentSuiteResults match(String args, String defaultMode) throws Result
//pass that to the other match
return match(ArgumentParser.lex(args).toArray(new String[]{}), defaultMode);
}
/**
* Returns a built description of this ArgumentSuite, which would be appropriate
* to display if no arguments are passed in (or the mode name is help, -help, --help, etc)
* @return
* @return
*/
public String getBuiltDescription(){
StringBuilder b = new StringBuilder();
@@ -165,14 +165,14 @@ public String getBuiltDescription(){
}
return b.toString();
}
/**
* A convenience method to get the real mode name registered for this
* alias, or null if no such alias exists. If the alias is actually a mode,
* it is simply returned. Useful for perhaps a help mode, to resolve the actual
* mode named. If {@code alias} is null, null is returned.
* @param alias
* @return
* @return
*/
public String getModeFromAlias(String alias){
if(alias == null){
@@ -186,7 +186,7 @@ public String getModeFromAlias(String alias){
return null;
}
}
/**
* A convenience method to get the underlying ArgumentParser
* based on the mode name given. Aliases will not suffice, but you
@@ -195,7 +195,7 @@ public String getModeFromAlias(String alias){
* a help mode, to generically display a mode's help. If {@see mode}
* is null, null is returned.
* @param mode
* @return
* @return
*/
public ArgumentParser getModeFromName(String mode){
if(mode == null){
@@ -207,7 +207,7 @@ public ArgumentParser getModeFromName(String mode){
return null;
}
}
public static class ArgumentSuiteResults{
private ArgumentParser mode;
private ArgumentParserResults results;
@@ -217,33 +217,33 @@ private ArgumentSuiteResults(String modeName, ArgumentParser mode, ArgumentParse
this.mode = mode;
this.results = results;
}
/**
* Returns the name of the mode that was selected. (Not the alias)
* @return
* @return
*/
public String getModeName(){
return modeName;
}
/**
* The ArgumentParser for the given mode. This will be a reference
* to the mode passed in, so you can do == on it.
* @return
* @return
*/
public ArgumentParser getMode(){
return mode;
}
/**
* The ArgumentParserResults for the ArgumentParser mode
* @return
* @return
*/
public ArgumentParserResults getResults(){
return results;
}
}
public static void main(String [] args){
ArgumentSuite suite = new ArgumentSuite();
ArgumentParser mode1 = ArgumentParser.GetParser();
@@ -289,13 +289,13 @@ public static void main(String [] args){
} catch (ResultUseException ex) {
showHelp(suite);
} catch (ValidationException ex) {
showHelp(suite);
showHelp(suite);
}
}
private static void showHelp(ArgumentSuite suite){
StreamUtils.GetSystemOut().println(suite.getBuiltDescription());
System.exit(1);
}
}
@@ -12,8 +12,6 @@
import com.laytonsmith.annotations.typeof;
import com.laytonsmith.core.SimpleDocumentation;
import com.laytonsmith.core.functions.DummyFunction;
import com.laytonsmith.core.natives.interfaces.TypeofRunnerFor;
import com.laytonsmith.core.natives.interfaces.TypeofRunnerIface;
import java.io.File;
import java.io.FileOutputStream;
import java.lang.reflect.Method;
@@ -23,6 +21,8 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.laytonsmith.PureUtilities.Common.Annotations.InterfaceRunnerFor;
import com.laytonsmith.core.natives.interfaces.MixedInterfaceRunner;
/**
*
@@ -64,8 +64,8 @@ public static void main(String[] args) throws Exception {
for(Class c : apiClasses){
boolean isGetNameExempt = false;
if(c.isInterface()){
for(Class r : ClassDiscovery.getDefaultInstance().loadClassesWithAnnotation(TypeofRunnerFor.class)){
TypeofRunnerFor f = (TypeofRunnerFor) r.getAnnotation(TypeofRunnerFor.class);
for(Class r : ClassDiscovery.getDefaultInstance().loadClassesWithAnnotation(InterfaceRunnerFor.class)){
InterfaceRunnerFor f = (InterfaceRunnerFor) r.getAnnotation(InterfaceRunnerFor.class);
if(f.value() == c){
isGetNameExempt = c.getAnnotation(typeof.class) != null;
c = r;
@@ -79,7 +79,7 @@ public static void main(String[] args) throws Exception {
// Skip this one. These are excused from the normal reporting requirements.
continue;
}
if(!SimpleDocumentation.class.isAssignableFrom(c) && !TypeofRunnerIface.class.isAssignableFrom(c)){
if(!SimpleDocumentation.class.isAssignableFrom(c) && !MixedInterfaceRunner.class.isAssignableFrom(c)){
uhohs.add(c.getName() + " must implement SimpleDocumentation");
continue;
}
Oops, something went wrong.

0 comments on commit bba7e43

Please sign in to comment.