Class ParserError.UnexpectedToken

java.lang.Object
io.cucumber.gherkin.ParserError
io.cucumber.gherkin.ParserError.UnexpectedToken
Enclosing class:
ParserError

static final class ParserError.UnexpectedToken extends ParserError
  • Field Details

    • receivedToken

      final Token receivedToken
    • expectedTokenTypes

      final List<String> expectedTokenTypes
    • stateComment

      final String stateComment
  • Constructor Details

    • UnexpectedToken

      UnexpectedToken(Token receivedToken, List<String> expectedTokenTypes, String stateComment)
  • Method Details

    • getMessage

      private static String getMessage(Token receivedToken, List<String> expectedTokenTypes)
    • getLocation

      private static io.cucumber.messages.types.Location getLocation(Token receivedToken)