Package org.testng.internal.reflect
Class ArrayEndingMethodMatcher
- java.lang.Object
-
- org.testng.internal.reflect.AbstractMethodMatcher
-
- org.testng.internal.reflect.AbstractNodeMethodMatcher
-
- org.testng.internal.reflect.ArrayEndingMethodMatcher
-
- All Implemented Interfaces:
MethodMatcher
public class ArrayEndingMethodMatcher extends AbstractNodeMethodMatcher
Checks for array ending method argument match with or without filtering injectables.- Author:
- Nitin Verma
- See Also:
ReflectionRecipes.matchArrayEnding(Class[], Object[])
-
-
Constructor Summary
Constructors Constructor Description ArrayEndingMethodMatcher(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 boolean
match(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
-
ArrayEndingMethodMatcher
public ArrayEndingMethodMatcher(MethodMatcherContext context)
-
-
Method Detail
-
getConformanceInjectsOrder
protected java.util.List<java.util.Set<InjectableParameter>> getConformanceInjectsOrder()
- Specified by:
getConformanceInjectsOrder
in 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:
match
in classAbstractNodeMethodMatcher
- Parameters:
parameters
- array of parameter instances under question.arguments
- instances to be verified.- Returns:
- matches or not
- See Also:
ReflectionRecipes.matchArrayEnding(Class[], Object[])
-
matchingArguments
protected java.lang.Object[] matchingArguments(Parameter[] parameters, java.lang.Object[] arguments)
If possible gives an array consumable by java method invoker.- Specified by:
matchingArguments
in classAbstractNodeMethodMatcher
- Parameters:
parameters
- array of parameter instances under question.arguments
- instances to conform.- Returns:
- conforming argument array
-
-