| |
|
| java.lang.Object com.sun.midp.events.InstrumentedEventListener
InstrumentedEventListener | class InstrumentedEventListener implements EventListener(Code) | | An implementation of an EventListener that records the events passed to its
process() and preprocess() methods.
|
Constructor Summary | |
public | InstrumentedEventListener(boolean newPreprocess) Creates a new InstrumentedEventListener, setting
the return value of its preprocess() method to be
newPreprocess. | public | InstrumentedEventListener() Creates a new InstrumentedEventListener whose preprocess()
method returns true. |
preprocess | boolean preprocess(Code) | | The value preprocess() should return.
|
preprocessedEvents | Vector preprocessedEvents(Code) | | Accumulates events passed to preprocess().
|
preprocessedWaitingEvents | Vector preprocessedWaitingEvents(Code) | | Accumulates the waitingEvents passed to preprocess().
|
processedEvents | Vector processedEvents(Code) | | Accumulates events passed to process().
|
InstrumentedEventListener | public InstrumentedEventListener(boolean newPreprocess)(Code) | | Creates a new InstrumentedEventListener, setting
the return value of its preprocess() method to be
newPreprocess.
|
InstrumentedEventListener | public InstrumentedEventListener()(Code) | | Creates a new InstrumentedEventListener whose preprocess()
method returns true.
|
getArray | Event[] getArray(Vector v)(Code) | | Returns an array of events, given a vector of events.
|
getPreprocessedEvents | public Event[] getPreprocessedEvents()(Code) | | Returns an array of events recorded by the preprocess() method.
|
getProcessedEvents | public Event[] getProcessedEvents()(Code) | | Returns an array of events recorded by the process() method.
|
getWaitingEvents | public Event[] getWaitingEvents()(Code) | | Returns an array of waiting events recorded by the preprocess() method.
Note that there will likely be null elements within this array.
|
preprocess | public boolean preprocess(Event event, Event waitingEvent)(Code) | | The preprocess() method of EventListener. Records the event and
the waitingEvent in the corresponding vectors. Returns the current
value of preprocess.
|
process | public void process(Event event)(Code) | | The process() method of EventListener. Simply records the given event
in the processedEvents vector.
|
setPreprocess | public void setPreprocess(boolean p)(Code) | | Sets the return value of the preprocess() method.
|
|
|
|