Interface ReflectionPredicate

All Known Implementing Classes:
DefaultReflectionPredicate, EverythingAllowedPredicate

public interface ReflectionPredicate
Methods that indicate whether a class, method, constructor, or field should be used in Randoop's exploration.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(Class<?> c)
    Indicate whether Randoop should use a class.
    boolean
    Indicate whether Randoop should use a constructor.
    boolean
    Indicate whether Randoop should use a field.
    boolean
    Indicate whether Randoop should use a method.
  • Method Details

    • test

      boolean test(Class<?> c)
      Indicate whether Randoop should use a class.
      Parameters:
      c - the class to test
      Returns:
      true if the class meets the predicate criteria, false otherwise
    • test

      boolean test(Method m)
      Indicate whether Randoop should use a method.
      Parameters:
      m - the method to test
      Returns:
      true if the method meets the predicate criteria, false otherwise
    • test

      boolean test(Constructor<?> m)
      Indicate whether Randoop should use a constructor.
      Parameters:
      m - the constructor to test
      Returns:
      true if the constructor meets the predicate criteria, false otherwise
    • test

      boolean test(Field f)
      Indicate whether Randoop should use a field.
      Parameters:
      f - the field to test
      Returns:
      true if the field meets the predicate criteria, false otherwise