本文整理汇总了Java中gherkin.ast.Step.getKeyword方法的典型用法代码示例。如果您正苦于以下问题:Java Step.getKeyword方法的具体用法?Java Step.getKeyword怎么用?Java Step.getKeyword使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gherkin.ast.Step
的用法示例。
在下文中一共展示了Step.getKeyword方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: concreteStep
import gherkin.ast.Step; //导入方法依赖的package包/类
private Step concreteStep(Step abstractStep, Map<String, String> parameters)
{
String text = abstractStep.getText();
for (Entry<String, String> entry : parameters.entrySet())
{
String target = String.format("<%s>", entry.getKey());
String replacement = entry.getValue();
text = text.replace(target, replacement);
}
return new Step(
abstractStep.getLocation(),
abstractStep.getKeyword(),
text,
abstractStep.getArgument());
}
示例2: pickleStepLocation
import gherkin.ast.Step; //导入方法依赖的package包/类
private PickleLocation pickleStepLocation(Step step, String path) {
return new PickleLocation(
path,
step.getLocation().getLine(),
step.getLocation().getColumn() + (step.getKeyword() != null ? SymbolCounter.countSymbols(step.getKeyword()) : 0)
);
}
示例3: getNormalizedKeyword
import gherkin.ast.Step; //导入方法依赖的package包/类
protected String getNormalizedKeyword(Step step) {
String keyword = step.getKeyword();
return null == keyword ? null : keyword.trim();
}
示例4: getKeyword
import gherkin.ast.Step; //导入方法依赖的package包/类
protected String getKeyword(Step step) {
String keyword = step.getKeyword();
return null == keyword ? "" : keyword.trim();
}
示例5: getUnimplemented
import gherkin.ast.Step; //导入方法依赖的package包/类
protected UnimplementedStep getUnimplemented(Step step) {
String keyword = step.getKeyword();
return new UnimplementedStep(null == keyword ? "" : keyword.trim());
}
示例6: addKeyword
import gherkin.ast.Step; //导入方法依赖的package包/类
protected void addKeyword(Step step) {
String keyword = step.getKeyword();
serialized.addProperty("keyword", keyword);
}
示例7: getDescription
import gherkin.ast.Step; //导入方法依赖的package包/类
private String getDescription(Step step) {
if (step.getArgument() != null && step.getArgument() instanceof DocString) {
return ((DocString) step.getArgument()).getContent();
}
return step.getKeyword() + " " + step.getText();
}
示例8: pickleStepLocation
import gherkin.ast.Step; //导入方法依赖的package包/类
private PickleLocation pickleStepLocation(Step step) {
return new PickleLocation(
step.getLocation().getLine(),
step.getLocation().getColumn() + (step.getKeyword() != null ? SymbolCounter.countSymbols(step.getKeyword()) : 0)
);
}