org.apache.hivemind.methodmatch
Class MethodFilter

java.lang.Object
  extended by org.apache.hivemind.methodmatch.MethodFilter
Direct Known Subclasses:
CompositeFilter, ExactNameFilter, InfixNameFilter, MatchAllFilter, NamePrefixFilter, NameSuffixFilter, ParameterCountFilter, ParameterFilter

public abstract class MethodFilter
extends java.lang.Object

Used by a MethodMatcher to see if a Method matches a particular (set of) requirements.

Author:
Howard Lewis Ship

Constructor Summary
MethodFilter()
           
 
Method Summary
abstract  boolean matchMethod(MethodSignature signature)
          Analyzes the method (its name, its parameters, etc.) and returns true if the method matches the filter defined by a subclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodFilter

public MethodFilter()
Method Detail

matchMethod

public abstract boolean matchMethod(MethodSignature signature)
Analyzes the method (its name, its parameters, etc.) and returns true if the method matches the filter defined by a subclass. Returns false otherwise.