| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnu.staldal.lsp.compiler.LSPCompiler
public class LSPCompiler
Compiles an LSP page into JVM bytecode.
An instance of this class may be reused, but is not thread safe.
LSPCompilerHelper| Constructor Summary | |
|---|---|
LSPCompiler()
Create a new LSP compiler.  | 
|
| Method Summary | |
|---|---|
 void | 
finishCompile(java.io.OutputStream out)
Finish the compilation.  | 
 void | 
setAcceptNull(boolean acceptNull)
Deprecated. use setAcceptUnbound(boolean) instead | 
 void | 
setAcceptUnbound(boolean acceptUnbound)
Set to true to make the compiled page accept 
 unbound values without runtime error. | 
 void | 
setEnclose(java.lang.String encloseURL)
Set enclose to use.  | 
 void | 
setHtml(boolean html)
Set to true to use html as default output 
 type. | 
 void | 
setXhtml(boolean xhtml)
Deprecated. XHTML is now default, use setHtml(boolean) to override it. | 
 org.xml.sax.ContentHandler | 
startCompile(java.lang.String page,
             URLResolver r)
Start compilation of an LSP page.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LSPCompiler()
| Method Detail | 
|---|
@Deprecated public void setXhtml(boolean xhtml)
setHtml(boolean) to override it.
true to use xhtml as default output 
 type.
xhtml - public void setHtml(boolean html)
true to use html as default output 
 type.
html - @Deprecated public void setAcceptNull(boolean acceptNull)
setAcceptUnbound(boolean) instead
acceptNull - public void setAcceptUnbound(boolean acceptUnbound)
true to make the compiled page accept 
 unbound values without runtime error.
acceptUnbound - public void setEnclose(java.lang.String encloseURL)
null to not use any enclose.
encloseURL - URL to the enclose to use
public org.xml.sax.ContentHandler startCompile(java.lang.String page,
                                               URLResolver r)
                                        throws LSPException
page - page namer - URLResolver to use for resolving 
                   <lsp:import> and enclose
LSPException
public void finishCompile(java.io.OutputStream out)
                   throws org.xml.sax.SAXException,
                          java.io.IOException
out - where to write the compiled code (as JVM bytecode).
org.xml.sax.SAXException - if any compilation error occurs
java.io.IOException - if any I/O error occurs when reading 
         <lsp:import>ed files, or when writing compiled code
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||