Package org.javacc.utils
Class OutputFileGenerator
java.lang.Object
org.javacc.utils.OutputFileGenerator
Generates boiler-plate files from templates. Only very basic
template processing is supplied - if we need something more
sophisticated I suggest we use a third-party library.
- Since:
- 4.2
- Author:
- paulcager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
generate
(PrintWriter out) Generate the output file.static void
static void
-
Constructor Details
-
OutputFileGenerator
- Parameters:
templateName
- the name of the template. E.g. "/templates/Token.template".options
- the processing options in force, such as "STATIC=yes"
-
-
Method Details
-
generate
Generate the output file.- Parameters:
out
-- Throws:
IOException
-
main
- Throws:
Exception
-
generateFromTemplate
public static void generateFromTemplate(String template, Map<String, Object> options, String outputFileName) throws IOException- Throws:
IOException
-