Object/Class

org.specs2.specification

Fragments

Related Docs: class Fragments | package specification

Permalink

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
Visibility
  1. Public
  2. All

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. def apply(t: SpecName): Fragments

    Permalink
  5. final def asInstanceOf[T0]: T0

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

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

    Permalink

    returns

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

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

    Permalink

    returns

    a Fragments object containing only a seq of Fragments.

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

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

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

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

    Permalink

    Fragments can be added as a monoid

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

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

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

    Permalink

    returns

    the step if the Fragment is a Br fragment

  16. def isASpecEnd: PartialFunction[Fragment, Fragment]

    Permalink

    returns

    the spec end if the Fragment is a SpecEnd

  17. def isASpecStart: PartialFunction[Fragment, SpecStart]

    Permalink

    returns

    the spec start if the Fragment is a SpecStart

  18. def isAStep: PartialFunction[Fragment, Step]

    Permalink

    returns

    the step if the Fragment is a Step

  19. def isAnAction: PartialFunction[Fragment, Action]

    Permalink

    returns

    the action if the Fragment is an Actino

  20. def isAnEnd: PartialFunction[Fragment, Fragment]

    Permalink

    returns

    the step if the Fragment is an End fragment

  21. def isAnExample: PartialFunction[Fragment, Example]

    Permalink

    returns

    the example if the Fragment is an Example

  22. def isBr: (Fragment) ⇒ Boolean

    Permalink

    returns

    the step if the Fragment is a Br fragment

  23. def isExample: Function[Fragment, Boolean]

    Permalink

    returns

    true if the Fragment is an Example

  24. def isExampleOrStep: Function[Fragment, Boolean]

    Permalink

    returns

    true if the Fragment is an Example or a Step

  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def isSomeTag: PartialFunction[Fragment, TagFragment]

    Permalink

    returns

    the text if the Fragment is a TaggingFragment

  27. def isSomeText: PartialFunction[Fragment, Text]

    Permalink

    returns

    the text if the Fragment is a Text

  28. def isSpecEnd: Function[Fragment, Boolean]

    Permalink

    returns

    true if the Fragment is a SpecEnd

  29. def isSpecStart: Function[Fragment, Boolean]

    Permalink

    returns

    true if the Fragment is a SpecStart

  30. def isSpecStartOrEnd: Function[Fragment, Boolean]

    Permalink

    returns

    true if the Fragment is a SpecStart or a SpecEnd

  31. def isStep: Function[Fragment, Boolean]

    Permalink

    returns

    true if the Fragment is a step

  32. def isText: Function[Fragment, Boolean]

    Permalink

    returns

    true if the Fragment is a Text

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

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

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

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

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

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

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

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

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

    Permalink

    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
  42. def withSpecName(fragments: Fragments, s: SpecificationStructure): Fragments

    Permalink

    returns

    a Fragments object with the appropriate name set on the SpecStart fragment That name is derived from the specification structure name

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

    Permalink

    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