Package ch.njol.skript.doc
Class HTMLGenerator
java.lang.Object
ch.njol.skript.doc.HTMLGenerator
Template engine, primarily used for generating Skript documentation
pages by combining data from annotations and templates.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generate()
Generates documentation using template and output directories given in the constructor.String[]
getNullOrEmptyDefault(@Nullable String[] string, String message)
getNullOrEmptyDefault(@Nullable String string, String message)
Checks if a string is empty or null then it will return the message provided
-
Constructor Details
-
HTMLGenerator
-
-
Method Details
-
generate
public void generate()Generates documentation using template and output directories given in the constructor. -
getNullOrEmptyDefault
Checks if a string is empty or null then it will return the message provided- Parameters:
string
- the String to checkmessage
- the String to return if either condition is true
-
getNullOrEmptyDefault
-