Top Fields Constructors Methods
org.testng.internal.reflect

public abstract Class AbstractNodeMethodMatcher

extends AbstractMethodMatcher
Class Inheritance
Known Direct Subclasses
org.testng.internal.reflect.ArrayEndingMethodMatcher, org.testng.internal.reflect.DirectMethodMatcher
Imports
java.lang.reflect.Parameter, java.util.List, .Set

Field Summary

Modifier and TypeField and Description
private Parameter[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract List<Set<InjectableParameter>>

Returns:

injects to check against.
getConformanceInjectsOrder
()

public Object[]
getConformingArguments()

Implements org.testng.internal.reflect.MethodMatcher.getConformingArguments.

If possible gives an array consumable by java method invoker.
protected Parameter[]
protected boolean
hasConformance()

Implements abstract org.testng.internal.reflect.AbstractMethodMatcher.hasConformance.

Checks if the arguments conform to the method.
protected abstract boolean

Returns:

matches or not
match
(final Parameter[]
array of parameter instances under question.
parameters
,
final Object[]
instances to be verified.
arguments
)

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

protected abstract Object[]

Returns:

conforming argument array
matchingArguments
(final Parameter[]
array of parameter instances under question.
parameters
,
final Object[]
instances to conform.
arguments
)

If possible gives an array consumable by java method invoker.

Inherited from org.testng.internal.reflect.AbstractMethodMatcher:
conformsgetConformsgetContext

Field Detail

conformingParametersback to summary
private Parameter[] conformingParameters

Constructor Detail

AbstractNodeMethodMatcherback to summary
public AbstractNodeMethodMatcher(final MethodMatcherContext context)

Method Detail

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

injects to check against.

getConformingArgumentsback to summary
public Object[] getConformingArguments()

Implements org.testng.internal.reflect.MethodMatcher.getConformingArguments.

Doc from org.testng.internal.reflect.MethodMatcher.getConformingArguments.

If possible gives an array consumable by java method invoker.

Returns:Object[]

conforming argument array

Annotations
@Override
getConformingParametersback to summary
protected Parameter[] getConformingParameters()
hasConformanceback to summary
protected boolean hasConformance()

Implements abstract org.testng.internal.reflect.AbstractMethodMatcher.hasConformance.

Doc from org.testng.internal.reflect.AbstractMethodMatcher.hasConformance.

Checks if the arguments conform to the method.

Returns:boolean

conformance

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

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

matchingArgumentsback to summary
protected abstract Object[] matchingArguments(final Parameter[] parameters, final Object[] arguments)

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