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 XrayReport
s 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 IterableOpsModule with MiscModule with SpellsConfigModule with StackTraceElementModule with StringOpsModule with StylePrintModule
- Alphabetic
- By Inheritance
- XrayModule
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class Description extends AnyRef
A wrapper for
String
s, provided so that it can be used as animplicit
parameter, whichString
s are not ideal for. - implicit final class IncreaseStackTraceDepthBy extends AnyRef
A wrapper for
Int
s, provided so that it can be used as animplicit
parameter, whichInt
s are not ideal for. - implicit final class XrayFromSpells[T] extends AnyRef
Implicit conversion from
T
toXrayFromSpells
, which contains methods likexray
andxrayIf
.Implicit conversion from
T
toXrayFromSpells
, which contains methods likexray
andxrayIf
.- T
the type, your expression evaluates to
- final class XrayReport[+T] extends (XrayModule.this)#CustomRendering
Instances of this class are created by methods like
xray
orxrayIf
.Instances of this class are created by methods like
xray
orxrayIf
. They are used to describe evaluated expressions and can be rendered as a table. - implicit final class XrayWeakFromSpells[T] extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def xrayed[T](expression: => T, description: Description = Xray.Defaults.Description, increaseStackTraceDepthBy: Int = Xray.Defaults.StackTraceDepthOffset)(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
- final def xrayedWeak[T](expression: => T, description: Description = Xray.Defaults.Description, increaseStackTraceDepthBy: Int = Xray.Defaults.StackTraceDepthOffset)(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
- object Xray