ru.makkarpov.scalingua

Macros

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
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

    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.

  14. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped