pl.project13.scala.macros

Alias

object Alias

The aliasFor macro allows you to delegate all params from a method to another one. An example would be:

def manyParams(a: String, b: Int): String = {
  a + b
}

def !!(a: String, b: Int) = aliasFor { manyParams _ }

The return type of !! is inferred just like you'd expect, and all params (a and b) will be passed into manyParams.

There is another syntax you might want to try, though the above one is the recommended way. To see docs about the annotation style of delegating see pl.project13.scala.macros.Alias#aliasFor (the class)

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Alias
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class aliasFor[T] extends Annotation with StaticAnnotation

    Annotation used in the annotation style method delegation.

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. val DebugPrinting: Boolean

    Flag to enable debug printing, see p for usage.

  7. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22) ⇒ T): T

    Annotations
    @macroImpl()
  8. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21) ⇒ T): T

    Annotations
    @macroImpl()
  9. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20) ⇒ T): T

    Annotations
    @macroImpl()
  10. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19) ⇒ T): T

    Annotations
    @macroImpl()
  11. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18) ⇒ T): T

    Annotations
    @macroImpl()
  12. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17) ⇒ T): T

    Annotations
    @macroImpl()
  13. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16) ⇒ T): T

    Annotations
    @macroImpl()
  14. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) ⇒ T): T

    Annotations
    @macroImpl()
  15. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) ⇒ T): T

    Annotations
    @macroImpl()
  16. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) ⇒ T): T

    Annotations
    @macroImpl()
  17. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) ⇒ T): T

    Annotations
    @macroImpl()
  18. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) ⇒ T): T

    Annotations
    @macroImpl()
  19. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) ⇒ T): T

    Annotations
    @macroImpl()
  20. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, P9, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8, P9) ⇒ T): T

    Annotations
    @macroImpl()
  21. def aliasFor[P1, P2, P3, P4, P5, P6, P7, P8, T](delegate: (P1, P2, P3, P4, P5, P6, P7, P8) ⇒ T): T

    Annotations
    @macroImpl()
  22. def aliasFor[P1, P2, P3, P4, P5, P6, P7, T](delegate: (P1, P2, P3, P4, P5, P6, P7) ⇒ T): T

    Annotations
    @macroImpl()
  23. def aliasFor[P1, P2, P3, P4, P5, P6, T](delegate: (P1, P2, P3, P4, P5, P6) ⇒ T): T

    Annotations
    @macroImpl()
  24. def aliasFor[P1, P2, P3, P4, P5, T](delegate: (P1, P2, P3, P4, P5) ⇒ T): T

    Annotations
    @macroImpl()
  25. def aliasFor[P1, P2, P3, P4, T](delegate: (P1, P2, P3, P4) ⇒ T): T

    Annotations
    @macroImpl()
  26. def aliasFor[P1, P2, P3, T](delegate: (P1, P2, P3) ⇒ T): T

    Annotations
    @macroImpl()
  27. def aliasFor[P1, P2, T](delegate: (P1, P2) ⇒ T): T

    Annotations
    @macroImpl()
  28. def aliasFor[P1, T](delegate: (P1) ⇒ T): T

    Annotations
    @macroImpl()
  29. def alias_impl[T](c: Context)(delegate: scala.reflect.macros.Context.Expr[Any]): scala.reflect.macros.Context.Expr[T]

  30. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  31. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. def delegated[T]: T

    Annotations
    @macroImpl()
  33. def delegated_impl[T](c: Context): scala.reflect.macros.Context.Expr[T]

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  44. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped