org.apache.jasper.compiler
Class JspParseEventListener

java.lang.Object
  |
  +--org.apache.jasper.compiler.BaseJspListener
        |
        +--org.apache.jasper.compiler.JspParseEventListener
All Implemented Interfaces:
ParseEventListener

public class JspParseEventListener
extends BaseJspListener

JSP code generator "backend".

Author:
Anil K. Vijendran, Pierre Delisle, Danno Ferrin

Fields inherited from class org.apache.jasper.compiler.BaseJspListener
reader, writer
 
Method Summary
 void beginPageProcessing()
           
 void endPageProcessing()
           
 TagLibraries getTagLibraries()
           
 void handleBean(Mark start, Mark stop, org.xml.sax.Attributes attrs)
           
 void handleBeanEnd(Mark start, Mark stop, org.xml.sax.Attributes attrs)
           
 void handleCharData(Mark start, Mark stop, char[] chars)
           
 void handleComment(Mark start, Mark stop, char[] text)
           
 void handleDeclaration(Mark start, Mark stop, org.xml.sax.Attributes attrs, char[] text)
           
 void handleDirective(java.lang.String directive, Mark start, Mark stop, org.xml.sax.Attributes attrs)
           
 void handleExpression(Mark start, Mark stop, org.xml.sax.Attributes attrs, char[] text)
           
 void handleForward(Mark start, Mark stop, org.xml.sax.Attributes attrs, java.util.Hashtable param)
           
 void handleGetProperty(Mark start, Mark stop, org.xml.sax.Attributes attrs)
           
 void handleInclude(Mark start, Mark stop, org.xml.sax.Attributes attrs, java.util.Hashtable param)
           
 void handlePlugin(Mark start, Mark stop, org.xml.sax.Attributes attrs, java.util.Hashtable param, java.lang.String fallback)
           
 void handleRootBegin(org.xml.sax.Attributes attrs)
           
 void handleRootEnd()
           
 void handleScriptlet(Mark start, Mark stop, org.xml.sax.Attributes attrs, char[] text)
           
 void handleSetProperty(Mark start, Mark stop, org.xml.sax.Attributes attrs)
           
 void handleTagBegin(Mark start, Mark stop, org.xml.sax.Attributes attrs, java.lang.String prefix, java.lang.String shortTagName, javax.servlet.jsp.tagext.TagLibraryInfo tli, javax.servlet.jsp.tagext.TagInfo ti)
           
 void handleTagEnd(Mark start, Mark stop, java.lang.String prefix, java.lang.String shortTagName, org.xml.sax.Attributes attrs, javax.servlet.jsp.tagext.TagLibraryInfo tli, javax.servlet.jsp.tagext.TagInfo ti)
           
 void handleUninterpretedTagBegin(Mark start, Mark stop, java.lang.String rawName, org.xml.sax.Attributes attrs)
           
 void handleUninterpretedTagEnd(Mark start, Mark stop, java.lang.String rawName)
           
static void setCommentGenerator(CommentGenerator generator)
           
 void validate()
          validate the XML stream of the JSP document against the libraries used by the document.
 
Methods inherited from class org.apache.jasper.compiler.BaseJspListener
setReader, setTemplateInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setCommentGenerator

public static void setCommentGenerator(CommentGenerator generator)

beginPageProcessing

public void beginPageProcessing()
                         throws JasperException
Overrides:
beginPageProcessing in class BaseJspListener

endPageProcessing

public void endPageProcessing()
                       throws JasperException
Overrides:
endPageProcessing in class BaseJspListener

handleComment

public void handleComment(Mark start,
                          Mark stop,
                          char[] text)
                   throws JasperException
Overrides:
handleComment in class BaseJspListener

handleDirective

public void handleDirective(java.lang.String directive,
                            Mark start,
                            Mark stop,
                            org.xml.sax.Attributes attrs)
                     throws JasperException
Overrides:
handleDirective in class BaseJspListener

handleDeclaration

public void handleDeclaration(Mark start,
                              Mark stop,
                              org.xml.sax.Attributes attrs,
                              char[] text)
                       throws JasperException
Overrides:
handleDeclaration in class BaseJspListener

handleScriptlet

public void handleScriptlet(Mark start,
                            Mark stop,
                            org.xml.sax.Attributes attrs,
                            char[] text)
                     throws JasperException
Overrides:
handleScriptlet in class BaseJspListener

handleExpression

public void handleExpression(Mark start,
                             Mark stop,
                             org.xml.sax.Attributes attrs,
                             char[] text)
                      throws JasperException
Overrides:
handleExpression in class BaseJspListener

handleBean

public void handleBean(Mark start,
                       Mark stop,
                       org.xml.sax.Attributes attrs)
                throws JasperException
Overrides:
handleBean in class BaseJspListener

handleBeanEnd

public void handleBeanEnd(Mark start,
                          Mark stop,
                          org.xml.sax.Attributes attrs)
                   throws JasperException
Overrides:
handleBeanEnd in class BaseJspListener

handleGetProperty

public void handleGetProperty(Mark start,
                              Mark stop,
                              org.xml.sax.Attributes attrs)
                       throws JasperException
Overrides:
handleGetProperty in class BaseJspListener

handleSetProperty

public void handleSetProperty(Mark start,
                              Mark stop,
                              org.xml.sax.Attributes attrs)
                       throws JasperException
Overrides:
handleSetProperty in class BaseJspListener

handlePlugin

public void handlePlugin(Mark start,
                         Mark stop,
                         org.xml.sax.Attributes attrs,
                         java.util.Hashtable param,
                         java.lang.String fallback)
                  throws JasperException
Overrides:
handlePlugin in class BaseJspListener

handleForward

public void handleForward(Mark start,
                          Mark stop,
                          org.xml.sax.Attributes attrs,
                          java.util.Hashtable param)
                   throws JasperException
Overrides:
handleForward in class BaseJspListener

handleInclude

public void handleInclude(Mark start,
                          Mark stop,
                          org.xml.sax.Attributes attrs,
                          java.util.Hashtable param)
                   throws JasperException
Overrides:
handleInclude in class BaseJspListener

handleCharData

public void handleCharData(Mark start,
                           Mark stop,
                           char[] chars)
                    throws JasperException
Overrides:
handleCharData in class BaseJspListener

handleTagBegin

public void handleTagBegin(Mark start,
                           Mark stop,
                           org.xml.sax.Attributes attrs,
                           java.lang.String prefix,
                           java.lang.String shortTagName,
                           javax.servlet.jsp.tagext.TagLibraryInfo tli,
                           javax.servlet.jsp.tagext.TagInfo ti)
                    throws JasperException
Overrides:
handleTagBegin in class BaseJspListener

handleTagEnd

public void handleTagEnd(Mark start,
                         Mark stop,
                         java.lang.String prefix,
                         java.lang.String shortTagName,
                         org.xml.sax.Attributes attrs,
                         javax.servlet.jsp.tagext.TagLibraryInfo tli,
                         javax.servlet.jsp.tagext.TagInfo ti)
                  throws JasperException
Overrides:
handleTagEnd in class BaseJspListener

getTagLibraries

public TagLibraries getTagLibraries()
Overrides:
getTagLibraries in class BaseJspListener

handleRootEnd

public void handleRootEnd()
Overrides:
handleRootEnd in class BaseJspListener

handleRootBegin

public void handleRootBegin(org.xml.sax.Attributes attrs)
Overrides:
handleRootBegin in class BaseJspListener

handleUninterpretedTagBegin

public void handleUninterpretedTagBegin(Mark start,
                                        Mark stop,
                                        java.lang.String rawName,
                                        org.xml.sax.Attributes attrs)
                                 throws JasperException
Overrides:
handleUninterpretedTagBegin in class BaseJspListener

handleUninterpretedTagEnd

public void handleUninterpretedTagEnd(Mark start,
                                      Mark stop,
                                      java.lang.String rawName)
                               throws JasperException
Overrides:
handleUninterpretedTagEnd in class BaseJspListener

validate

public void validate()
              throws JasperException
validate the XML stream of the JSP document against the libraries used by the document.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.