Package org.testng.internal.reflect
Class DirectMethodMatcher
- java.lang.Object
-
- org.testng.internal.reflect.AbstractMethodMatcher
-
- org.testng.internal.reflect.AbstractNodeMethodMatcher
-
- org.testng.internal.reflect.DirectMethodMatcher
-
- All Implemented Interfaces:
MethodMatcher
public class DirectMethodMatcher extends AbstractNodeMethodMatcher
Checks for method argument match with or without filtering injectables.
-
-
Constructor Summary
Constructors Constructor Description DirectMethodMatcher(MethodMatcherContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.util.Set<InjectableParameter>>getConformanceInjectsOrder()protected booleanmatch(Parameter[] parameters, java.lang.Object[] arguments)Checks if its possible to gives an array consumable by java method invoker.protected java.lang.Object[]matchingArguments(Parameter[] parameters, java.lang.Object[] arguments)If possible gives an array consumable by java method invoker.-
Methods inherited from class org.testng.internal.reflect.AbstractNodeMethodMatcher
getConformingArguments, getConformingParameters, hasConformance
-
Methods inherited from class org.testng.internal.reflect.AbstractMethodMatcher
conforms, getConforms, getContext
-
-
-
-
Constructor Detail
-
DirectMethodMatcher
public DirectMethodMatcher(MethodMatcherContext context)
-
-
Method Detail
-
getConformanceInjectsOrder
protected java.util.List<java.util.Set<InjectableParameter>> getConformanceInjectsOrder()
- Specified by:
getConformanceInjectsOrderin classAbstractNodeMethodMatcher- Returns:
- injects to check against.
-
match
protected boolean match(Parameter[] parameters, java.lang.Object[] arguments)
Checks if its possible to gives an array consumable by java method invoker.- Specified by:
matchin classAbstractNodeMethodMatcher- Parameters:
parameters- array of parameter instances under question.arguments- instances to be verified.- Returns:
- matches or not
-
matchingArguments
protected java.lang.Object[] matchingArguments(Parameter[] parameters, java.lang.Object[] arguments)
If possible gives an array consumable by java method invoker.- Specified by:
matchingArgumentsin classAbstractNodeMethodMatcher- Parameters:
parameters- array of parameter instances under question.arguments- instances to conform.- Returns:
- conforming argument array
-
-