Packages

o

cc.drx

Macro

object Macro

Source
macros.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Macro
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. macro def constructorsOf[A]: List[String]

    get the fields of case class (companion object primary constructor) at compile time

  7. macro def desugar(a: Any): String

    desugar into a String at compile time

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. macro def fieldsOf[A]: List[String]

    get the fields of case class (companion object primary constructor) at compile time

  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. macro def findSealedOf[A](name: String): Option[A]

    get the name of the variable at compile time

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. macro def kson(xs: Any*): String

    format as kson using the compile time variable name strings as keys for the map

  17. macro def ksonColor(xs: Any*): String

    format as kson using the compile time variable name strings as keys for the map

  18. macro def kv[A](xs: A*): List[(String, A)]

    format as key->value list using the compile time variable name for the keys and runtime value for the value

  19. macro def log(xs: Any*): Unit

    this is like pp and src combined and can be turned off with near zero execution and compile size overhead

  20. macro def nameOf(x: Any): String

    get the name of the variable at compile time

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def parse[A](str: String)(implicit p: MacroParsable[A]): Option[A]

    compile time construction of runtime parser's

  25. def parseLookup[A](getString: (String) => Option[String])(implicit p: StringMapParser[A]): Option[A]

    compile time construction (materializing) of a string lookup

  26. macro def pp(xs: Any*): Unit

    pretty print with variable name at compile time and value at runtime using cc.drx.Format for implicit formatting and cc.drx.Color for ansi colors

  27. macro def sealedOf[A]: Set[A]

    get the list of children of a sealed trait

  28. macro def split[A](str: String): Vector[A]

    compile time split method

  29. macro def src: (String, Int)

    get the src code and line number

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped