scala.reflect.api.Trees

TreeCopier

abstract type TreeCopier <: Universe.TreeCopierOps

The type of standard (lazy) tree copiers.

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

Abstract Value Members

  1. abstract def Alternative(tree: Universe.Tree, trees: List[Universe.Tree]): Universe.Alternative

    Creates a Alternative node from the given components, having a given tree as a prototype.

    Creates a Alternative node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  2. abstract def Annotated(tree: Universe.Tree, annot: Universe.Tree, arg: Universe.Tree): Universe.Annotated

    Creates a Annotated node from the given components, having a given tree as a prototype.

    Creates a Annotated node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  3. abstract def AppliedTypeTree(tree: Universe.Tree, tpt: Universe.Tree, args: List[Universe.Tree]): Universe.AppliedTypeTree

    Creates a AppliedTypeTree node from the given components, having a given tree as a prototype.

    Creates a AppliedTypeTree node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  4. abstract def Apply(tree: Universe.Tree, fun: Universe.Tree, args: List[Universe.Tree]): Universe.Apply

    Creates a Apply node from the given components, having a given tree as a prototype.

    Creates a Apply node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  5. abstract def Assign(tree: Universe.Tree, lhs: Universe.Tree, rhs: Universe.Tree): Universe.Assign

    Creates a Assign node from the given components, having a given tree as a prototype.

    Creates a Assign node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  6. abstract def AssignOrNamedArg(tree: Universe.Tree, lhs: Universe.Tree, rhs: Universe.Tree): Universe.AssignOrNamedArg

    Creates a AssignOrNamedArg node from the given components, having a given tree as a prototype.

    Creates a AssignOrNamedArg node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  7. abstract def Bind(tree: Universe.Tree, name: Universe.Name, body: Universe.Tree): Universe.Bind

    Creates a Bind node from the given components, having a given tree as a prototype.

    Creates a Bind node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  8. abstract def Block(tree: Universe.Tree, stats: List[Universe.Tree], expr: Universe.Tree): Universe.Block

    Creates a Block node from the given components, having a given tree as a prototype.

    Creates a Block node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  9. abstract def CaseDef(tree: Universe.Tree, pat: Universe.Tree, guard: Universe.Tree, body: Universe.Tree): Universe.CaseDef

    Creates a CaseDef node from the given components, having a given tree as a prototype.

    Creates a CaseDef node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  10. abstract def ClassDef(tree: Universe.Tree, mods: Universe.Modifiers, name: Universe.Name, tparams: List[Universe.TypeDef], impl: Universe.Template): Universe.ClassDef

    Creates a ClassDef node from the given components, having a given tree as a prototype.

    Creates a ClassDef node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  11. abstract def CompoundTypeTree(tree: Universe.Tree, templ: Universe.Template): Universe.CompoundTypeTree

    Creates a CompoundTypeTree node from the given components, having a given tree as a prototype.

    Creates a CompoundTypeTree node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  12. abstract def DefDef(tree: Universe.Tree, mods: Universe.Modifiers, name: Universe.Name, tparams: List[Universe.TypeDef], vparamss: List[List[Universe.ValDef]], tpt: Universe.Tree, rhs: Universe.Tree): Universe.DefDef

    Creates a DefDef node from the given components, having a given tree as a prototype.

    Creates a DefDef node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  13. abstract def ExistentialTypeTree(tree: Universe.Tree, tpt: Universe.Tree, whereClauses: List[Universe.Tree]): Universe.ExistentialTypeTree

    Creates a ExistentialTypeTree node from the given components, having a given tree as a prototype.

    Creates a ExistentialTypeTree node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  14. abstract def Function(tree: Universe.Tree, vparams: List[Universe.ValDef], body: Universe.Tree): Universe.Function

    Creates a Function node from the given components, having a given tree as a prototype.

    Creates a Function node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  15. abstract def Ident(tree: Universe.Tree, name: Universe.Name): Universe.Ident

    Creates a Ident node from the given components, having a given tree as a prototype.

    Creates a Ident node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  16. abstract def If(tree: Universe.Tree, cond: Universe.Tree, thenp: Universe.Tree, elsep: Universe.Tree): Universe.If

    Creates a If node from the given components, having a given tree as a prototype.

    Creates a If node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  17. abstract def Import(tree: Universe.Tree, expr: Universe.Tree, selectors: List[Universe.ImportSelector]): Universe.Import

    Creates a Import node from the given components, having a given tree as a prototype.

    Creates a Import node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  18. abstract def LabelDef(tree: Universe.Tree, name: Universe.Name, params: List[Universe.Ident], rhs: Universe.Tree): Universe.LabelDef

    Creates a LabelDef node from the given components, having a given tree as a prototype.

    Creates a LabelDef node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  19. abstract def Literal(tree: Universe.Tree, value: Universe.Constant): Universe.Literal

    Creates a Literal node from the given components, having a given tree as a prototype.

    Creates a Literal node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  20. abstract def Match(tree: Universe.Tree, selector: Universe.Tree, cases: List[Universe.CaseDef]): Universe.Match

    Creates a Match node from the given components, having a given tree as a prototype.

    Creates a Match node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  21. abstract def ModuleDef(tree: Universe.Tree, mods: Universe.Modifiers, name: Universe.Name, impl: Universe.Template): Universe.ModuleDef

    Creates a ModuleDef node from the given components, having a given tree as a prototype.

    Creates a ModuleDef node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  22. abstract def New(tree: Universe.Tree, tpt: Universe.Tree): Universe.New

    Creates a New node from the given components, having a given tree as a prototype.

    Creates a New node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  23. abstract def PackageDef(tree: Universe.Tree, pid: Universe.RefTree, stats: List[Universe.Tree]): Universe.PackageDef

    Creates a PackageDef node from the given components, having a given tree as a prototype.

    Creates a PackageDef node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  24. abstract def ReferenceToBoxed(tree: Universe.Tree, idt: Universe.Ident): Universe.ReferenceToBoxed

    Creates a ReferenceToBoxed node from the given components, having a given tree as a prototype.

    Creates a ReferenceToBoxed node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  25. abstract def Return(tree: Universe.Tree, expr: Universe.Tree): Universe.Return

    Creates a Return node from the given components, having a given tree as a prototype.

    Creates a Return node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  26. abstract def Select(tree: Universe.Tree, qualifier: Universe.Tree, selector: Universe.Name): Universe.Select

    Creates a Select node from the given components, having a given tree as a prototype.

    Creates a Select node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  27. abstract def SelectFromTypeTree(tree: Universe.Tree, qualifier: Universe.Tree, selector: Universe.Name): Universe.SelectFromTypeTree

    Creates a SelectFromTypeTree node from the given components, having a given tree as a prototype.

    Creates a SelectFromTypeTree node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  28. abstract def SingletonTypeTree(tree: Universe.Tree, ref: Universe.Tree): Universe.SingletonTypeTree

    Creates a SingletonTypeTree node from the given components, having a given tree as a prototype.

    Creates a SingletonTypeTree node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  29. abstract def Star(tree: Universe.Tree, elem: Universe.Tree): Universe.Star

    Creates a Star node from the given components, having a given tree as a prototype.

    Creates a Star node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  30. abstract def Super(tree: Universe.Tree, qual: Universe.Tree, mix: Universe.TypeName): Universe.Super

    Creates a Super node from the given components, having a given tree as a prototype.

    Creates a Super node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  31. abstract def Template(tree: Universe.Tree, parents: List[Universe.Tree], self: Universe.ValDef, body: List[Universe.Tree]): Universe.Template

    Creates a Template node from the given components, having a given tree as a prototype.

    Creates a Template node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  32. abstract def This(tree: Universe.Tree, qual: Universe.Name): Universe.This

    Creates a This node from the given components, having a given tree as a prototype.

    Creates a This node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  33. abstract def Throw(tree: Universe.Tree, expr: Universe.Tree): Universe.Throw

    Creates a Throw node from the given components, having a given tree as a prototype.

    Creates a Throw node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  34. abstract def Try(tree: Universe.Tree, block: Universe.Tree, catches: List[Universe.CaseDef], finalizer: Universe.Tree): Universe.Try

    Creates a Try node from the given components, having a given tree as a prototype.

    Creates a Try node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  35. abstract def TypeApply(tree: Universe.Tree, fun: Universe.Tree, args: List[Universe.Tree]): Universe.TypeApply

    Creates a TypeApply node from the given components, having a given tree as a prototype.

    Creates a TypeApply node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  36. abstract def TypeBoundsTree(tree: Universe.Tree, lo: Universe.Tree, hi: Universe.Tree): Universe.TypeBoundsTree

    Creates a TypeBoundsTree node from the given components, having a given tree as a prototype.

    Creates a TypeBoundsTree node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  37. abstract def TypeDef(tree: Universe.Tree, mods: Universe.Modifiers, name: Universe.Name, tparams: List[Universe.TypeDef], rhs: Universe.Tree): Universe.TypeDef

    Creates a TypeDef node from the given components, having a given tree as a prototype.

    Creates a TypeDef node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  38. abstract def TypeTree(tree: Universe.Tree): Universe.TypeTree

    Creates a TypeTree node from the given components, having a given tree as a prototype.

    Creates a TypeTree node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  39. abstract def Typed(tree: Universe.Tree, expr: Universe.Tree, tpt: Universe.Tree): Universe.Typed

    Creates a Typed node from the given components, having a given tree as a prototype.

    Creates a Typed node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  40. abstract def UnApply(tree: Universe.Tree, fun: Universe.Tree, args: List[Universe.Tree]): Universe.UnApply

    Creates a UnApply node from the given components, having a given tree as a prototype.

    Creates a UnApply node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps
  41. abstract def ValDef(tree: Universe.Tree, mods: Universe.Modifiers, name: Universe.Name, tpt: Universe.Tree, rhs: Universe.Tree): Universe.ValDef

    Creates a ValDef node from the given components, having a given tree as a prototype.

    Creates a ValDef node from the given components, having a given tree as a prototype. Having a tree as a prototype means that the tree's attachments, type and symbol will be copied into the result.

    Definition Classes
    TreeCopierOps

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

    Definition Classes
    Any
  3. final def ##(): Int

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Test two objects for equality.

    Test two objects for equality. The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown
    ClassCastException

    if the receiver object is not an instance of the erasure of type T0.

  7. def clone(): AnyRef

    Create a copy of the receiver object.

    Create a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

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

    not specified by SLS as a member of AnyRef

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

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an equivalence relation on non-null instances of AnyRef, and has three additional properties:

    • It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false.
    • For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
    • null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    returns

    true if the argument is a reference to the receiver object; false otherwise.

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

    The equality method for reference types.

    The equality method for reference types. Default implementation delegates to eq.

    See also equals in scala.Any.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

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

    Called by the garbage collector on the receiver object when there are no more references to the object.

    Called by the garbage collector on the receiver object when there are no more references to the object.

    The details of when and if the finalize method is invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

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

    not specified by SLS as a member of AnyRef

  11. final def getClass(): Class[_]

    A representation that corresponds to the dynamic class of the receiver object.

    A representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    Definition Classes
    AnyRef → Any
    Note

    not specified by SLS as a member of AnyRef

  12. def hashCode(): Int

    The hashCode method for reference types.

    The hashCode method for reference types. See hashCode in scala.Any.

    returns

    the hash code value for this object.

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

    Test whether the dynamic type of the receiver object is T0.

    Test whether the dynamic type of the receiver object is T0.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the specified type.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

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

    Equivalent to !(this eq that).

    Equivalent to !(this eq that).

    returns

    true if the argument is not a reference to the receiver object; false otherwise.

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

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  16. final def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

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

    Definition Classes
    AnyRef
  18. def toString(): String

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped