scala.tools.reflect

UniversalFn

class UniversalFn extends (Seq[AnyRef]) ⇒ AnyRef

For certain reflection tasks it is convenient to treat all methods as having the same signature: (Seq[AnyRef]) => AnyRef

That is the "universal signature" and UniversalFn exists to provide it without abandoning the information we had before we needed it. One place this is used: closures can pose as arbitrary interfaces, and this is how we route the arguments from the actual method invocation (which targets a proxy object) to the original closure.

Self Type
UniversalFn
Source
UniversalFn.scala
Linear Supertypes
(Seq[AnyRef]) ⇒ AnyRef, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. UniversalFn
  2. Function1
  3. AnyRef
  4. Any
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. def andThen[A](g: (AnyRef) ⇒ A): (Seq[AnyRef]) ⇒ A

    Definition Classes
    Function1
  7. def apply(xs: Seq[AnyRef]): AnyRef

    Definition Classes
    UniversalFn → Function1
  8. def as[T](implicit arg0: Manifest[T]): T

    Given an interface type argument, creates a proxy object of the type of the interface which implements all its methods by routing them to this universal function.

    Given an interface type argument, creates a proxy object of the type of the interface which implements all its methods by routing them to this universal function. Will throw an exception in the face of any bad data.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. val closure: AnyRef

  12. def compose[A](g: (A) ⇒ Seq[AnyRef]): (A) ⇒ AnyRef

    Definition Classes
    Function1
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  19. val method: Method

  20. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from (Seq[AnyRef]) ⇒ AnyRef

Inherited from AnyRef

Inherited from Any