Package io.cucumber.gherkin
Class GherkinLine
- java.lang.Object
-
- io.cucumber.gherkin.GherkinLine
-
- All Implemented Interfaces:
IGherkinLine
public class GherkinLine extends Object implements IGherkinLine
-
-
Constructor Summary
Constructors Constructor Description GherkinLine(String lineText, int line)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetach()StringgetLineText(int indentToRemove)StringgetRestTrimmed(int length)List<GherkinLineSpan>getTableCells()List<GherkinLineSpan>getTags()intindent()booleanisEmpty()booleanstartsWith(String prefix)booleanstartsWithTitleKeyword(String text)
-
-
-
Constructor Detail
-
GherkinLine
public GherkinLine(String lineText, int line)
-
-
Method Detail
-
indent
public int indent()
- Specified by:
indentin interfaceIGherkinLine
-
detach
public void detach()
- Specified by:
detachin interfaceIGherkinLine
-
getLineText
public String getLineText(int indentToRemove)
- Specified by:
getLineTextin interfaceIGherkinLine
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceIGherkinLine
-
startsWith
public boolean startsWith(String prefix)
- Specified by:
startsWithin interfaceIGherkinLine
-
getRestTrimmed
public String getRestTrimmed(int length)
- Specified by:
getRestTrimmedin interfaceIGherkinLine
-
getTags
public List<GherkinLineSpan> getTags()
- Specified by:
getTagsin interfaceIGherkinLine
-
getTableCells
public List<GherkinLineSpan> getTableCells()
- Specified by:
getTableCellsin interfaceIGherkinLine
-
startsWithTitleKeyword
public boolean startsWithTitleKeyword(String text)
- Specified by:
startsWithTitleKeywordin interfaceIGherkinLine
-
-