Search in sources :

Example 1 with IType

use of gw.lang.reflect.IType in project cucumber-jvm by cucumber.

the class GosuStepDefinition method getParameterInfos.

private List<ParameterInfo> getParameterInfos() {
    IType[] parameterTypes = block.getFunctionType().getParameterTypes();
    List<ParameterInfo> result = new ArrayList<ParameterInfo>(parameterTypes.length);
    for (IType parameterType : parameterTypes) {
        // TODO: Can we get more info from the parameterType?
        result.add(new ParameterInfo(String.class, null, null, null));
    }
    return result;
}
Also used : ArrayList(java.util.ArrayList) ParameterInfo(cucumber.runtime.ParameterInfo) IType(gw.lang.reflect.IType)

Aggregations

ParameterInfo (cucumber.runtime.ParameterInfo)1 IType (gw.lang.reflect.IType)1 ArrayList (java.util.ArrayList)1