randoop.util
Class DefaultReflectionFilter

Object
  extended by DefaultReflectionFilter
All Implemented Interfaces:
ReflectionFilter

public class DefaultReflectionFilter
extends Object
implements ReflectionFilter

Returns true for public members, with some exceptions (see doNotUseSpecialCase method). If a method has the @CheckRep annotation, returns false (the method will be used as a contract checker, not as a method under test).


Constructor Summary
Constructor and Description
DefaultReflectionFilter(Pattern omitmethods)
          omitmethods can be null (which means "omit no methods")
 
Method Summary
Modifier and Type Method and Description
 boolean canUse(Class<?> c)
           
 boolean canUse(Constructor<?> c)
           
 boolean canUse(Method m)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReflectionFilter

public DefaultReflectionFilter(Pattern omitmethods)
omitmethods can be null (which means "omit no methods")

Method Detail

canUse

public boolean canUse(Class<?> c)
Specified by:
canUse in interface ReflectionFilter

canUse

public boolean canUse(Method m)
Specified by:
canUse in interface ReflectionFilter

canUse

public boolean canUse(Constructor<?> c)
Specified by:
canUse in interface ReflectionFilter