Trait scala.reflect.macros.Universe.TreeGen

trait TreeGen extends AnyRef

Source
Universe.scala
Linear Supertypes
AnyRef, Any

Abstract Value Members

abstract def mkAttributedIdent(sym: Universe.Symbol): Universe.RefTree

abstract def mkAttributedQualifier(tpe: Universe.Type, termSym: Universe.Symbol): Universe.Tree

Builds a reference to value whose type is given stable prefix. If the type is unsuitable, e.g. it is a TypeRef for an abstract type variable, then an Ident will be made using termSym as the Ident's symbol. In that case, termSym must not be NoSymbol.

abstract def mkAttributedQualifier(tpe: Universe.Type): Universe.Tree

Builds a reference to value whose type is given stable prefix. The type must be suitable for this. For example, it must not be a TypeRef pointing to an abstract type variable.

abstract def mkAttributedRef(sym: Universe.Symbol): Universe.RefTree

abstract def mkAttributedRef(pre: Universe.Type, sym: Universe.Symbol): Universe.RefTree

abstract def mkAttributedSelect(qual: Universe.Tree, sym: Universe.Symbol): Universe.RefTree

abstract def mkAttributedStableRef(sym: Universe.Symbol): Universe.Tree

abstract def mkAttributedStableRef(pre: Universe.Type, sym: Universe.Symbol): Universe.Tree

abstract def mkAttributedThis(sym: Universe.Symbol): Universe.This

abstract def mkCast(tree: Universe.Tree, pt: Universe.Type): Universe.Tree

abstract def mkMethodCall(target: Universe.Tree, targs: List[Universe.Type], args: List[Universe.Tree]): Universe.Tree

abstract def mkMethodCall(receiver: Universe.Tree, method: Universe.Symbol, targs: List[Universe.Type], args: List[Universe.Tree]): Universe.Tree

abstract def mkMethodCall(receiver: Universe.Symbol, methodName: Universe.Name, args: List[Universe.Tree]): Universe.Tree

abstract def mkMethodCall(target: Universe.Tree, args: List[Universe.Tree]): Universe.Tree

abstract def mkMethodCall(method: Universe.Symbol, args: List[Universe.Tree]): Universe.Tree

abstract def mkMethodCall(method: Universe.Symbol, targs: List[Universe.Type], args: List[Universe.Tree]): Universe.Tree

abstract def mkMethodCall(receiver: Universe.Symbol, methodName: Universe.Name, targs: List[Universe.Type], args: List[Universe.Tree]): Universe.Tree

A creator for method calls, e.g. fn[T1, T2, ...](v1, v2, ...) There are a number of variations.

receiver

symbol of the method receiver

methodName

name of the method to call

targs

type arguments (if Nil, no TypeApply node will be generated)

args

value arguments

returns

the newly created trees.

abstract def mkNullaryCall(method: Universe.Symbol, targs: List[Universe.Type]): Universe.Tree

abstract def mkRuntimeUniverseRef: Universe.Tree

abstract def mkUnattributedRef(fullName: Universe.Name): Universe.RefTree

Builds an untyped reference to symbol with given name. Requires the symbol to be static.

abstract def mkUnattributedRef(sym: Universe.Symbol): Universe.RefTree

Builds an untyped reference to given symbol. Requires the symbol to be static.

abstract def mkZero(tp: Universe.Type): Universe.Tree

abstract def stabilize(tree: Universe.Tree): Universe.Tree

Concrete Value Members

final def !=(arg0: Any): Boolean

Definition Classes
AnyRef → Any

final def ##(): Int

Definition Classes
AnyRef → Any

def +(other: String): String

Implicit
This member is added by an implicit conversion from TreeGen toany2stringadd[TreeGen] performed by method any2stringadd in scala.Predef.
Definition Classes
any2stringadd

def ->[B](y: B): (TreeGen, B)

Implicit
This member is added by an implicit conversion from TreeGen toArrowAssoc[TreeGen] performed by method ArrowAssoc in scala.Predef.
Definition Classes
ArrowAssoc
Annotations
@inline()

final def ==(arg0: Any): Boolean

Definition Classes
AnyRef → Any

final def asInstanceOf[T0]: T0

Definition Classes
Any

def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.CloneNotSupportedException]) @native()

def ensuring(cond: (TreeGen) => Boolean, msg: => Any): TreeGen

Implicit
This member is added by an implicit conversion from TreeGen toEnsuring[TreeGen] performed by method Ensuring in scala.Predef.
Definition Classes
Ensuring

def ensuring(cond: (TreeGen) => Boolean): TreeGen

Implicit
This member is added by an implicit conversion from TreeGen toEnsuring[TreeGen] performed by method Ensuring in scala.Predef.
Definition Classes
Ensuring

def ensuring(cond: Boolean, msg: => Any): TreeGen

Implicit
This member is added by an implicit conversion from TreeGen toEnsuring[TreeGen] performed by method Ensuring in scala.Predef.
Definition Classes
Ensuring

def ensuring(cond: Boolean): TreeGen

Implicit
This member is added by an implicit conversion from TreeGen toEnsuring[TreeGen] performed by method Ensuring in scala.Predef.
Definition Classes
Ensuring

final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef

def equals(arg0: AnyRef): Boolean

Definition Classes
AnyRef → Any

def finalize(): Unit

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.Throwable])

def formatted(fmtstr: String): String

Implicit
This member is added by an implicit conversion from TreeGen toStringFormat[TreeGen] performed by method StringFormat in scala.Predef.
Definition Classes
StringFormat
Annotations
@inline()

final def getClass(): Class[_ <: AnyRef]

Definition Classes
AnyRef → Any
Annotations
@native()

def hashCode(): Int

Definition Classes
AnyRef → Any
Annotations
@native()

final def isInstanceOf[T0]: Boolean

Definition Classes
Any

final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef

final def notify(): Unit

Definition Classes
AnyRef
Annotations
@native()

final def notifyAll(): Unit

Definition Classes
AnyRef
Annotations
@native()

final def synchronized[T0](arg0: => T0): T0

Definition Classes
AnyRef

def toString(): String

Definition Classes
AnyRef → Any

final def wait(): Unit

Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.InterruptedException])

final def wait(arg0: Long, arg1: Int): Unit

Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.InterruptedException])

final def wait(arg0: Long): Unit

Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.InterruptedException]) @native()

© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://www.scala-lang.org/api/2.13.0/scala-reflect/scala/reflect/macros/Universe$TreeGen.html