Package org.testng.internal.reflect
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
-
-
Constructor Summary
Constructors Constructor Description AbstractNodeMethodMatcher(MethodMatcherContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.List<java.util.Set<InjectableParameter>>
getConformanceInjectsOrder()
java.lang.Object[]
getConformingArguments()
If possible gives an array consumable by java method invoker.protected Parameter[]
getConformingParameters()
protected boolean
hasConformance()
Checks if the arguments conform to the method.protected abstract boolean
match(Parameter[] parameters, java.lang.Object[] arguments)
Checks if its possible to gives an array consumable by java method invoker.protected abstract 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.AbstractMethodMatcher
conforms, getConforms, getContext
-
-
-
-
Constructor Detail
-
AbstractNodeMethodMatcher
public AbstractNodeMethodMatcher(MethodMatcherContext context)
-
-
Method Detail
-
getConformingParameters
protected Parameter[] getConformingParameters()
-
hasConformance
protected boolean hasConformance()
Checks if the arguments conform to the method.- Specified by:
hasConformance
in classAbstractMethodMatcher
- Returns:
- conformance
-
getConformanceInjectsOrder
protected abstract java.util.List<java.util.Set<InjectableParameter>> getConformanceInjectsOrder()
- Returns:
- injects to check against.
-
match
protected abstract boolean match(Parameter[] parameters, java.lang.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 java.lang.Object[] getConformingArguments()
If possible gives an array consumable by java method invoker.- Returns:
- conforming argument array
-
matchingArguments
protected abstract java.lang.Object[] matchingArguments(Parameter[] parameters, java.lang.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
-
-