JIVE Platform
Release 0.2.2

edu.buffalo.cse.jive.ui.search.queries
Class MethodCalledSearchQuery.CallEventExporter

java.lang.Object
  extended by edu.buffalo.cse.jive.ui.search.queries.MethodCalledSearchQuery.CallEventExporter
All Implemented Interfaces:
CallEvent.Exporter, Event.Exporter
Enclosing class:
MethodCalledSearchQuery

protected class MethodCalledSearchQuery.CallEventExporter
extends Object
implements CallEvent.Exporter

An exporter used to examine CallEvents and to determine if the event is a call on a method represented by a JiveSearchPattern.


Field Summary
protected  CallEvent.Target target
          The method that was called.
 
Constructor Summary
protected MethodCalledSearchQuery.CallEventExporter()
           
 
Method Summary
 void addActualParams(List<Value> actuals)
          Adds the actual parameters of the call.
 void addCaller(CallEvent.Caller caller)
          Adds the caller of the call.
 void addNumber(long n)
          Get the sequence number of this event.
 void addTarget(CallEvent.Target target)
          Adds the target of the call.
 void addThreadID(ThreadID thread)
          Adds the thread on which this event took place.
 boolean checkForMatch(JiveSearchPattern pattern)
          Returns whether the event is a method call represented by the supplied JiveSearchPattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected CallEvent.Target target
The method that was called.

Constructor Detail

MethodCalledSearchQuery.CallEventExporter

protected MethodCalledSearchQuery.CallEventExporter()
Method Detail

addActualParams

public void addActualParams(List<Value> actuals)
Description copied from interface: CallEvent.Exporter
Adds the actual parameters of the call. This method is called by CallEvent#export(Exporter).

Specified by:
addActualParams in interface CallEvent.Exporter
Parameters:
actuals - the actual parameter values

addCaller

public void addCaller(CallEvent.Caller caller)
Description copied from interface: CallEvent.Exporter
Adds the caller of the call. This method is called by CallEvent#export(Exporter).

Specified by:
addCaller in interface CallEvent.Exporter
Parameters:
caller - the caller

addTarget

public void addTarget(CallEvent.Target target)
Description copied from interface: CallEvent.Exporter
Adds the target of the call. This method is called by CallEvent#export(Exporter).

Specified by:
addTarget in interface CallEvent.Exporter
Parameters:
target - the caller

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(JiveSearchPattern pattern)
Returns whether the event is a method call represented by the supplied JiveSearchPattern.

Parameters:
pattern - the pattern to check against
Returns:
true if the method call can be associated with the pattern, false otherwise

JIVE Platform
Release 0.2.2