Top Description Constructors Methods
org.testng.internal.reflect

public Class DirectMethodMatcher

extends AbstractNodeMethodMatcher
Class Inheritance
Static Imports
org.testng.internal.reflect.InjectableParameter.Assistant.ALL_INJECTS, .InjectableParameter.Assistant.NONE

Checks for method argument match with or without filtering injectables.
Author
Nitin Verma

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected List<Set<InjectableParameter>>
protected boolean
match(final Parameter[]
array of parameter instances under question.
parameters
,
final Object[]
instances to be verified.
arguments
)

Implements abstract org.testng.internal.reflect.AbstractNodeMethodMatcher.match.

Checks if its possible to gives an array consumable by java method invoker.
protected Object[]
matchingArguments(Parameter[]
array of parameter instances under question.
parameters
,
Object[]
instances to conform.
arguments
)

Implements abstract org.testng.internal.reflect.AbstractNodeMethodMatcher.matchingArguments.

If possible gives an array consumable by java method invoker.
Inherited from org.testng.internal.reflect.AbstractNodeMethodMatcher:
getConformingArgumentsgetConformingParametershasConformance

Constructor Detail

DirectMethodMatcherback to summary
public DirectMethodMatcher(final MethodMatcherContext context)

Method Detail

getConformanceInjectsOrderback to summary
protected List<Set<InjectableParameter>> getConformanceInjectsOrder()

Implements abstract org.testng.internal.reflect.AbstractNodeMethodMatcher.getConformanceInjectsOrder.

Returns:List<Set<InjectableParameter>>

Doc from org.testng.internal.reflect.AbstractNodeMethodMatcher.getConformanceInjectsOrder.

injects to check against.

Annotations
@Override
matchback to summary
protected boolean match(final Parameter[] parameters, final Object[] arguments)

Implements abstract org.testng.internal.reflect.AbstractNodeMethodMatcher.match.

Doc from org.testng.internal.reflect.AbstractNodeMethodMatcher.match.

Checks if its possible to gives an array consumable by java method invoker.

Parameters
parameters:Parameter[]

array of parameter instances under question.

arguments:Object[]

instances to be verified.

Returns:boolean

matches or not

Annotations
@Override
matchingArgumentsback to summary
protected Object[] matchingArguments(Parameter[] parameters, Object[] arguments)

Implements abstract org.testng.internal.reflect.AbstractNodeMethodMatcher.matchingArguments.

Doc from org.testng.internal.reflect.AbstractNodeMethodMatcher.matchingArguments.

If possible gives an array consumable by java method invoker.

Parameters
parameters:Parameter[]

array of parameter instances under question.

arguments:Object[]

instances to conform.

Returns:Object[]

conforming argument array

Annotations
@Override