Package com.thoughtworks.gauge.registry
Class StepRegistry
- java.lang.Object
-
- com.thoughtworks.gauge.registry.StepRegistry
-
public class StepRegistry extends Object
-
-
Constructor Summary
Constructors Constructor Description StepRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStep(StepValue stepValue, StepRegistryEntry entry)voidaddStepImplementation(StepValue stepValue, Method method, boolean isExternal)voidclear()booleancontains(String stepTemplateText)StepRegistryEntryget(String stepTemplateText)List<String>getAllStepAnnotationTexts()StringgetFileName(String oldStepText)StepRegistryEntrygetForCurrentProject(String stepTemplateText, Method method)List<Messages.StepPositionsResponse.StepPosition>getStepPositions(String filePath)booleanhasMultipleImplementations(String stepToValidate)booleanisFileCached(String fileName)List<String>keys()voidremove(String stepTemplateText)voidremoveSteps(String fileName)
-
-
-
Method Detail
-
addStepImplementation
public void addStepImplementation(StepValue stepValue, Method method, boolean isExternal)
-
clear
public void clear()
-
contains
public boolean contains(String stepTemplateText)
-
get
public StepRegistryEntry get(String stepTemplateText)
-
getForCurrentProject
public StepRegistryEntry getForCurrentProject(String stepTemplateText, Method method)
-
remove
public void remove(String stepTemplateText)
-
removeSteps
public void removeSteps(String fileName)
-
addStep
public void addStep(StepValue stepValue, StepRegistryEntry entry)
-
hasMultipleImplementations
public boolean hasMultipleImplementations(String stepToValidate)
-
getStepPositions
public List<Messages.StepPositionsResponse.StepPosition> getStepPositions(String filePath)
-
isFileCached
public boolean isFileCached(String fileName)
-
-