Class AbstractNodeMethodMatcher

java.lang.Object
org.testng.internal.reflect.AbstractMethodMatcher
org.testng.internal.reflect.AbstractNodeMethodMatcher
All Implemented Interfaces:
MethodMatcher
Direct Known Subclasses:
ArrayEndingMethodMatcher, DirectMethodMatcher

public abstract class AbstractNodeMethodMatcher extends AbstractMethodMatcher
  • Field Details

    • conformingParameters

      private Parameter[] conformingParameters
  • Constructor Details

  • Method Details

    • getConformingParameters

      protected Parameter[] getConformingParameters()
    • hasConformance

      protected boolean hasConformance()
      Checks if the arguments conform to the method.
      Specified by:
      hasConformance in class AbstractMethodMatcher
      Returns:
      conformance
    • getConformanceInjectsOrder

      protected abstract List<Set<InjectableParameter>> getConformanceInjectsOrder()
      Returns:
      injects to check against.
    • match

      protected abstract boolean match(Parameter[] parameters, Object[] arguments)
      Checks if its possible to gives an array consumable by java method invoker.
      Parameters:
      parameters - array of parameter instances under question.
      arguments - instances to be verified.
      Returns:
      matches or not
    • getConformingArguments

      public Object[] getConformingArguments()
      If possible gives an array consumable by java method invoker.
      Returns:
      conforming argument array
    • matchingArguments

      protected abstract Object[] matchingArguments(Parameter[] parameters, Object[] arguments)
      If possible gives an array consumable by java method invoker.
      Parameters:
      parameters - array of parameter instances under question.
      arguments - instances to conform.
      Returns:
      conforming argument array