Package io.cucumber.java
Class JavaStepDefinition
java.lang.Object
io.cucumber.java.AbstractGlueDefinition
io.cucumber.java.JavaStepDefinition
- All Implemented Interfaces:
Located,StepDefinition
-
Field Summary
FieldsFields inherited from class io.cucumber.java.AbstractGlueDefinition
method -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokes the step definition.Return the pattern associated with this instance.Return parameter information.Methods inherited from class io.cucumber.java.AbstractGlueDefinition
getLocation, getSourceReference, invokeMethod, isDefinedAtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cucumber.core.backend.Located
getLocation, getSourceReference, isDefinedAt
-
Field Details
-
expression
-
parameterInfos
-
-
Constructor Details
-
JavaStepDefinition
-
-
Method Details
-
execute
Description copied from interface:StepDefinitionInvokes the step definition. The method should raise a Throwable if the invocation fails, which will cause the step to fail.- Specified by:
executein interfaceStepDefinition- Parameters:
args- The arguments for the step
-
parameterInfos
Description copied from interface:StepDefinitionReturn parameter information.- Specified by:
parameterInfosin interfaceStepDefinition- Returns:
- parameter information, may not return null
-
getPattern
Description copied from interface:StepDefinitionReturn the pattern associated with this instance. Used for error reporting only.- Specified by:
getPatternin interfaceStepDefinition- Returns:
- the pattern associated with this instance.
-