th.co.edge.jseq
Class MethodFilter

java.lang.Object
  extended by th.co.edge.jseq.MethodFilter
All Implemented Interfaces:
ActivationList.Filter

public class MethodFilter
extends java.lang.Object
implements ActivationList.Filter

A Filter that accepts only methods with a given fully qualified name.


Constructor Summary
MethodFilter(java.lang.String method)
          Creates a new MethodFilter that only accepts methods with the given fully qualified name.
 
Method Summary
 boolean accept(Activation activation)
          Returns true if and only if the given activation is a call to a method with the fully qualified name given when creating this MethodFilter.
 java.lang.String getClassName()
          Returns the class name associated with this MethodFilter.
 java.lang.String getMethodName()
          Returns the unqualified method name associated with this MethodFilter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodFilter

public MethodFilter(java.lang.String method)
Creates a new MethodFilter that only accepts methods with the given fully qualified name. Only exact matches are accepted, there is no wild-card expansion.

Parameters:
method - the fully qualified method name to accept
Method Detail

accept

public boolean accept(Activation activation)
Returns true if and only if the given activation is a call to a method with the fully qualified name given when creating this MethodFilter.

Specified by:
accept in interface ActivationList.Filter
Parameters:
activation - the Activation to check
Returns:
true if activation represents a call to a method with the name associated with this MethodFilter, false otherwise

getClassName

public java.lang.String getClassName()
Returns the class name associated with this MethodFilter.

Returns:
the class name associated with this MethodFilter

getMethodName

public java.lang.String getMethodName()
Returns the unqualified method name associated with this MethodFilter.

Returns:
the unqualified method name associated with this MethodFilter


Copyright © 2008 Edge Software, Co., Ltd.. All Rights Reserved.