Scala Compiler2.13.0 < Back


# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package ast
  Definition Classes
    nsc
-  trait Trees extends reflect.internal.Trees
  Definition Classes
    ast
- Alternative
- Alternative
- AlternativeApi
- AlternativeExtractor
- Annotated
- Annotated
- AnnotatedApi
- AnnotatedExtractor
- AppliedTypeTree
- AppliedTypeTree
- AppliedTypeTreeApi
- AppliedTypeTreeExtractor
- Apply
- Apply
- ApplyApi
- ApplyDynamic
- ApplyExtractor
- ApplyImplicitView
- ApplyToImplicitArgs
- ArrayValue
- Assign
- Assign
- AssignApi
- AssignExtractor
- Bind
- Bind
- BindApi
- BindExtractor
- Block
- Block
- BlockApi
- BlockExtractor
- CannotHaveAttrs
- CaseDef
- CaseDef
- CaseDefApi
- CaseDefExtractor
- ChangeOwnerTraverser
- ClassDef
- ClassDef
- ClassDefApi
- ClassDefExtractor
- CollectTreeTraverser
- CompoundTypeTree
- CompoundTypeTree
- CompoundTypeTreeApi
- CompoundTypeTreeExtractor
- DefDef
- DefDef
- DefDefApi
- DefDefExtractor
- DefTree
- DefTreeApi
- DocDef
- EmptyTree
- ExistentialTypeTree
- ExistentialTypeTree
- ExistentialTypeTreeApi
- ExistentialTypeTreeExtractor
- FilterTreeTraverser
- FindTreeTraverser
- ForeachPartialTreeTraverser
- ForeachTreeTraverser
- Function
- Function
- FunctionApi
- FunctionExtractor
- GenericApply
- GenericApplyApi
- Ident
- Ident
- IdentApi
- IdentExtractor
- If
- If
- IfApi
- IfExtractor
- ImplDef
- ImplDefApi
- Import
- Import
- ImportApi
- ImportExtractor
- ImportSelector
- ImportSelector
- ImportSelectorApi
- ImportSelectorExtractor
- InjectDerivedValue
- InternalTransformer
- InternalTraverser
- InternalTreeCopierOps
- LabelDef
- LabelDef
- LabelDefApi
- LabelDefExtractor
- LazyTreeCopier
- Literal
- Literal
- LiteralApi
- LiteralExtractor
- LocalOwnersTraverser
- Match
- Match
- MatchApi
- MatchExtractor
- MemberDef
- MemberDefApi
- MethodValue
- Modifiers
- Modifiers
- ModifiersApi
- ModifiersExtractor
- ModuleDef
- ModuleDef
- ModuleDefApi
- ModuleDefExtractor
- NameTree
- NameTreeApi
- NamedArg
- NamedArg
- NamedArgApi
- NamedArgExtractor
- New
- New
- NewApi
- NewExtractor
- PackageDef
- PackageDef
- PackageDefApi
- PackageDefExtractor
- Parens
- PostfixSelect
- RefTree
- RefTree
- RefTreeApi
- RefTreeExtractor
- ReferenceToBoxed
- ReferenceToBoxed
- Return
- Return
- ReturnApi
- ReturnExtractor
- Select
- Select
- SelectApi
- SelectExtractor
- SelectFromArray
- SelectFromTypeTree
- SelectFromTypeTree
- SelectFromTypeTreeApi
- SelectFromTypeTreeExtractor
- SingletonTypeTree
- SingletonTypeTree
- SingletonTypeTreeApi
- SingletonTypeTreeExtractor
- Star
- Star
- StarApi
- StarExtractor
- StrictTreeCopier
- Super
- Super
- SuperApi
- SuperExtractor
- SymTree
- SymTreeApi
- Template
- Template
- TemplateApi
- TemplateExtractor
- TermTree
- TermTreeApi
- This
- This
- ThisApi
- ThisExtractor
- ThisSubstituter
- Throw
- Throw
- ThrowApi
- ThrowExtractor
- Transformer
- Traverser
- Tree
- TreeApi
- TreeContextApiImpl
- TreeCopier
- TreeCopierOps
- TreeReplacer
- TreeStackTraverser
- TreeSubstituter
- TreeSymSubstTraverser
- TreeSymSubstituter
- TreeTypeSubstituter
- Try
- Try
- TryApi
- TryExtractor
- TypTree
- TypTreeApi
- TypeApply
- TypeApply
- TypeApplyApi
- TypeApplyExtractor
- TypeBoundsTree
- TypeBoundsTree
- TypeBoundsTreeApi
- TypeBoundsTreeExtractor
- TypeDef
- TypeDef
- TypeDefApi
- TypeDefExtractor
- TypeMapTreeSubstituter
- TypeTree
- TypeTree
- TypeTreeApi
- TypeTreeExtractor
- TypeTreeWithDeferredRefCheck
- Typed
- Typed
- TypedApi
- TypedExtractor
- UnApply
- UnApply
- UnApplyApi
- UnApplyExtractor
- ValDef
- ValDef
- ValDefApi
- ValDefExtractor
- ValOrDefDef
- ValOrDefDef
- ValOrDefDefApi
- noSelfType
- noopTransformer
- pendingSuperCall
- resetPos
- treeInfo

