public final class TemplateParser extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
d_remove_all_emptylines
The name of the ("remove-all-emptylines") directive
|
static java.lang.String |
d_remove_initial_emptylines
The name of the ("remove-initial-whitespace") directive
|
Constructor and Description |
---|
TemplateParser(java.io.File input,
java.io.File output,
java.lang.String classname,
Log log)
Creates a new page parser.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
void |
parse()
Parses the page.
|
public static java.lang.String d_remove_initial_emptylines
public static java.lang.String d_remove_all_emptylines
public TemplateParser(java.io.File input, java.io.File output, java.lang.String classname, Log log) throws java.io.IOException
contextRoot
- absolute path to the webapp context root directoryinput
- absolute path to the input page fileoutput
- absolute path to the output file (to be written to).classname
- classname to give to the generated java class.java.io.IOException
public void parse() throws java.io.IOException
java.io.IOException
- a parse failure occurred. The java source file
may or may not be properly generated or written
in this case.public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException