Packages

class Untyper[Universe <: Singleton with Universe] extends AnyRef

A utility to convert Type to Tree.

Author:

杨博 (Yang Bo) <[email protected]>

Source
Untyper.scala
Note

The primary intent of Untyper class is for some macro libraries in this feature.scala project, although it may be also useful for other projects.

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Untyper
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Untyper(universe: Universe)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Untyper[Universe] to any2stringadd[Untyper[Universe]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Untyper[Universe], B)
    Implicit
    This member is added by an implicit conversion from Untyper[Universe] to ArrowAssoc[Untyper[Universe]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def defDefinitionSymbol(implicit tpe: Universe.Type): PartialFunction[Universe.TermSymbol, (Universe.TermName, Seq[Universe.Symbol], Seq[Seq[Universe.Symbol]], Universe.Type)]
  9. def definition(implicit tpe: Universe.Type): PartialFunction[Universe.Symbol, Universe.Tree]
  10. def ensuring(cond: (Untyper[Universe]) ⇒ Boolean, msg: ⇒ Any): Untyper[Universe]
    Implicit
    This member is added by an implicit conversion from Untyper[Universe] to Ensuring[Untyper[Universe]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (Untyper[Universe]) ⇒ Boolean): Untyper[Universe]
    Implicit
    This member is added by an implicit conversion from Untyper[Universe] to Ensuring[Untyper[Universe]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): Untyper[Universe]
    Implicit
    This member is added by an implicit conversion from Untyper[Universe] to Ensuring[Untyper[Universe]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): Untyper[Universe]
    Implicit
    This member is added by an implicit conversion from Untyper[Universe] to Ensuring[Untyper[Universe]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Untyper[Universe] to StringFormat[Untyper[Universe]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  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 preprocess(tpe: Universe.Type): Universe.Type
    Attributes
    protected
  25. def singletonValue: PartialFunction[Universe.Type, Universe.Tree]

    Returns the instance tree for given singleton type

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def termDefinition(implicit tpe: Universe.Type): PartialFunction[Universe.Symbol, Universe.Tree]
  28. def termDefinitionOption(symbol: Universe.Symbol)(implicit tpe: Universe.Type): Option[Universe.Tree]
  29. def termSymbol: PartialFunction[Universe.Symbol, Universe.TermSymbol]
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def typeDefinition(implicit tpe: Universe.Type): PartialFunction[Universe.TypeSymbol, Universe.TypeDef]
  32. def typeDefinitionSymbol(implicit tpe: Universe.Type): PartialFunction[Universe.TypeSymbol, (Universe.TypeName, Seq[Universe.Symbol], Universe.Type)]
  33. def typeSymbol: PartialFunction[Universe.Symbol, Universe.TypeSymbol]
  34. val universe: Universe
  35. def untype: PartialFunction[Universe.Type, Universe.Tree]
  36. def untypeOption: (Universe.Type) ⇒ Option[Universe.Tree]
  37. def valDefinitionSymbol(implicit tpe: Universe.Type): PartialFunction[Universe.TermSymbol, (Universe.TermName, Universe.Type)]
  38. def varDefinitionSymbol(implicit tpe: Universe.Type): PartialFunction[Universe.TermSymbol, (Universe.TermName, Universe.Type)]
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  42. def [B](y: B): (Untyper[Universe], B)
    Implicit
    This member is added by an implicit conversion from Untyper[Universe] to ArrowAssoc[Untyper[Universe]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Untyper[Universe] to any2stringadd[Untyper[Universe]]

Inherited by implicit conversion StringFormat from Untyper[Universe] to StringFormat[Untyper[Universe]]

Inherited by implicit conversion Ensuring from Untyper[Universe] to Ensuring[Untyper[Universe]]

Inherited by implicit conversion ArrowAssoc from Untyper[Universe] to ArrowAssoc[Untyper[Universe]]

Ungrouped