Top Description Constructors Methods
org.testng.internal.reflect

public Class ArrayEndingMethodMatcher

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

Checks for array ending method argument match with or without filtering injectables.
Author
Nitin Verma
See Also
ReflectionRecipes#matchArrayEnding(Class[], Object[])

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(final Parameter[]
array of parameter instances under question.
parameters
,
final 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

ArrayEndingMethodMatcherback to summary
public ArrayEndingMethodMatcher(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
See Also
ReflectionRecipes#matchArrayEnding(Class[], Object[])
matchingArgumentsback to summary
protected Object[] matchingArguments(final Parameter[] parameters, final 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