|
|||||||||
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(Object filter)
Show all the channels currently being printed, with the exception of this new one |
boolean |
alsoShow(Object filter)
Show all the channels currently being printed, in addition to a new one |
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. |
List<Redwood.Record> |
signalEndTrack(int newDepth)
Signal the end of a track, i.e. |
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(Object filter)
filter
- The channel to also show
public boolean alsoHide(Object filter)
filter
- The channel to also hide
public List<Redwood.Record> handle(Redwood.Record record)
handle
in class LogRecordHandler
record
- The log record to handle
public List<Redwood.Record> signalStartTrack(Redwood.Record signal)
signalStartTrack
in class LogRecordHandler
signal
- A record corresponding to the information in the track header.
The depth in this object is the old log depth.
public List<Redwood.Record> signalEndTrack(int newDepth)
signalEndTrack
in class LogRecordHandler
newDepth
- 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 |