public class JSPContentHandler extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected JSPTreeNodeIF |
current |
protected ErrorHandler |
ehandler |
protected Locator |
locator |
protected Stack<String> |
parents |
protected JSPTreeNodeIF |
root |
protected JSPTagFactoryIF |
tagFactory |
protected boolean |
useTagPooling |
Constructor and Description |
---|
JSPContentHandler() |
JSPContentHandler(boolean useTagPooling) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String lname,
String qname) |
protected ErrorHandler |
getDefaultErrorHandler() |
JSPTreeNodeIF |
getRootNode()
Returns the root node of the just read-in and built JSPTree.
|
void |
register(XMLReader parser) |
void |
setDocumentLocator(Locator locator) |
void |
startDocument() |
void |
startElement(String uri,
String lname,
String qname,
Attributes atts) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
protected JSPTreeNodeIF root
protected JSPTreeNodeIF current
protected JSPTagFactoryIF tagFactory
protected final boolean useTagPooling
protected ErrorHandler ehandler
protected Locator locator
public JSPContentHandler()
public JSPContentHandler(boolean useTagPooling)
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
public void register(XMLReader parser)
protected ErrorHandler getDefaultErrorHandler()
public void startDocument()
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
public void endDocument()
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
public void startElement(String uri, String lname, String qname, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endElement(String uri, String lname, String qname) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public JSPTreeNodeIF getRootNode()