Class

cucumber.runtime.scala

ScalaStepDefinition

Related Doc: package scala

Permalink

class ScalaStepDefinition extends StepDefinition

Implementation of step definition for scala.

Linear Supertypes
StepDefinition, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaStepDefinition
  2. StepDefinition
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaStepDefinition(frame: StackTraceElement, name: String, pattern: String, parameterInfos: Array[Type], f: (List[Any]) ⇒ Any)

    Permalink

    frame

    Representation of a stack frame containing information about the context in which a step was defined. Allows retrospective queries about the definition of a step.

    name

    The name of the step definition class, e.g. cucumber.runtime.scala.test.CukesStepDefinitions

    pattern

    The regex matcher that defines the cucumber step, e.g. /I eat (.*) cukes$/

    f

    Function body of a step definition. This is what actually runs the code within the step def.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def execute(args: Array[AnyRef]): Unit

    Permalink

    Invokes the step definition.

    Invokes the step definition. The method should raise a Throwable if the invocation fails, which will cause the step to fail.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getLocation(detail: Boolean): String

    Permalink

    The source line where the step definition is defined.

    The source line where the step definition is defined. Example: foo/bar/Zap.brainfuck:42

    detail

    true if extra detailed location information should be included.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  12. def getParameterCount(): Integer

    Permalink

    How many declared parameters this stepdefinition has.

    How many declared parameters this stepdefinition has. Returns null if unknown.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  13. def getParameterType(index: Int, javaType: Type): Type

    Permalink

    The parameter type at index n.

    The parameter type at index n. A hint about the raw parameter type is passed to make it easier for the implementation to make a guess based on runtime information. As Scala is a statically typed language, the javaType parameter is ignored

  14. def getPattern(): String

    Permalink

    returns

    the pattern associated with this instance. Used for error reporting only.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def isDefinedAt(stackTraceElement: StackTraceElement): Boolean

    Permalink

    Return true if this matches the location.

    Return true if this matches the location. This is used to filter stack traces.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isScenarioScoped(): Boolean

    Permalink
    Definition Classes
    ScalaStepDefinition → StepDefinition
  19. def matchedArguments(step: PickleStep): List[Argument]

    Permalink

    Returns a list of arguments.

    Returns a list of arguments. Return null if the step definition doesn't match at all. Return an empty List if it matches with 0 arguments and bigger sizes if it matches several.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StepDefinition

Inherited from AnyRef

Inherited from Any

Ungrouped