t

scala.tools.nsc.ast.Trees

# TreeCopier

###

#### trait TreeCopier extends Global.InternalTreeCopierOps

Source
  Trees.scala

Linear Supertypes
Global.InternalTreeCopierOps, Global.TreeCopierOps, AnyRef, Any
Known Subclasses
LazyTreeCopier, StrictTreeCopier
Type Hierarchy

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. TreeCopier
2. InternalTreeCopierOps
3. TreeCopierOps
4. AnyRef
5. 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

### Abstract Value Members

1.  abstract def Alternative(tree: Global.Tree, trees: List[Global.Tree]): Global.Alternative
   Definition Classes
     TreeCopierOps
2.  abstract def Annotated(tree: Global.Tree, annot: Global.Tree, arg: Global.Tree): Global.Annotated
   Definition Classes
     TreeCopierOps
3.  abstract def AppliedTypeTree(tree: Global.Tree, tpt: Global.Tree, args: List[Global.Tree]): Global.AppliedTypeTree
   Definition Classes
     TreeCopierOps
4.  abstract def Apply(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Global.Apply
   Definition Classes
     TreeCopierOps
5.  abstract def ApplyDynamic(tree: Global.Tree, qual: Global.Tree, args: List[Global.Tree]): Global.ApplyDynamic
   Definition Classes
     InternalTreeCopierOps
6.  abstract def ArrayValue(tree: Global.Tree, elemtpt: Global.Tree, trees: List[Global.Tree]): Global.ArrayValue
   Definition Classes
     InternalTreeCopierOps
7.  abstract def Assign(tree: Global.Tree, lhs: Global.Tree, rhs: Global.Tree): Global.Assign
   Definition Classes
     TreeCopierOps
8.  abstract def Bind(tree: Global.Tree, name: Global.Name, body: Global.Tree): Global.Bind
   Definition Classes
     TreeCopierOps
9.  abstract def Block(tree: Global.Tree, stats: List[Global.Tree], expr: Global.Tree): Global.Block
   Definition Classes
     TreeCopierOps
10.  abstract def CaseDef(tree: Global.Tree, pat: Global.Tree, guard: Global.Tree, body: Global.Tree): Global.CaseDef
    Definition Classes
      TreeCopierOps
11.  abstract def ClassDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, tparams: List[Global.TypeDef], impl: Global.Template): Global.ClassDef
    Definition Classes
      TreeCopierOps
12.  abstract def CompoundTypeTree(tree: Global.Tree, templ: Global.Template): Global.CompoundTypeTree
    Definition Classes
      TreeCopierOps
13.  abstract def DefDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, tparams: List[Global.TypeDef], vparamss: List[List[Global.ValDef]], tpt: Global.Tree, rhs: Global.Tree): Global.DefDef
    Definition Classes
      TreeCopierOps
14.  abstract def DocDef(tree: Global.Tree, comment: Global.DocComment, definition: Global.Tree): Global.DocDef
15.  abstract def ExistentialTypeTree(tree: Global.Tree, tpt: Global.Tree, whereClauses: List[Global.MemberDef]): Global.ExistentialTypeTree
    Definition Classes
      TreeCopierOps
16.  abstract def Function(tree: Global.Tree, vparams: List[Global.ValDef], body: Global.Tree): Global.Function
    Definition Classes
      TreeCopierOps
17.  abstract def Ident(tree: Global.Tree, name: Global.Name): Global.Ident
    Definition Classes
      TreeCopierOps
18.  abstract def If(tree: Global.Tree, cond: Global.Tree, thenp: Global.Tree, elsep: Global.Tree): Global.If
    Definition Classes
      TreeCopierOps
19.  abstract def Import(tree: Global.Tree, expr: Global.Tree, selectors: List[Global.ImportSelector]): Global.Import
    Definition Classes
      TreeCopierOps
20.  abstract def InjectDerivedValue(tree: Global.Tree, arg: Global.Tree): Global.InjectDerivedValue
21.  abstract def LabelDef(tree: Global.Tree, name: Global.Name, params: List[Global.Ident], rhs: Global.Tree): Global.LabelDef
    Definition Classes
      TreeCopierOps
22.  abstract def Literal(tree: Global.Tree, value: Global.Constant): Global.Literal
    Definition Classes
      TreeCopierOps
23.  abstract def Match(tree: Global.Tree, selector: Global.Tree, cases: List[Global.CaseDef]): Global.Match
    Definition Classes
      TreeCopierOps
24.  abstract def ModuleDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, impl: Global.Template): Global.ModuleDef
    Definition Classes
      TreeCopierOps
25.  abstract def NamedArg(tree: Global.Tree, lhs: Global.Tree, rhs: Global.Tree): Global.NamedArg
    Definition Classes
      TreeCopierOps
26.  abstract def New(tree: Global.Tree, tpt: Global.Tree): Global.New
    Definition Classes
      TreeCopierOps
27.  abstract def PackageDef(tree: Global.Tree, pid: Global.RefTree, stats: List[Global.Tree]): Global.PackageDef
    Definition Classes
      TreeCopierOps
28.  abstract def RefTree(tree: Global.Tree, qualifier: Global.Tree, selector: Global.Name): Global.RefTree
    Definition Classes
      TreeCopierOps
29.  abstract def ReferenceToBoxed(tree: Global.Tree, idt: Global.Ident): Global.ReferenceToBoxed
    Definition Classes
      TreeCopierOps
30.  abstract def Return(tree: Global.Tree, expr: Global.Tree): Global.Return
    Definition Classes
      TreeCopierOps
31.  abstract def Select(tree: Global.Tree, qualifier: Global.Tree, selector: Global.Name): Global.Select
    Definition Classes
      TreeCopierOps
32.  abstract def SelectFromArray(tree: Global.Tree, qualifier: Global.Tree, selector: Global.Name, erasure: Global.Type): Global.SelectFromArray
33.  abstract def SelectFromTypeTree(tree: Global.Tree, qualifier: Global.Tree, selector: Global.Name): Global.SelectFromTypeTree
    Definition Classes
      TreeCopierOps
34.  abstract def SingletonTypeTree(tree: Global.Tree, ref: Global.Tree): Global.SingletonTypeTree
    Definition Classes
      TreeCopierOps
35.  abstract def Star(tree: Global.Tree, elem: Global.Tree): Global.Star
    Definition Classes
      TreeCopierOps
36.  abstract def Super(tree: Global.Tree, qual: Global.Tree, mix: Global.TypeName): Global.Super
    Definition Classes
      TreeCopierOps
37.  abstract def Template(tree: Global.Tree, parents: List[Global.Tree], self: Global.ValDef, body: List[Global.Tree]): Global.Template
    Definition Classes
      TreeCopierOps
