| java.lang.Object org.gjt.jsp.JSPCompiler
JSPCompiler | public class JSPCompiler (Code) | | This JSP compiler class takes the quick&dirty approach to JSP parsing.
The whole JSP file is read into memory and an index is run through it
until a StringIndexOutOfBoundsException occurs. I was happily hacking
away at this until I discovered it had gotten more than 30K long. It
seems to work, but someday it might be a good idea to break this
all up into separate classes, like a JSPParser, JavaGenerator en
JavaCompiler class.
A new JSPCompiler should be created every time a file is compiled.
The classfiles directory, the file and the classname are parameters
to the constructor. Call compile() to do the actual compiling.
|
COMPILER_VERSION_NR | final public static int COMPILER_VERSION_NR(Code) | | |
compile | public void compile() throws JSPException(Code) | | Do the actual compilation. This is done in three phases:
- parse the JSP file
- generate a
.java file
- compile the
.java file into a .class file
exception: JSPException - is thrown when a compilation error occurs |
|
|