Scala Compiler2.13.18 < 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
- 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
- duplicateAndResetPos
- noSelfType
- noopTransformer
- pendingSuperCall
- treeInfo

c

scala.tools.nsc.ast.Trees

# StrictTreeCopier

###

#### class StrictTreeCopier extends Global.StrictTreeCopier with Global.TreeCopier

Annotations
  @nowarn() @deprecated
Deprecated

  (Since version 2.13.4) use StrictAstTreeCopier instead

Source
  Trees.scala

Linear Supertypes
Global.TreeCopier, Global.StrictTreeCopier, Global.InternalTreeCopierOps, Global.TreeCopierOps, AnyRef, Any
Type Hierarchy

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. StrictTreeCopier
2. TreeCopier
3. StrictTreeCopier
4. InternalTreeCopierOps
5. TreeCopierOps
6. AnyRef
7. Any

Implicitly

1. by any2stringadd
2. by StringFormat
3. by Ensuring
4. by ArrowAssoc

1. Hide All
2. Show All

Visibility

1. Public
2. Protected

### Instance Constructors

1.  new StrictTreeCopier()

### 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.StrictTreeCopier toany2stringadd[Global.StrictTreeCopier] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (Global.StrictTreeCopier, B)
   Implicit
     This member is added by an implicit conversion from Global.StrictTreeCopier toArrowAssoc[Global.StrictTreeCopier] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  def Alternative(tree: Global.Tree, trees: List[Global.Tree]): Global.Alternative
   Definition Classes
     StrictTreeCopier → TreeCopierOps
7.  def Annotated(tree: Global.Tree, annot: Global.Tree, arg: Global.Tree): Global.Annotated
   Definition Classes
     StrictTreeCopier → TreeCopierOps
8.  def AppliedTypeTree(tree: Global.Tree, tpt: Global.Tree, args: List[Global.Tree]): Global.AppliedTypeTree
   Definition Classes
     StrictTreeCopier → TreeCopierOps
9.  def Apply(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Global.Apply
   Definition Classes
     StrictTreeCopier → TreeCopierOps
10.  def ApplyDynamic(tree: Global.Tree, qual: Global.Tree, args: List[Global.Tree]): Global.ApplyDynamic
    Definition Classes
      StrictTreeCopier → InternalTreeCopierOps
11.  def ArrayValue(tree: Global.Tree, elemtpt: Global.Tree, trees: List[Global.Tree]): Global.ArrayValue
    Definition Classes
      StrictTreeCopier → InternalTreeCopierOps
12.  def Assign(tree: Global.Tree, lhs: Global.Tree, rhs: Global.Tree): Global.Assign
    Definition Classes
      StrictTreeCopier → TreeCopierOps
13.  def Bind(tree: Global.Tree, name: Global.Name, body: Global.Tree): Global.Bind
    Definition Classes
      StrictTreeCopier → TreeCopierOps
14.  def Block(tree: Global.Tree, stats: List[Global.Tree], expr: Global.Tree): Global.Block
    Definition Classes
      StrictTreeCopier → TreeCopierOps
15.  def CaseDef(tree: Global.Tree, pat: Global.Tree, guard: Global.Tree, body: Global.Tree): Global.CaseDef
    Definition Classes
      StrictTreeCopier → TreeCopierOps
16.  def ClassDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, tparams: List[Global.TypeDef], impl: Global.Template): Global.ClassDef
    Definition Classes
      StrictTreeCopier → TreeCopierOps
17.  def CompoundTypeTree(tree: Global.Tree, templ: Global.Template): Global.CompoundTypeTree
    Definition Classes
      StrictTreeCopier → TreeCopierOps
18.  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
      StrictTreeCopier → TreeCopierOps
19.  def DocDef(tree: Global.Tree, comment: Global.DocComment, definition: Global.Tree): Global.DocDef
    Definition Classes
      StrictTreeCopier → TreeCopier
20.  def ExistentialTypeTree(tree: Global.Tree, tpt: Global.Tree, whereClauses: List[Global.MemberDef]): Global.ExistentialTypeTree
    Definition Classes
      StrictTreeCopier → TreeCopierOps
21.  def Function(tree: Global.Tree, vparams: List[Global.ValDef], body: Global.Tree): Global.Function
    Definition Classes
      StrictTreeCopier → TreeCopierOps
22.  def Ident(tree: Global.Tree, name: Global.Name): Global.Ident
    Definition Classes
      StrictTreeCopier → TreeCopierOps
23.  def If(tree: Global.Tree, cond: Global.Tree, thenp: Global.Tree, elsep: Global.Tree): Global.If
    Definition Classes
      StrictTreeCopier → TreeCopierOps
24.  def Import(tree: Global.Tree, expr: Global.Tree, selectors: List[Global.ImportSelector]): Global.Import
    Definition Classes
      StrictTreeCopier → TreeCopierOps
25.  def InjectDerivedValue(tree: Global.Tree, arg: Global.Tree): Global.InjectDerivedValue
    Definition Classes
      StrictTreeCopier → TreeCopier
26.  def LabelDef(tree: Global.Tree, name: Global.Name, params: List[Global.Ident], rhs: Global.Tree): Global.LabelDef
    Definition Classes
      StrictTreeCopier → TreeCopierOps
27.  def Literal(tree: Global.Tree, value: Global.Constant): Global.Literal
    Definition Classes
      StrictTreeCopier → TreeCopierOps
28.  def Match(tree: Global.Tree, selector: Global.Tree, cases: List[Global.CaseDef]): Global.Match
    Definition Classes
      StrictTreeCopier → TreeCopierOps
29.  def ModuleDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, impl: Global.Template): Global.ModuleDef
    Definition Classes
      StrictTreeCopier → TreeCopierOps
30.  def NamedArg(tree: Global.Tree, lhs: Global.Tree, rhs: Global.Tree): Global.NamedArg
    Definition Classes
      StrictTreeCopier → TreeCopierOps
31.  def New(tree: Global.Tree, tpt: Global.Tree): Global.New
    Definition Classes
      StrictTreeCopier → TreeCopierOps
32.  def PackageDef(tree: Global.Tree, pid: Global.RefTree, stats: List[Global.Tree]): Global.PackageDef
    Definition Classes
      StrictTreeCopier → TreeCopierOps
33.  def RefTree(tree: Global.Tree, qualifier: Global.Tree, selector: Global.Name): Global.RefTree
    Definition Classes
      StrictTreeCopier → TreeCopierOps
34.  def ReferenceToBoxed(tree: Global.Tree, idt: Global.Ident): Global.ReferenceToBoxed
    Definition Classes
      StrictTreeCopier → TreeCopierOps
35.  def Return(tree: Global.Tree, expr: Global.Tree): Global.Return
    Definition Classes
      StrictTreeCopier → TreeCopierOps
36.  def Select(tree: Global.Tree, qualifier: Global.Tree, selector: Global.Name): Global.Select
    Definition Classes
      StrictTreeCopier → TreeCopierOps
37.  def SelectFromArray(tree: Global.Tree, qualifier: Global.Tree, selector: Global.Name, erasure: Global.Type): Global.SelectFromArray
    Definition Classes
      StrictTreeCopier → TreeCopier
38.  def SelectFromTypeTree(tree: Global.Tree, qualifier: Global.Tree, selector: Global.Name): Global.SelectFromTypeTree
    Definition Classes
      StrictTreeCopier → TreeCopierOps
39.  def SingletonTypeTree(tree: Global.Tree, ref: Global.Tree): Global.SingletonTypeTree
    Definition Classes
      StrictTreeCopier → TreeCopierOps
40.  def Star(tree: Global.Tree, elem: Global.Tree): Global.Star
    Definition Classes
      StrictTreeCopier → TreeCopierOps
41.  def Super(tree: Global.Tree, qual: Global.Tree, mix: Global.TypeName): Global.Super
    Definition Classes
      StrictTreeCopier → TreeCopierOps
42.  def Template(tree: Global.Tree, parents: List[Global.Tree], self: Global.ValDef, body: List[Global.Tree]): Global.Template
    Definition Classes
      StrictTreeCopier → TreeCopierOps
43.  def This(tree: Global.Tree, qual: Global.Name): Global.This
    Definition Classes
      StrictTreeCopier → TreeCopierOps
44.  def Throw(tree: Global.Tree, expr: Global.Tree): Global.Throw
    Definition Classes
      StrictTreeCopier → TreeCopierOps
45.  def Try(tree: Global.Tree, block: Global.Tree, catches: List[Global.CaseDef], finalizer: Global.Tree): Global.Try
    Definition Classes
      StrictTreeCopier → TreeCopierOps
46.  def TypeApply(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Global.TypeApply
    Definition Classes
      StrictTreeCopier → TreeCopierOps
47.  def TypeBoundsTree(tree: Global.Tree, lo: Global.Tree, hi: Global.Tree): Global.TypeBoundsTree
    Definition Classes
      StrictTreeCopier → TreeCopierOps
48.  def TypeDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, tparams: List[Global.TypeDef], rhs: Global.Tree): Global.TypeDef
    Definition Classes
      StrictTreeCopier → TreeCopierOps
49.  def TypeTree(tree: Global.Tree): Global.TypeTree
    Definition Classes
      StrictTreeCopier → TreeCopierOps
50.  def TypeTreeWithDeferredRefCheck(tree: Global.Tree): Global.TypeTreeWithDeferredRefCheck
    Definition Classes
      StrictTreeCopier → TreeCopier
51.  def Typed(tree: Global.Tree, expr: Global.Tree, tpt: Global.Tree): Global.Typed
    Definition Classes
      StrictTreeCopier → TreeCopierOps
52.  def UnApply(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Global.UnApply
    Definition Classes
      StrictTreeCopier → TreeCopierOps
53.  def ValDef(tree: Global.Tree, mods: Global.Modifiers, name: Global.Name, tpt: Global.Tree, rhs: Global.Tree): Global.ValDef
    Definition Classes
      StrictTreeCopier → TreeCopierOps
54.  final def asInstanceOf[T0]: T0
    Definition Classes
      Any
55.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.CloneNotSupportedException]) @native()
56.  def ensuring(cond: (Global.StrictTreeCopier) => Boolean, msg: => Any): Global.StrictTreeCopier
    Implicit
      This member is added by an implicit conversion from Global.StrictTreeCopier toEnsuring[Global.StrictTreeCopier] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
57.  def ensuring(cond: (Global.StrictTreeCopier) => Boolean): Global.StrictTreeCopier
    Implicit
      This member is added by an implicit conversion from Global.StrictTreeCopier toEnsuring[Global.StrictTreeCopier] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
58.  def ensuring(cond: Boolean, msg: => Any): Global.StrictTreeCopier
    Implicit
      This member is added by an implicit conversion from Global.StrictTreeCopier toEnsuring[Global.StrictTreeCopier] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
59.  def ensuring(cond: Boolean): Global.StrictTreeCopier
    Implicit
      This member is added by an implicit conversion from Global.StrictTreeCopier toEnsuring[Global.StrictTreeCopier] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
60.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
61.  def equals(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef → Any
62.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
63.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
64.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
65.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
66.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
67.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
68.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
69.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
70.  def toString(): String
    Definition Classes
      AnyRef → Any
71.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
72.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
73.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()

### Deprecated Value Members

1.  def formatted(fmtstr: String): String
   Implicit
     This member is added by an implicit conversion from Global.StrictTreeCopier toStringFormat[Global.StrictTreeCopier] 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.

2.  def →[B](y: B): (Global.StrictTreeCopier, B)
   Implicit
     This member is added by an implicit conversion from Global.StrictTreeCopier toArrowAssoc[Global.StrictTreeCopier] 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.TreeCopier

### Inherited from Global.StrictTreeCopier

### Inherited from Global.InternalTreeCopierOps

### Inherited from Global.TreeCopierOps

### Inherited from AnyRef

### Inherited from Any

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

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

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

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

### Ungrouped