JIVE Platform
Release 0.2.2

edu.buffalo.cse.jive.ui.search.queries
Class ExceptionCaughtSearchQuery.ExceptionEventExporter

java.lang.Object
  extended by edu.buffalo.cse.jive.ui.search.queries.ExceptionCaughtSearchQuery.ExceptionEventExporter
All Implemented Interfaces:
Event.Exporter, ExceptionEvent.Exporter
Enclosing class:
ExceptionCaughtSearchQuery

protected class ExceptionCaughtSearchQuery.ExceptionEventExporter
extends Object
implements ExceptionEvent.Exporter

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 className
          The fully-qualified class name of the exception catcher.
protected  Value exceptionValue
          The exception that was caught.
protected  String instanceNumber
          The instance number of the class of the exception catcher
protected  String methodName
          The method name where the exception was caught.
 
Constructor Summary
protected ExceptionCaughtSearchQuery.ExceptionEventExporter()
           
 
Method Summary
 void addCatcher(ContourID catcher)
          Adds the catcher of the exception.
 void addException(Value exception)
          Adds the exception that was caught.
 void addNumber(long n)
          Get the sequence number of this event.
 void addThreadID(ThreadID thread)
          Adds the thread on which this event took place.
 void addVariable(VariableID v)
          Adds the variable identifier holding the exception that was caught.
 boolean checkForMatch()
          Returns whether the exception catcher matches the JiveSearchPattern and the exception caught starts with the exception name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

protected String className
The fully-qualified class name of the exception catcher.


instanceNumber

protected String instanceNumber
The instance number of the class of the exception catcher


methodName

protected String methodName
The method name where the exception was caught.


exceptionValue

protected Value exceptionValue
The exception that was caught.

Constructor Detail

ExceptionCaughtSearchQuery.ExceptionEventExporter

protected ExceptionCaughtSearchQuery.ExceptionEventExporter()
Method Detail

addCatcher

public void addCatcher(ContourID catcher)
Description copied from interface: ExceptionEvent.Exporter
Adds the catcher of the exception. This This is called by ExceptionEvent#export(Exporter).

Specified by:
addCatcher in interface ExceptionEvent.Exporter
Parameters:
catcher - the catcher

addException

public void addException(Value exception)
Description copied from interface: ExceptionEvent.Exporter
Adds the exception that was caught. This is called by ExceptionEvent#export(Exporter).

Specified by:
addException in interface ExceptionEvent.Exporter
Parameters:
exception - the exception

addVariable

public void addVariable(VariableID v)
Description copied from interface: ExceptionEvent.Exporter
Adds the variable identifier holding the exception that was caught. This is called by ExceptionEvent#export(Exporter).

Specified by:
addVariable in interface ExceptionEvent.Exporter
Parameters:
v - the variable identifier

addNumber

public void addNumber(long n)
Description copied from interface: Event.Exporter
Get the sequence number of this event. Each event has a unique sequence number with respect to a single execution.

Specified by:
addNumber in interface Event.Exporter
Parameters:
n - the event number

addThreadID

public void addThreadID(ThreadID thread)
Description copied from interface: Event.Exporter
Adds the thread on which this event took place.

Specified by:
addThreadID in interface Event.Exporter
Parameters:
thread - the thread identifier

checkForMatch

public boolean checkForMatch()
Returns whether the exception catcher matches the JiveSearchPattern and the exception caught starts with the exception name.

Returns:
true if the assignment can be associated with the pattern, false otherwise

JIVE Platform
Release 0.2.2