Scala Compiler2.12.17 < 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
- AssignOrNamedArg
- AssignOrNamedArg
- AssignOrNamedArgApi
- AssignOrNamedArgExtractor
- 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
- InternalTreeCopierOps
- LabelDef
- LabelDef
- LabelDefApi
- LabelDefExtractor
- LazyTreeCopier
- Literal
- Literal
- LiteralApi
- LiteralExtractor
- Match
- Match
- MatchApi
- MatchExtractor
- MemberDef
- MemberDefApi
- MethodValue
- Modifiers
- Modifiers
- ModifiersApi
- ModifiersExtractor
- ModuleDef
- ModuleDef
- ModuleDefApi
- ModuleDefExtractor
- NameTree
- NameTreeApi
- New
- New
- NewApi
- NewExtractor
- PackageDef
- PackageDef
- PackageDefApi
- PackageDefExtractor
- Parens
- 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
- UnderConstructionTransformer
- ValDef
- ValDef
- ValDefApi
- ValDefExtractor
- ValOrDefDef
- ValOrDefDef
- ValOrDefDefApi
- duplicateAndResetPos
- noSelfType
- noopTransformer
- pendingSuperCall
- 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
 
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 AssignOrNamedArg(tree: Global.Tree, lhs: Global.Tree, rhs: Global.Tree): Global.AssignOrNamedArg
   Definition Classes
     TreeCopierOps
9.  abstract def Bind(tree: Global.Tree, name: Global.Name, body: Global.Tree): Global.Bind
   Definition Classes
     TreeCopierOps
10.  abstract def Block(tree: Global.Tree, stats: List[Global.Tree], expr: Global.Tree): Global.Block
    Definition Classes
      TreeCopierOps
11.  abstract def CaseDef(tree: Global.Tree, pat: Global.Tree, guard: Global.Tree, body: Global.Tree): Global.CaseDef
    Definition Classes
      TreeCopierOps
12.  abstract def ClassDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, tparams: List[Global.TypeDef], impl: Global.Template): Global.ClassDef
    Definition Classes
      TreeCopierOps
13.  abstract def CompoundTypeTree(tree: Global.Tree, templ: Global.Template): Global.CompoundTypeTree
    Definition Classes
      TreeCopierOps
14.  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
15.  abstract def DocDef(tree: Global.Tree, comment: Global.DocComment, definition: Global.Tree): Global.DocDef
16.  abstract def ExistentialTypeTree(tree: Global.Tree, tpt: Global.Tree, whereClauses: List[Global.MemberDef]): Global.ExistentialTypeTree
    Definition Classes
      TreeCopierOps
17.  abstract def Function(tree: Global.Tree, vparams: List[Global.ValDef], body: Global.Tree): Global.Function
    Definition Classes
      TreeCopierOps
18.  abstract def Ident(tree: Global.Tree, name: Global.Name): Global.Ident
    Definition Classes
      TreeCopierOps
19.  abstract def If(tree: Global.Tree, cond: Global.Tree, thenp: Global.Tree, elsep: Global.Tree): Global.If
    Definition Classes
      TreeCopierOps
20.  abstract def Import(tree: Global.Tree, expr: Global.Tree, selectors: List[Global.ImportSelector]): Global.Import
    Definition Classes
      TreeCopierOps
21.  abstract def InjectDerivedValue(tree: Global.Tree, arg: Global.Tree): Global.InjectDerivedValue
22.  abstract def LabelDef(tree: Global.Tree, name: Global.Name, params: List[Global.Ident], rhs: Global.Tree): Global.LabelDef
    Definition Classes
      TreeCopierOps
23.  abstract def Literal(tree: Global.Tree, value: Global.Constant): Global.Literal
    Definition Classes
      TreeCopierOps
24.  abstract def Match(tree: Global.Tree, selector: Global.Tree, cases: List[Global.CaseDef]): Global.Match
    Definition Classes
      TreeCopierOps
25.  abstract def ModuleDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, impl: Global.Template): Global.ModuleDef
    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 to any2stringadd[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 to ArrowAssoc[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[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( ... ) @native()
8.  def ensuring(cond: (Global.TreeCopier) ⇒ Boolean, msg: ⇒ Any): Global.TreeCopier
   Implicit
     This member is added by an implicit conversion from Global.TreeCopier to Ensuring[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 to Ensuring[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 to Ensuring[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 to Ensuring[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: Any): Boolean
    Definition Classes
      AnyRef → Any
14.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
15.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
16.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
17.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
18.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
19.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
20.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
21.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
22.  def toString(): String
    Definition Classes
      AnyRef → Any
23.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
24.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
25.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
26.  def →[B](y: B): (Global.TreeCopier, B)
    Implicit
      This member is added by an implicit conversion from Global.TreeCopier to ArrowAssoc[Global.TreeCopier] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc

### Deprecated Value Members

1.  def formatted(fmtstr: String): String
   Implicit
     This member is added by an implicit conversion from Global.TreeCopier to StringFormat[Global.TreeCopier] performed by method StringFormat in scala.Predef.
   Definition Classes
     StringFormat
   Annotations
     @deprecated @inline()
   Deprecated

     (Since version 2.12.16) Use `formatString.format(value)` instead of `value.formatted(formatString)`, or use the `f""` string interpolator. In Java 15 and later, `formatted` resolves to the new method in String which has reversed parameters.

### Inherited from Global.InternalTreeCopierOps

### Inherited from Global.TreeCopierOps

### Inherited from AnyRef

### Inherited from Any

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

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

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

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

### Ungrouped