randoop.util
Class DefaultReflectionFilter
Object
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
DefaultReflectionFilter(Pattern omitmethods)
omitmethods can be null (which means "omit no methods") |
Method Summary
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 |
DefaultReflectionFilter
public DefaultReflectionFilter(Pattern omitmethods)
- omitmethods can be null (which means "omit no methods")
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