Method Summary |
|
public void | addBeanClass(String id, String typeName) Saves a bean's class for later introspection. |
public void | addDeclaration(JspDeclaration decl) Adds a new Java declaration to the list. |
public void | addDeclared(String var) Adds a declared variable. |
public void | addDepend(Path path) |
public void | addDepend(Class cl) Adds a dependency based on a class. |
public void | addDepend(PersistentDependency depend) |
public int | addExpr(String expr) Adds an expression to the expression list. |
public int | addFragment(JspFragmentNode node) |
protected void | addImport(String name) |
public int | addMethodExpr(String value, String sigString) Adds an expression to the expression list. |
public void | addOptionalTaglib(String prefix, String uri) Adds a taglib. |
public int | addString(String string) |
void | addTagFileClass(String cl) |
public void | addTaglib(String prefix, String uri) Adds a taglib. |
public Taglib | addTaglib(String prefix, String uri, boolean isOptional) Adds a taglib. |
public Taglib | addTaglib(QName qname) |
public void | addTaglibDir(String prefix, String tagdir) Adds a taglib. |
public int | addValueExpr(String value, String type) Adds an expression to the expression list. |
public String | addXPathExpr(String value, NamespaceContext ns) Adds an expression to the expression list. |
public String | addXPathExpr(com.caucho.xpath.Expr expr) Adds an expression to the expression list. |
public JspParseException | error(String message) |
public JspParseException | error(Exception e) |
protected void | fillSingleTaglibImports() As a convenience, when the Tag isn't in a package, import
it automatically. |
public com.caucho.el.Expr | genExpr(String value) |
protected void | generate(Path path, String className) Generates the JSP page. |
protected void | generate(JspJavaWriter out) Generates the Java code. |
protected void | generateClassFooter(JspJavaWriter out) Completes the generated class: closing the main method, generating
the dependencies and generating the constant strings. |
protected void | generateClassHeader(JspJavaWriter out) Generates the class header. |
public int | generateJspId() |
protected void | generatePageFooter(JspJavaWriter out) |
protected void | generatePageHeader(JspJavaWriter out) |
protected void | generateStatic() Generates a static file. |
Path | getAppDir() |
public Class | getBeanClass(String typeName) Loads a bean based on the class name. |
String | getCharacterEncoding() Returns the character encoding. |
public Class | getClass(String id) |
Path | getClassDir() |
public JspPageConfig | getConfig() |
public ArrayList<PersistentDependency> | getDependList() |
String | getDoctypePublic() |
String | getDoctypeRootElement() |
String | getDoctypeSystem() |
public ELContext | getELContext() |
public JspFragmentNode | getFragment(int index) |
Path | getGeneratedPath() |
String | getPackagePrefix() |
public PageData | getPageData() Returns the page's XML view. |
public ParseState | getParseState() |
public boolean | getRecycleTags() |
public TagInstance | getRootTag() |
public String | getSourceLines(Path source, int errorLine) |
public TagInfo | getTag(QName qname) Returns the tag with the given qname. |
public Class | getTagClass(QName qname) Returns the tag with the given qname. |
public ParseTagManager | getTagManager() Returns the taglib manager. |
public boolean | hasScripting() |
boolean | hasTags() |
public void | init() |
protected void | init(String className) |
public boolean | isDeclared(String var) True if it's a declared variable. |
public boolean | isJsfPrologueInit() |
boolean | isOmitXmlDeclaration() Returns true if the XML declaration should be set. |
public boolean | isStatic() Returns true if the JSP compilation has produced a static file. |
public boolean | isStaticEncoding() |
public boolean | isTag() |
boolean | isXml() Returns true for XML. |
Class | loadBeanClass(String typeName) |
WriteStream | openWriteStream() Opens a write stream to the *.java file we're generating. |
Method | resolveFunction(String prefix, String localName) |
void | setDoctypePublic(String doctypePublic) |
void | setDoctypeRootElement(String doctypeRootElement) |
void | setDoctypeSystem(String doctypeSystem) |
void | setIdeHack(boolean ideHack) |
public void | setJsfPrologueInit(boolean isInit) |
void | setOmitXmlDeclaration(boolean omitXml) Returns true if the XML declaration should be set. |
public void | setPageConfig(JspPageConfig pageConfig) |
protected void | setParseState(ParseState parseState) |
void | setRequireSource(boolean requireSource) |
public void | setRootNode(JspNode node) Sets the root JSP node. |
void | setStaticEncoding(boolean staticEncoding) |
public void | setTagManager(ParseTagManager tagManager) Sets the taglib manager. |
public int | uniqueId() |
public void | validate() Validates the JSP page. |