StepParsers

org.specs2.specification.script.StepParsers
See theStepParsers companion object
trait StepParsers

StepParsers are using delimiters or regular expressions with groups to extract values from a piece of text and possibly strip it from delimiters if necessary

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object StepParser.type
object StepParsers.type

Members list

Type members

Classlikes

class ReadAs(regex: Regex, groups: Regex)

This class creates Given or Then extractors from a regular expression and a function

This class creates Given or Then extractors from a regular expression and a function

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[T](f: String => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def groupAs(groupRegex: String): ReadAs

factory method to create a Given or a Then element from a regex, using a regex denoting groups to extract

factory method to create a Given or a Then element from a regex, using a regex denoting groups to extract

Attributes

def readAs(regex: String): ReadAs

factory method to create a Given or a Then element from a regex

factory method to create a Given or a Then element from a regex

Attributes

def seq[T](f: Seq[String] => T)(using fpr: Regex): DelimitedStepParser[T]

Concrete fields

val extract: StepParser.type

Givens

Givens

given stepParserRegex: Regex