|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.util.logging.LogRecordHandler
edu.stanford.nlp.util.logging.VisibilityHandler
public class VisibilityHandler
A filter for selecting which channels are visible. This class behaves as an "or" filter; that is, if any of the filters are considered valid, it allows the Record to proceed to the next handler.
| Field Summary |
|---|
| Fields inherited from class edu.stanford.nlp.util.logging.LogRecordHandler |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
VisibilityHandler()
|
|
| Method Summary | |
|---|---|
boolean |
alsoHide(java.lang.Object filter)
Show all the channels currently being printed, with the exception of this new one |
boolean |
alsoShow(java.lang.Object filter)
Show all the channels currently being printed, in addition to a new one |
java.util.List<Redwood.Record> |
handle(Redwood.Record record)
Handle a log Record, either as a filter or by producing a side effect. |
void |
hideAll()
Show none of the channels |
void |
showAll()
Show all of the channels. |
java.util.List<Redwood.Record> |
signalEndTrack(int newDepth,
long timeOfEnd)
Signal the end of a track, i.e. |
java.util.List<Redwood.Record> |
signalStartTrack(Redwood.Record signal)
Signal the start of a track, i.e. |
| Methods inherited from class edu.stanford.nlp.util.logging.LogRecordHandler |
|---|
signalShutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VisibilityHandler()
| Method Detail |
|---|
public void showAll()
public void hideAll()
public boolean alsoShow(java.lang.Object filter)
filter - The channel to also show
public boolean alsoHide(java.lang.Object filter)
filter - The channel to also hide
public java.util.List<Redwood.Record> handle(Redwood.Record record)
handle in class LogRecordHandlerrecord - The log record to handle
public java.util.List<Redwood.Record> signalStartTrack(Redwood.Record signal)
signalStartTrack in class LogRecordHandlersignal - A record corresponding to the information in the track header.
The depth in this object is the old log depth.
public java.util.List<Redwood.Record> signalEndTrack(int newDepth,
long timeOfEnd)
signalEndTrack in class LogRecordHandlernewDepth - The new depth; that is, the current depth - 1.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||