org.specs2.specification

Fragments

object Fragments extends Serializable

Utility methods for fragments

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Fragments
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(t: SpecName): Fragments

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def create(fs: Fragment*): Fragments

    returns

    a Fragments object, where the SpecStart might be provided by the passed fragments

  10. def createList(fs: Fragment*): Fragments

    returns

    a Fragments object containing only a seq of Fragments.

  11. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. implicit def fragmentsIsMonoid: Monoid[Fragments] { val zero: org.specs2.specification.Fragments }

    Fragments can be added as a monoid

  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. def isABr: PartialFunction[Fragment, Fragment]

    returns

    the step if the Fragment is a Br fragment

  18. def isASpecEnd: PartialFunction[Fragment, Fragment]

    returns

    the spec end if the Fragment is a SpecEnd

  19. def isASpecStart: PartialFunction[Fragment, SpecStart]

    returns

    the spec start if the Fragment is a SpecStart

  20. def isAStep: PartialFunction[Fragment, Step]

    returns

    the step if the Fragment is a Step

  21. def isAnAction: PartialFunction[Fragment, Action]

    returns

    the action if the Fragment is an Actino

  22. def isAnEnd: PartialFunction[Fragment, Fragment]

    returns

    the step if the Fragment is an End fragment

  23. def isAnExample: PartialFunction[Fragment, Example]

    returns

    the example if the Fragment is an Example

  24. def isBr: (Fragment) ⇒ Boolean

    returns

    the step if the Fragment is a Br fragment

  25. def isExample: Function[Fragment, Boolean]

    returns

    true if the Fragment is an Example

  26. def isExampleOrStep: Function[Fragment, Boolean]

    returns

    true if the Fragment is an Example or a Step

  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def isSomeTag: PartialFunction[Fragment, TaggingFragment]

    returns

    the text if the Fragment is a TaggingFragment

  29. def isSomeText: PartialFunction[Fragment, Text]

    returns

    the text if the Fragment is a Text

  30. def isSpecEnd: Function[Fragment, Boolean]

    returns

    true if the Fragment is a SpecEnd

  31. def isSpecStart: Function[Fragment, Boolean]

    returns

    true if the Fragment is a SpecStart

  32. def isSpecStartOrEnd: Function[Fragment, Boolean]

    returns

    true if the Fragment is a SpecStart or a SpecEnd

  33. def isStep: Function[Fragment, Boolean]

    returns

    true if the Fragment is a step

  34. def isText: Function[Fragment, Boolean]

    returns

    true if the Fragment is a Text

  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  39. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def withCreationPaths(fragments: Fragments): Fragments

    returns

    a Fragments object with creation paths set on Examples and Actions

    The path of a Fragment is either:

    • set at construction time when it comes from a mutable specification
    • its index in the sequence of fragments for an acceptance specification
  44. def withSpecName(fragments: Fragments, s: SpecificationStructure): Fragments

    returns

    a Fragments object with the appropriate name set on the SpecStart fragment

    That name is derived from the specification structure name

  45. def withSpecName(fragments: Fragments, name: SpecName): Fragments

    returns

    a Fragments object with the appropriate name set on the SpecStart fragment

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped