Class BasicReflectionMatchers

java.lang.Object
org.tudalgo.algoutils.tutor.general.match.BasicReflectionMatchers

public class BasicReflectionMatchers extends Object
  • Method Details

    • sameType

      public static <T extends WithType> Matcher<T> sameType(TypeLink link)
    • sameTypes

      public static <T extends WithTypeList> Matcher<T> sameTypes(TypeLink... types)

      A matcher matching an object if the object has the same types as given.

      Parameters:
      types - the types
      Returns:
      the matcher
    • hasModifiers

      public static <T extends WithModifiers> Matcher<T> hasModifiers(Modifier... modifiers)

      A matcher matching an object if the object has at least the given modifiers.

      Type Parameters:
      T - the type of object to match
      Parameters:
      modifiers - the modifiers
      Returns:
      the matcher