Package io.karatelabs.gherkin
Class Step
java.lang.Object
io.karatelabs.gherkin.Step
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StepfromKarateJson(Scenario scenario, Map<String, Object> map) intReturns the 0-indexed line in the feature file where the docstring content starts.intintgetIndex()intgetLine()intgetTable()getText()booleanbooleanisFake()booleanbooleanbooleanisPrint()booleanisSetup()voidparseAndUpdateFrom(String text) voidsetComments(List<String> comments) voidsetDocString(String docString) voidsetDocStringLine(int docStringLine) voidsetEndLine(int endLine) voidsetKeyword(String keyword) voidsetLine(int line) voidvoidvoidtoJson()toString()
-
Field Details
-
PREFIXES
-
-
Constructor Details
-
Step
-
Step
-
-
Method Details
-
parseAndUpdateFrom
-
getDebugInfo
-
isPrint
public boolean isPrint() -
isPrefixStar
public boolean isPrefixStar() -
getFeature
-
fromKarateJson
-
toJson
-
isBackground
public boolean isBackground() -
isOutline
public boolean isOutline() -
getIndex
public int getIndex() -
getLine
public int getLine() -
setLine
public void setLine(int line) -
getLineCount
public int getLineCount() -
getEndLine
public int getEndLine() -
setEndLine
public void setEndLine(int endLine) -
getPrefix
-
setPrefix
-
getKeyword
-
setKeyword
-
getText
-
setText
-
getDocString
-
setDocString
-
getDocStringLine
public int getDocStringLine()Returns the 0-indexed line in the feature file where the docstring content starts. Returns -1 if not set (e.g., when deserialized from JSON without this info). -
setDocStringLine
public void setDocStringLine(int docStringLine) -
getTable
-
setTable
-
getComments
-
setComments
-
isFake
public boolean isFake() -
isSetup
public boolean isSetup() -
toString
-