|
GXPARSE hosted by | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.gorman.xml.parse.toolkit.Coroutine_NoCallback<T> ca.gorman.xml.parse.toolkit.CoroutineFatalError<T>
public final class CoroutineFatalError<T extends Parser>
Invokes
fatalError declaration handler
from the parser thread to run in the
application thread.
Constructor Summary | |
---|---|
CoroutineFatalError()
Construct instance that cannot be used until initialized by setListener and
setParams . |
|
CoroutineFatalError(MessageListener<T> listener)
Construct instance that cannot be used until initialized by setParams . |
|
CoroutineFatalError(MessageListener<T> listener,
String description,
Location location,
Exception exception)
Construct fully initialized instance, ready for immediate use. |
Method Summary | |
---|---|
MessageListener<T> |
getListener()
Get the listener . |
void |
run()
Execute a callback from the parser thread to run the fatal error declaration handler in the application thread. |
void |
setListener(MessageListener<T> listener)
Set or reset the listener . |
void |
setParams(String description,
Location location,
Exception exception)
Set or reset data to be sent to the fatalError declaration handler . |
Methods inherited from class ca.gorman.xml.parse.toolkit.Coroutine_NoCallback |
---|
getParser, setParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoroutineFatalError()
Construct instance that cannot be used until initialized by
setListener
and
setParams
.
public CoroutineFatalError(MessageListener<T> listener)
Construct instance that cannot be used until initialized by
setParams
.
NullPointerException
- if listener is nullpublic CoroutineFatalError(MessageListener<T> listener, String description, Location location, Exception exception)
Construct fully initialized instance, ready for immediate use.
NullPointerException
- if listener is nullMethod Detail |
---|
public MessageListener<T> getListener()
Get the listener
.
public void setListener(MessageListener<T> listener)
Set or reset the listener
.
NullPointerException
- if listener is nullpublic void setParams(String description, Location location, Exception exception)
Set or reset data to be sent to the
fatalError declaration handler
.
public void run()
Execute a callback from the parser thread to run the
fatal error declaration handler
in the application thread.
The parser is suspended until this method returns.
run
in interface Runnable
CoroutineTransferException
- if thefatal error declaration
handler throws an exception.
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |