|
JIVE Platform Release 0.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.buffalo.cse.jive.ui.search.AbstractJiveSearchQuery
edu.buffalo.cse.jive.ui.search.ExecutionHistorySearchQuery
edu.buffalo.cse.jive.ui.search.queries.ExceptionCaughtSearchQuery
public class ExceptionCaughtSearchQuery
An IJiveSearchQuery that is used to check whether an exception was
caught and, if so, where it was thrown. The query is capable of finding
caught exceptions of a particular type or caught by a particular class,
instance, or in a certain method.
| Nested Class Summary | |
|---|---|
protected class |
ExceptionCaughtSearchQuery.ExceptionEventExporter
An exporter used to examine ExceptionEvents and to determine if
the event is and exception caught by a JiveSearchPattern and
exception name. |
| Field Summary | |
|---|---|
protected String |
exceptionName
The exception name for which to search. |
protected ExceptionCaughtSearchQuery.ExceptionEventExporter |
exporter
An exporter used to examine ExceptionEvents. |
protected Map<ThreadID,EventOccurrence> |
lastStepMap
A mapping between a thread and the last EOSEvent occurring on it. |
protected JiveSearchPattern |
pattern
A search pattern for the catcher of the exception. |
| Constructor Summary | |
|---|---|
ExceptionCaughtSearchQuery(JiveSearchPattern pattern,
String exceptionName)
Constructs a new search query with the supplied pattern and exception name. |
|
| Method Summary | |
|---|---|
protected boolean |
checkForMatch(ExceptionEvent event)
Checks if the supplied ExceptionEvent matches the pattern and
exception name. |
ImageDescriptor |
getImageDescriptor()
Returns an ImageDescriptor used to represent the search query's
result in the Search view's 'Show Previous Searches' tool bar action. |
String |
getResultLabel(int matchCount)
Returns a label describing the search result used in the Search view. |
void |
visit(EventOccurrence event)
Visits an EventOccurrernce (other than a
MessageSend). |
void |
visit(MessageSend event)
Visits an occurrence of a MessageSend event. |
| Methods inherited from class edu.buffalo.cse.jive.ui.search.ExecutionHistorySearchQuery |
|---|
addMatch, getResultType, performSearch |
| Methods inherited from class edu.buffalo.cse.jive.ui.search.AbstractJiveSearchQuery |
|---|
canRerun, canRunInBackground, createSearchResult, getLabel, getSearchResult, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ExceptionCaughtSearchQuery.ExceptionEventExporter exporter
ExceptionEvents.
protected JiveSearchPattern pattern
protected String exceptionName
protected Map<ThreadID,EventOccurrence> lastStepMap
EOSEvent occurring on it.
| Constructor Detail |
|---|
public ExceptionCaughtSearchQuery(JiveSearchPattern pattern,
String exceptionName)
pattern - the pattern describing the catcher of the exceptionexceptionName - the name of the exception| Method Detail |
|---|
public String getResultLabel(int matchCount)
IJiveSearchQuery
matchCount - the number of matches thus far
public ImageDescriptor getImageDescriptor()
IJiveSearchQueryImageDescriptor used to represent the search query's
result in the Search view's 'Show Previous Searches' tool bar action.
public void visit(EventOccurrence event)
SequenceModel.EventVisitorEventOccurrernce (other than a
MessageSend).
event - the event occurrence being visitedpublic void visit(MessageSend event)
SequenceModel.EventVisitorMessageSend event.
event - the message send being visitedprotected boolean checkForMatch(ExceptionEvent event)
ExceptionEvent matches the pattern and
exception name.
event - the exception event to check
true if the exception matches the pattern,
false otherwise
|
JIVE Platform Release 0.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||