38.  abstract def This(tree: Global.Tree, qual: Global.Name): Global.This
    Definition Classes
      TreeCopierOps
39.  abstract def Throw(tree: Global.Tree, expr: Global.Tree): Global.Throw
    Definition Classes
      TreeCopierOps
40.  abstract def Try(tree: Global.Tree, block: Global.Tree, catches: List[Global.CaseDef], finalizer: Global.Tree): Global.Try
    Definition Classes
      TreeCopierOps
41.  abstract def TypeApply(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Global.TypeApply
    Definition Classes
      TreeCopierOps
42.  abstract def TypeBoundsTree(tree: Global.Tree, lo: Global.Tree, hi: Global.Tree): Global.TypeBoundsTree
    Definition Classes
      TreeCopierOps
43.  abstract def TypeDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, tparams: List[Global.TypeDef], rhs: Global.Tree): Global.TypeDef
    Definition Classes
      TreeCopierOps
44.  abstract def TypeTree(tree: Global.Tree): Global.TypeTree
    Definition Classes
      TreeCopierOps
45.  abstract def TypeTreeWithDeferredRefCheck(tree: Global.Tree): Global.TypeTreeWithDeferredRefCheck
46.  abstract def Typed(tree: Global.Tree, expr: Global.Tree, tpt: Global.Tree): Global.Typed
    Definition Classes
      TreeCopierOps
47.  abstract def UnApply(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Global.UnApply
    Definition Classes
      TreeCopierOps
48.  abstract def ValDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, tpt: Global.Tree, rhs: Global.Tree): Global.ValDef
    Definition Classes
      TreeCopierOps

### Concrete 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 Global.TreeCopier toany2stringadd[Global.TreeCopier] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (Global.TreeCopier, B)
   Implicit
     This member is added by an implicit conversion from Global.TreeCopier toArrowAssoc[Global.TreeCopier] 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
     @throws(classOf[java.lang.CloneNotSupportedException]) @native()
8.  def ensuring(cond: (Global.TreeCopier) => Boolean, msg: => Any): Global.TreeCopier
   Implicit
     This member is added by an implicit conversion from Global.TreeCopier toEnsuring[Global.TreeCopier] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring
9.  def ensuring(cond: (Global.TreeCopier) => Boolean): Global.TreeCopier
   Implicit
     This member is added by an implicit conversion from Global.TreeCopier toEnsuring[Global.TreeCopier] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring
10.  def ensuring(cond: Boolean, msg: => Any): Global.TreeCopier
    Implicit
      This member is added by an implicit conversion from Global.TreeCopier toEnsuring[Global.TreeCopier] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
11.  def ensuring(cond: Boolean): Global.TreeCopier
    Implicit
      This member is added by an implicit conversion from Global.TreeCopier toEnsuring[Global.TreeCopier] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
12.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
13.  def equals(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef → Any
14.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
15.  def formatted(fmtstr: String): String
    Implicit
      This member is added by an implicit conversion from Global.TreeCopier toStringFormat[Global.TreeCopier] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()
16.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
17.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
18.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
19.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
20.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
21.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
22.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
23.  def toString(): String
    Definition Classes
      AnyRef → Any
24.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
25.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
26.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()

### Deprecated Value Members

1.  def →[B](y: B): (Global.TreeCopier, B)
   Implicit
     This member is added by an implicit conversion from Global.TreeCopier toArrowAssoc[Global.TreeCopier] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @deprecated
   Deprecated

     (Since version 2.13.0) Use `->` instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

### Inherited from Global.InternalTreeCopierOps

### Inherited from Global.TreeCopierOps

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd fromGlobal.TreeCopier to any2stringadd[Global.TreeCopier]

### Inherited by implicit conversion StringFormat fromGlobal.TreeCopier to StringFormat[Global.TreeCopier]

### Inherited by implicit conversion Ensuring fromGlobal.TreeCopier to Ensuring[Global.TreeCopier]

### Inherited by implicit conversion ArrowAssoc fromGlobal.TreeCopier to ArrowAssoc[Global.TreeCopier]

### Ungrouped