cucumber.runtime.java
Class JavaStepDefinition

java.lang.Object
  extended by cucumber.runtime.java.JavaStepDefinition
All Implemented Interfaces:
StepDefinition

public class JavaStepDefinition
extends Object
implements StepDefinition


Constructor Summary
JavaStepDefinition(Method method, Pattern pattern, int timeout, ObjectFactory objectFactory)
           
 
Method Summary
 void execute(gherkin.I18n i18n, Object[] args)
           
 String getLocation(boolean detail)
           
 Integer getParameterCount()
           
 ParameterType getParameterType(int n, Type argumentType)
           
 String getPattern()
           
 boolean isDefinedAt(StackTraceElement e)
           
 List<gherkin.formatter.Argument> matchedArguments(gherkin.formatter.model.Step step)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaStepDefinition

public JavaStepDefinition(Method method,
                          Pattern pattern,
                          int timeout,
                          ObjectFactory objectFactory)
Method Detail

execute

public void execute(gherkin.I18n i18n,
                    Object[] args)
             throws Throwable
Specified by:
execute in interface StepDefinition
Throws:
Throwable

matchedArguments

public List<gherkin.formatter.Argument> matchedArguments(gherkin.formatter.model.Step step)
Specified by:
matchedArguments in interface StepDefinition

getLocation

public String getLocation(boolean detail)
Specified by:
getLocation in interface StepDefinition

getParameterCount

public Integer getParameterCount()
Specified by:
getParameterCount in interface StepDefinition

getParameterType

public ParameterType getParameterType(int n,
                                      Type argumentType)
Specified by:
getParameterType in interface StepDefinition

isDefinedAt

public boolean isDefinedAt(StackTraceElement e)
Specified by:
isDefinedAt in interface StepDefinition

getPattern

public String getPattern()
Specified by:
getPattern in interface StepDefinition


Copyright © 2012. All Rights Reserved.