protected class UnitilsStepCreator.MethodInvoker extends Object
StepCreator (private class))| Modifier and Type | Class and Description |
|---|---|
protected class |
UnitilsStepCreator.MethodInvoker.Parameter
Represents a parameter in a method.
|
| Constructor and Description |
|---|
UnitilsStepCreator.MethodInvoker(Method method,
org.jbehave.core.steps.ParameterConverters parameterConverters,
com.thoughtworks.paranamer.Paranamer paranamer,
org.jbehave.core.model.Meta meta)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
invoke()
invoke the method field.
|
protected UnitilsStepCreator.MethodInvoker.Parameter[] |
methodParameters()
All the parameters of a method.
|
protected String |
nameIfValidPositionInArray(String[] paramNames,
int paramPosition)
Get the name of a specific parameter on a specified position.
|
protected String |
parameterNameFor(int paramPosition,
String[] annotationNamedParameters,
String[] parameterNames)
Get the name of a specific parameter.
|
protected Object[] |
parameterValuesFrom(org.jbehave.core.model.Meta meta)
Get the parameter values from the
Meta data. |
public UnitilsStepCreator.MethodInvoker(Method method, org.jbehave.core.steps.ParameterConverters parameterConverters, com.thoughtworks.paranamer.Paranamer paranamer, org.jbehave.core.model.Meta meta)
method - : the MethodparameterConverters - : a ParameterConvertersparanamer - : a Paranamermeta - : the Meta defined in the story.public void invoke()
throws InvocationTargetException,
IllegalAccessException
protected UnitilsStepCreator.MethodInvoker.Parameter[] methodParameters()
UnitilsStepCreator.MethodInvoker.Parameterprotected String parameterNameFor(int paramPosition, String[] annotationNamedParameters, String[] parameterNames)
paramPosition - : the position of the wanted parameter.annotationNamedParameters - : parameters from an annotation.parameterNames - : all the parameters.Stringprotected String nameIfValidPositionInArray(String[] paramNames, int paramPosition)
paramNames - : all the parameters.paramPosition - : the position of the wanted parameter.StringCopyright © 2015. All Rights Reserved.