com.googlecode.lightest.core.filter
Class AndFilter

java.lang.Object
  extended by com.googlecode.lightest.core.filter.AndFilter
All Implemented Interfaces:
ITestFilter, groovy.lang.GroovyObject

public class AndFilter
extends Object
implements groovy.lang.GroovyObject, ITestFilter

Returns the result of a logical AND on two sub-filters.


Constructor Summary
AndFilter(ITestFilter filter1, ITestFilter filter2)
          We would use varargs, but Java doesn't like Groovy varargs.
 
Method Summary
 String filterString()
          Returns a canonical String representation of the filter.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 boolean test(Method m)
          Returns true if the method passes the filter, and false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndFilter

public AndFilter(ITestFilter filter1,
                 ITestFilter filter2)
We would use varargs, but Java doesn't like Groovy varargs.

Method Detail

test

public boolean test(Method m)
Description copied from interface: ITestFilter
Returns true if the method passes the filter, and false otherwise.

Specified by:
test in interface ITestFilter
Parameters:
m - the method being filtered

filterString

public String filterString()
Description copied from interface: ITestFilter
Returns a canonical String representation of the filter.

Specified by:
filterString in interface ITestFilter

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2009. All Rights Reserved.