com.googlecode.lightest.core.filter
Class NotFilter

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

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

Negates the result of a wrapped filter.


Constructor Summary
NotFilter(ITestFilter filter)
           
 
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

NotFilter

public NotFilter(ITestFilter filter)
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.