Object

ru.makkarpov.scalingua

Macros

Related Doc: package scalingua

Permalink

object Macros

An entry point for all macros which may be useful if you want to define custom functions (like your own Utils.t referencing this macros) or custom specialized string interpolators (like th"" for HTML). Without this class it would be impossible, since macros will expand at your Utils class and complain that string literal is required for I18n message.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Macros
  2. AnyRef
  3. 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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def interpolate[T](c: Context)(args: scala.reflect.macros.whitebox.Context.Expr[Any]*)(lang: scala.reflect.macros.whitebox.Context.Expr[Language], outputFormat: scala.reflect.macros.whitebox.Context.Expr[OutputFormat[T]])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): scala.reflect.macros.whitebox.Context.Expr[T]

    Permalink

    String interpolator that will infer the name of the variables passed in it and create an interpolation string based on them.

    String interpolator that will infer the name of the variables passed in it and create an interpolation string based on them. For example, t"Hello, $name" will be converted to string "Hello, %(name)!". If interpolation variable is a complex expression, you can pass the name after it, like t"2 + 2 is ${2 + 2}%(result)", so the interpolator will use "result" as name of expression 2 + 2.

  12. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def plural[T](c: Context)(msg: scala.reflect.macros.whitebox.Context.Expr[String], msgPlural: scala.reflect.macros.whitebox.Context.Expr[String], n: scala.reflect.macros.whitebox.Context.Expr[Long], args: scala.reflect.macros.whitebox.Context.Expr[(String, Any)]*)(lang: scala.reflect.macros.whitebox.Context.Expr[Language], outputFormat: scala.reflect.macros.whitebox.Context.Expr[OutputFormat[T]])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): scala.reflect.macros.whitebox.Context.Expr[T]

    Permalink
  17. def pluralCtx[T](c: Context)(ctx: scala.reflect.macros.whitebox.Context.Expr[String], msg: scala.reflect.macros.whitebox.Context.Expr[String], msgPlural: scala.reflect.macros.whitebox.Context.Expr[String], n: scala.reflect.macros.whitebox.Context.Expr[Long], args: scala.reflect.macros.whitebox.Context.Expr[(String, Any)]*)(lang: scala.reflect.macros.whitebox.Context.Expr[Language], outputFormat: scala.reflect.macros.whitebox.Context.Expr[OutputFormat[T]])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): scala.reflect.macros.whitebox.Context.Expr[T]

    Permalink
  18. def singular[T](c: Context)(msg: scala.reflect.macros.whitebox.Context.Expr[String], args: scala.reflect.macros.whitebox.Context.Expr[(String, Any)]*)(lang: scala.reflect.macros.whitebox.Context.Expr[Language], outputFormat: scala.reflect.macros.whitebox.Context.Expr[OutputFormat[T]])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): scala.reflect.macros.whitebox.Context.Expr[T]

    Permalink

    Macro that will check the supplied string that all interpolation variables are present at args.

  19. def singularCtx[T](c: Context)(ctx: scala.reflect.macros.whitebox.Context.Expr[String], msg: scala.reflect.macros.whitebox.Context.Expr[String], args: scala.reflect.macros.whitebox.Context.Expr[(String, Any)]*)(lang: scala.reflect.macros.whitebox.Context.Expr[Language], outputFormat: scala.reflect.macros.whitebox.Context.Expr[OutputFormat[T]])(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): scala.reflect.macros.whitebox.Context.Expr[T]

    Permalink
  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped