Package | Description |
---|---|
org.testng.internal.reflect |
Modifier and Type | Field and Description |
---|---|
private Parameter[] |
AbstractNodeMethodMatcher.conformingParameters |
private Parameter[] |
MethodMatcherContext.methodParameter |
Modifier and Type | Method and Description |
---|---|
static Parameter[] |
ReflectionRecipes.filter(Parameter[] parameters,
java.util.Set<InjectableParameter> filters)
Omits 1.
|
protected Parameter[] |
AbstractNodeMethodMatcher.getConformingParameters() |
static Parameter[] |
ReflectionRecipes.getConstructorParameters(java.lang.reflect.Constructor constructor)
Extracts constructor parameters.
|
Parameter[] |
MethodMatcherContext.getMethodParameter() |
static Parameter[] |
ReflectionRecipes.getMethodParameters(java.lang.reflect.Method method)
Extracts method parameters.
|
private static Parameter[] |
ReflectionRecipes.getParameters(java.lang.Class<?>[] parametersTypes,
java.lang.annotation.Annotation[][] parametersAnnotations) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
ReflectionRecipes.canInject(Parameter parameter,
InjectableParameter injectableParameter) |
static java.lang.Class<?>[] |
ReflectionRecipes.classesFromParameters(Parameter[] parameters)
Extracts class instances from parameters.
|
static boolean |
ReflectionRecipes.exactMatch(Parameter[] parameters,
java.lang.Object[] args)
Matches an array of parameters to an array of instances.
|
static Parameter[] |
ReflectionRecipes.filter(Parameter[] parameters,
java.util.Set<InjectableParameter> filters)
Omits 1.
|
private static java.lang.String |
MethodMatcherException.generateMessage(java.lang.String message,
java.lang.String name,
java.lang.String prefix,
Parameter[] parameter,
java.lang.Object[] args) |
static java.lang.Object[] |
ReflectionRecipes.inject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.reflect.Constructor constructor,
ITestContext context,
ITestResult testResult)
Injects appropriate arguments.
|
static java.lang.Object[] |
ReflectionRecipes.inject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.reflect.Method injectionMethod,
ITestContext context,
ITestResult testResult)
Injects appropriate arguments.
|
static boolean |
ReflectionRecipes.lenientMatch(Parameter[] parameters,
java.lang.Object[] args)
Matches an array of parameters to an array of instances.
|
protected boolean |
DirectMethodMatcher.match(Parameter[] parameters,
java.lang.Object[] arguments)
Checks if its possible to gives an array consumable by java method invoker.
|
protected abstract boolean |
AbstractNodeMethodMatcher.match(Parameter[] parameters,
java.lang.Object[] arguments)
Checks if its possible to gives an array consumable by java method invoker.
|
protected boolean |
ArrayEndingMethodMatcher.match(Parameter[] parameters,
java.lang.Object[] arguments)
Checks if its possible to gives an array consumable by java method invoker.
|
static boolean |
ReflectionRecipes.matchArrayEnding(Parameter[] parameters,
java.lang.Object[] param) |
protected java.lang.Object[] |
DirectMethodMatcher.matchingArguments(Parameter[] parameters,
java.lang.Object[] arguments)
If possible gives an array consumable by java method invoker.
|
protected abstract java.lang.Object[] |
AbstractNodeMethodMatcher.matchingArguments(Parameter[] parameters,
java.lang.Object[] arguments)
If possible gives an array consumable by java method invoker.
|
protected java.lang.Object[] |
ArrayEndingMethodMatcher.matchingArguments(Parameter[] parameters,
java.lang.Object[] arguments)
If possible gives an array consumable by java method invoker.
|
private static java.lang.Object[] |
ReflectionRecipes.nativelyInject(Parameter[] parameters,
java.util.Set<InjectableParameter> filters,
java.lang.Object[] args,
java.lang.Object injectionMethod,
ITestContext context,
ITestResult testResult) |