cucumber.runtime
Class RuntimeWorld

java.lang.Object
  extended by cucumber.runtime.RuntimeWorld
All Implemented Interfaces:
World

public class RuntimeWorld
extends java.lang.Object
implements World


Constructor Summary
RuntimeWorld(Runtime runtime, java.util.Collection<java.lang.String> tags)
           
 
Method Summary
 void addAfterHook(HookDefinition hookDefinition)
           
 void addBeforeHook(HookDefinition hookDefinition)
           
 void addStepDefinition(StepDefinition stepDefinition)
           
 void buildBackendWorldsAndRunBeforeHooks(gherkin.formatter.Reporter reporter)
           
 java.util.List<HookDefinition> getAfterHooks()
           
 java.util.List<HookDefinition> getBeforeHooks()
           
 java.util.List<StepDefinition> getStepDefinitions()
           
 void runAfterHooksAndDisposeBackendWorlds(gherkin.formatter.Reporter reporter)
           
 void runStep(java.lang.String uri, gherkin.formatter.model.Step step, gherkin.formatter.Reporter reporter, java.util.Locale locale)
           
 void runUnreportedStep(java.lang.String uri, java.util.Locale locale, java.lang.String stepKeyword, java.lang.String stepName, int line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeWorld

public RuntimeWorld(Runtime runtime,
                    java.util.Collection<java.lang.String> tags)
Method Detail

buildBackendWorldsAndRunBeforeHooks

public void buildBackendWorldsAndRunBeforeHooks(gherkin.formatter.Reporter reporter)
Specified by:
buildBackendWorldsAndRunBeforeHooks in interface World

runAfterHooksAndDisposeBackendWorlds

public void runAfterHooksAndDisposeBackendWorlds(gherkin.formatter.Reporter reporter)
Specified by:
runAfterHooksAndDisposeBackendWorlds in interface World

runUnreportedStep

public void runUnreportedStep(java.lang.String uri,
                              java.util.Locale locale,
                              java.lang.String stepKeyword,
                              java.lang.String stepName,
                              int line)
                       throws java.lang.Throwable
Specified by:
runUnreportedStep in interface World
Throws:
java.lang.Throwable

runStep

public void runStep(java.lang.String uri,
                    gherkin.formatter.model.Step step,
                    gherkin.formatter.Reporter reporter,
                    java.util.Locale locale)
Specified by:
runStep in interface World

addStepDefinition

public void addStepDefinition(StepDefinition stepDefinition)
Specified by:
addStepDefinition in interface World

addBeforeHook

public void addBeforeHook(HookDefinition hookDefinition)
Specified by:
addBeforeHook in interface World

addAfterHook

public void addAfterHook(HookDefinition hookDefinition)
Specified by:
addAfterHook in interface World

getBeforeHooks

public java.util.List<HookDefinition> getBeforeHooks()
Specified by:
getBeforeHooks in interface World

getAfterHooks

public java.util.List<HookDefinition> getAfterHooks()
Specified by:
getAfterHooks in interface World

getStepDefinitions

public java.util.List<StepDefinition> getStepDefinitions()
Specified by:
getStepDefinitions in interface World