org.apache.hivemind.methodmatch
Class CompositeFilter

java.lang.Object
  extended by org.apache.hivemind.methodmatch.MethodFilter
      extended by org.apache.hivemind.methodmatch.CompositeFilter

public class CompositeFilter
extends MethodFilter

Runs a suite of MethodFilters, returning true only if each filter does. The tests short-circuit with the first filter to return false.

Author:
Howard Lewis Ship

Constructor Summary
CompositeFilter(java.util.List filters)
          Creates a new composite filter; the list passed in is retained not copied and should not be changed futher by the caller.
 
Method Summary
 boolean matchMethod(MethodSignature sig)
          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

CompositeFilter

public CompositeFilter(java.util.List filters)
Creates a new composite filter; the list passed in is retained not copied and should not be changed futher by the caller.

Parameters:
filters - List of MethodFilter.
Method Detail

matchMethod

public boolean matchMethod(MethodSignature sig)
Description copied from class: MethodFilter
Analyzes the method (its name, its parameters, etc.) and returns true if the method matches the filter defined by a subclass. Returns false otherwise.

Specified by:
matchMethod in class MethodFilter