spells

XrayModule

trait XrayModule extends AnyRef

Provides the xrayed as well as xrayedWeak methods respectively, which analyse an expression and return an instance of the XrayReport.

It also provides the xray as well as xrayIf method respectively as well as their "weak" counterparts, which is a DSL for creating XrayReports without interrupting the code flow.

List(1,2,3).map(_ + 1)           // compiles and has same semantics
List(1,2,3).xray.map(_ + 1)      // compiles and has same semantics
List(1,2,3).xray.map(_ + 1).xray // compiles and has same semantics
Self Type
XrayModule with AnsiModule with AnyOpsModule with CalendarOpsModule with CustomRenderingModule with DateOpsModule with DurationOpsModule with HumanRenderingModule with MiscModule with StringOpsModule with StylePrintModule with TraversableOpsModule with SpellsConfigModule with StackTraceElementModule
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. XrayModule
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class Description extends AnyRef

    A wrapper for Strings, provided so that it can be used as an implicit parameter, which Strings are not ideal for.

  2. implicit final class IncreaseStackTraceDepthBy extends AnyRef

    A wrapper for Ints, provided so that it can be used as an implicit parameter, which Ints are not ideal for.

  3. implicit final class XrayFromSpells[T] extends AnyRef

    Implicit conversion from T to XrayFromSpells, which contains methods like xray and xrayIf.

  4. final class XrayReport[+T] extends (XrayModule.this)#CustomRendering

    Instances of this class are created by methods like xray or xrayIf.

  5. implicit final class XrayWeakFromSpells[T] extends AnyRef

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. object Xray

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def currentLineStackTraceElement(implicit increaseStackTraceDepthBy: IncreaseStackTraceDepthBy = 0): StackTraceElement

    Creates an instance of StackTraceElement at current line.

    Creates an instance of StackTraceElement at current line.

    increaseStackTraceDepthBy

    adjust if you build a library around it and the line stopps matching

    returns

    an instance of StackTraceElement at current line.

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  20. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def xrayed[T](expression: ⇒ T, description: Description = Xray.Defaults.Description, increaseStackTraceDepthBy: Int = 0)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T], style: AnsiStyle = AnsiStyle.Reset, rendering: (T) ⇒ CustomRendering = CustomRendering.Defaults.Any): XrayReport[T]

    Creates an instance of XrayReport.

    Creates an instance of XrayReport. Primarily useful for library authors.

    T

    the type, your expression evaluates to

    expression

    the expression to be evaluated

    description

    an optional description

    increaseStackTraceDepthBy

    the depth can be used in certain cases when you want to write your own library and have issues with line numberes jumping around

    typeTag

    the typeTag injected by the compiler

    style

    outer style for the report

    rendering

    custom rendering for T

    returns

    an instance of XrayReport, which can be rendered or written to a database etc etc

  25. final def xrayedWeak[T](expression: ⇒ T, description: Description = Xray.Defaults.Description, increaseStackTraceDepthBy: Int = 0)(implicit style: AnsiStyle = AnsiStyle.Reset): XrayReport[T]

    Creates an instance of XrayReport.

    Creates an instance of XrayReport. Primarily useful for library authors.

    T

    the type, your expression evaluates to

    expression

    the expression to be evaluated

    description

    an optional description

    increaseStackTraceDepthBy

    the depth can be used in certain cases when you want to write your own library and have issues with line numberes jumping around

    style

    outer style for the report

    returns

    an instance of XrayReport, which can be rendered or written to a database etc etc

Inherited from AnyRef

Inherited from Any

Ungrouped