org.apache.jasper.compiler
Class BaseJspListener

java.lang.Object
  |
  +--org.apache.jasper.compiler.BaseJspListener
All Implemented Interfaces:
ParseEventListener
Direct Known Subclasses:
DumbParseEventListener, JspParseEventListener

public class BaseJspListener
extends java.lang.Object
implements ParseEventListener

An abstract base class to make things easy during development.

Author:
Anil K. Vijendran, Danno Ferrin

Field Summary
protected  JspReader reader
           
protected  ServletWriter writer
           
 
Constructor Summary
protected BaseJspListener(JspReader reader, ServletWriter 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)
           
 void setReader(JspReader reader)
          The reader associated with the listener.
 void setTemplateInfo(Mark start, Mark stop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

protected JspReader reader

writer

protected ServletWriter writer
Constructor Detail

BaseJspListener

protected BaseJspListener(JspReader reader,
                          ServletWriter writer)
Method Detail

setReader

public void setReader(JspReader reader)
Description copied from interface: ParseEventListener
The reader associated with the listener. As of JSP1.2, each part of the JSP tranlation unit is parsed with a new instance of a parser and the reader is different for each one.
Specified by:
setReader in interface ParseEventListener

setTemplateInfo

public void setTemplateInfo(Mark start,
                            Mark stop)
Specified by:
setTemplateInfo in interface ParseEventListener

beginPageProcessing

public void beginPageProcessing()
                         throws JasperException
Specified by:
beginPageProcessing in interface ParseEventListener

endPageProcessing

public void endPageProcessing()
                       throws JasperException
Specified by:
endPageProcessing in interface ParseEventListener

handleComment

public void handleComment(Mark start,
                          Mark stop,
                          char[] text)
                   throws JasperException
Specified by:
handleComment in interface ParseEventListener

handleDirective

public void handleDirective(java.lang.String directive,
                            Mark start,
                            Mark stop,
                            org.xml.sax.Attributes attrs)
                     throws JasperException
Specified by:
handleDirective in interface ParseEventListener

handleDeclaration

public void handleDeclaration(Mark start,
                              Mark stop,
                              org.xml.sax.Attributes attrs,
                              char[] text)
                       throws JasperException
Specified by:
handleDeclaration in interface ParseEventListener

handleScriptlet

public void handleScriptlet(Mark start,
                            Mark stop,
                            org.xml.sax.Attributes attrs,
                            char[] text)
                     throws JasperException
Specified by:
handleScriptlet in interface ParseEventListener

handleExpression

public void handleExpression(Mark start,
                             Mark stop,
                             org.xml.sax.Attributes attrs,
                             char[] text)
                      throws JasperException
Specified by:
handleExpression in interface ParseEventListener

handleBean

public void handleBean(Mark start,
                       Mark stop,
                       org.xml.sax.Attributes attrs)
                throws JasperException
Specified by:
handleBean in interface ParseEventListener

handleBeanEnd

public void handleBeanEnd(Mark start,
                          Mark stop,
                          org.xml.sax.Attributes attrs)
                   throws JasperException
Specified by:
handleBeanEnd in interface ParseEventListener

handleGetProperty

public void handleGetProperty(Mark start,
                              Mark stop,
                              org.xml.sax.Attributes attrs)
                       throws JasperException
Specified by:
handleGetProperty in interface ParseEventListener

handleSetProperty

public void handleSetProperty(Mark start,
                              Mark stop,
                              org.xml.sax.Attributes attrs)
                       throws JasperException
Specified by:
handleSetProperty in interface ParseEventListener

handlePlugin

public void handlePlugin(Mark start,
                         Mark stop,
                         org.xml.sax.Attributes attrs,
                         java.util.Hashtable param,
                         java.lang.String fallback)
                  throws JasperException
Specified by:
handlePlugin in interface ParseEventListener

handleCharData

public void handleCharData(Mark start,
                           Mark stop,
                           char[] chars)
                    throws JasperException
Specified by:
handleCharData in interface ParseEventListener

handleForward

public void handleForward(Mark start,
                          Mark stop,
                          org.xml.sax.Attributes attrs,
                          java.util.Hashtable param)
                   throws JasperException
Specified by:
handleForward in interface ParseEventListener

handleInclude

public void handleInclude(Mark start,
                          Mark stop,
                          org.xml.sax.Attributes attrs,
                          java.util.Hashtable param)
                   throws JasperException
Specified by:
handleInclude in interface ParseEventListener

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
Specified by:
handleTagBegin in interface ParseEventListener

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
Specified by:
handleTagEnd in interface ParseEventListener

getTagLibraries

public TagLibraries getTagLibraries()
Specified by:
getTagLibraries in interface ParseEventListener

handleRootBegin

public void handleRootBegin(org.xml.sax.Attributes attrs)
Specified by:
handleRootBegin in interface ParseEventListener

handleRootEnd

public void handleRootEnd()
Specified by:
handleRootEnd in interface ParseEventListener

handleUninterpretedTagBegin

public void handleUninterpretedTagBegin(Mark start,
                                        Mark stop,
                                        java.lang.String rawName,
                                        org.xml.sax.Attributes attrs)
                                 throws JasperException
Specified by:
handleUninterpretedTagBegin in interface ParseEventListener

handleUninterpretedTagEnd

public void handleUninterpretedTagEnd(Mark start,
                                      Mark stop,
                                      java.lang.String rawName)
                               throws JasperException
Specified by:
handleUninterpretedTagEnd in interface ParseEventListener


Copyright © 2000 Apache Software Foundation. All Rights Reserved.