com.sun.java.help.impl

Class Parser.ParserMulticaster

Enclosing Class:
Parser
Implemented Interfaces:
java.util.EventListener, ParserListener

protected static class Parser.ParserMulticaster
extends java.lang.Object
implements ParserListener

Field Summary

protected EventListener
a
protected EventListener
b

Constructor Summary

ParserMulticaster(EventListener newA, EventListener newB)

Method Summary

static ParserListener
add(ParserListener a, ParserListener b)
protected static EventListener
addInternal(EventListener a, EventListener b)
void
commentFound(ParserEvent e)
This tells the listener that a comment was parsed
void
doctypeFound(ParserEvent e)
This tells the listener that a DOCTYPE was parsed
void
errorFound(ParserEvent e)
This tells the listener that a error was parsed
void
piFound(ParserEvent e)
This tells the listener that a PI was parsed
protected EventListener
remove(EventListener oldl)
static ParserListener
remove(ParserListener l, ParserListener oldl)
protected static EventListener
removeInternal(EventListener l, EventListener oldl)
void
tagFound(ParserEvent e)
This tells the listener that a Tag was parsed
void
textFound(ParserEvent e)
This tells the listener that a continous block of text was parsed

Field Details

a

protected final EventListener a

b

protected final EventListener b

Constructor Details

ParserMulticaster

protected ParserMulticaster(EventListener newA,
                            EventListener newB)

Method Details

add

public static ParserListener add(ParserListener a,
                                 ParserListener b)

addInternal

protected static EventListener addInternal(EventListener a,
                                           EventListener b)

commentFound

public void commentFound(ParserEvent e)
This tells the listener that a comment was parsed
Specified by:
commentFound in interface ParserListener
Parameters:
e - The event

doctypeFound

public void doctypeFound(ParserEvent e)
This tells the listener that a DOCTYPE was parsed
Specified by:
doctypeFound in interface ParserListener
Parameters:
e - The event

errorFound

public void errorFound(ParserEvent e)
This tells the listener that a error was parsed
Specified by:
errorFound in interface ParserListener
Parameters:
e - The event

piFound

public void piFound(ParserEvent e)
This tells the listener that a PI was parsed
Specified by:
piFound in interface ParserListener
Parameters:
e - The event

remove

protected EventListener remove(EventListener oldl)

remove

public static ParserListener remove(ParserListener l,
                                    ParserListener oldl)

removeInternal

protected static EventListener removeInternal(EventListener l,
                                              EventListener oldl)

tagFound

public void tagFound(ParserEvent e)
This tells the listener that a Tag was parsed
Specified by:
tagFound in interface ParserListener
Parameters:
e - The event

textFound

public void textFound(ParserEvent e)
This tells the listener that a continous block of text was parsed
Specified by:
textFound in interface ParserListener
Parameters:
e - The event