cucumber.runtime.snippets
Class SnippetGenerator
java.lang.Object
cucumber.runtime.snippets.SnippetGenerator
public final class SnippetGenerator
- extends Object
Base class for generating snippets.
Subclasses can access common values:
- {0} : Keyword
- {1} : Regexp
- {2} : Function name
- {3} : Arguments
- {4} : Hint comment
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnippetGenerator
public SnippetGenerator(Snippet snippet)
getSnippet
public String getSnippet(gherkin.formatter.model.Step step)
patternFor
protected String patternFor(String stepName)
sanitizeFunctionName
protected String sanitizeFunctionName(String functionName)
argumentPatterns
protected ArgumentPattern[] argumentPatterns()
untypedArguments
public static String untypedArguments(List<Class<?>> argumentTypes)
Copyright © 2012. All Rights Reserved.