Scala Compiler2.13.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
-  package parser
  Definition Classes
    ast
- DocComments
- NodePrinters
- Positions
- Printers
- TreeBrowsers
- TreeDSL
- TreeGen
- TreeInfo
- Trees

t

scala.tools.nsc.ast

# Printers

###

#### trait Printers extends reflect.internal.Printers

Self Type
  Global
Source
  Printers.scala

Linear Supertypes
reflect.internal.Printers, reflect.api.Printers, AnyRef, Any
Known Subclasses
Global, compiler, DocParser, ScaladocGlobal, ScaladocGlobalTrait, Global, ReplGlobal, ReflectGlobal
Type Hierarchy

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. Printers
2. Printers
3. Printers
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. Protected

### Type Members

1.  final type AstTreePrinter = Global.TreePrinter
   Annotations
     @nowarn()
2.  case class BooleanFlag extends Product with Serializable
   Definition Classes
     Printers
3.  class CodePrinter extends reflect.internal.SymbolTable.InternalTreePrinter
   Definition Classes
     Printers
4.  class CompactTreePrinter extends Global.AstTreePrinter

   A tree printer which is stingier about vertical whitespace and unnecessary punctuation than the standard one.

5.  final type InternalTreePrinter = Global.TreePrinter
   Definition Classes
     Printers
6.  class RawTreePrinter extends reflect.internal.SymbolTable.TreePrinter
   Definition Classes
     Printers

### Deprecated Type Members

1.  class TreePrinter extends Global.InternalTreePrinter
   Annotations
     @nowarn() @deprecated
   Deprecated

     (Since version 2.13.4) use AstTreePrinter instead

### 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 Printers toany2stringadd[Printers] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (Printers, B)
   Implicit
     This member is added by an implicit conversion from Printers toArrowAssoc[Printers] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  def asCompactDebugString(t: Global.Tree): String
7.  def asCompactString(t: Global.Tree): String
8.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
9.  def asString(t: Global.Tree): String
10.  def backquotedPath(t: Global.Tree): String
    Definition Classes
      Printers
11.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.CloneNotSupportedException]) @native()
12.  def decodedSymName(tree: Global.Tree, name: Global.Name): String
    Definition Classes
      Printers
13.  def ensuring(cond: (Printers) => Boolean, msg: => Any): Printers
    Implicit
      This member is added by an implicit conversion from Printers toEnsuring[Printers] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
14.  def ensuring(cond: (Printers) => Boolean): Printers
    Implicit
      This member is added by an implicit conversion from Printers toEnsuring[Printers] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
15.  def ensuring(cond: Boolean, msg: => Any): Printers
    Implicit
      This member is added by an implicit conversion from Printers toEnsuring[Printers] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
16.  def ensuring(cond: Boolean): Printers
    Implicit
      This member is added by an implicit conversion from Printers toEnsuring[Printers] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
17.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
18.  def equals(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef → Any
19.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
20.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
21.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
22.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
23.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
24.  def newCodePrinter(writer: PrintWriter, tree: Global.Tree, printRootPkg: Boolean): Global.InternalTreePrinter
    Definition Classes
      Printers → Printers
25.  def newCompactTreePrinter(writer: PrintWriter): Global.CompactTreePrinter
26.  def newRawTreePrinter(writer: PrintWriter): Global.RawTreePrinter
    Definition Classes
      Printers → Printers
27.  def newStandardTreePrinter(writer: PrintWriter): Global.AstTreePrinter
28.  def newTreePrinter(): Global.AstTreePrinter
    Definition Classes
      Printers → Printers
29.  def newTreePrinter(stream: OutputStream): Global.AstTreePrinter
    Definition Classes
      Printers → Printers
30.  def newTreePrinter(writer: PrintWriter): Global.AstTreePrinter
    Definition Classes
      Printers → Printers → Printers
31.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
32.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
33.  def quotedName(name: String): String
    Definition Classes
      Printers
34.  def quotedName(name: Global.Name): String
    Definition Classes
      Printers
35.  def quotedName(name: Global.Name, decode: Boolean): String
    Definition Classes
      Printers
36.  def render(what: Any, mkPrinter: (PrintWriter) => Global.TreePrinter, printTypes: Global.BooleanFlag, printIds: Global.BooleanFlag, printOwners: Global.BooleanFlag, printKinds: Global.BooleanFlag, printMirrors: Global.BooleanFlag, printPositions: Global.BooleanFlag): String
    Attributes
      protected
    Definition Classes
      Printers
37.  def show(position: Global.Position): String
    Definition Classes
      Printers → Printers
38.  def show(flags: Global.FlagSet): String
    Definition Classes
      Printers → Printers
39.  def show(name: Global.Name): String
    Definition Classes
      Printers → Printers
40.  def show(any: Any, printTypes: Global.BooleanFlag, printIds: Global.BooleanFlag, printOwners: Global.BooleanFlag, printKinds: Global.BooleanFlag, printMirrors: Global.BooleanFlag, printPositions: Global.BooleanFlag): String
    Definition Classes
      Printers
41.  def showCode(tree: Global.Tree, printTypes: Global.BooleanFlag, printIds: Global.BooleanFlag, printOwners: Global.BooleanFlag, printPositions: Global.BooleanFlag, printRootPkg: Boolean): String
    Definition Classes
      Printers
42.  def showDecl(sym: Global.Symbol): String
    Definition Classes
      Printers → Printers
43.  def showRaw(position: Global.Position): String
    Definition Classes
      Printers
44.  def showRaw(flags: Global.FlagSet): String
    Definition Classes
      Printers
45.  def showRaw(name: Global.Name): String
    Definition Classes
      Printers
46.  def showRaw(any: Any, printTypes: Global.BooleanFlag, printIds: Global.BooleanFlag, printOwners: Global.BooleanFlag, printKinds: Global.BooleanFlag, printMirrors: Global.BooleanFlag, printPositions: Global.BooleanFlag): String
    Definition Classes
      Printers
47.  def symName(tree: Global.Tree, name: Global.Name): String
    Definition Classes
      Printers
48.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
49.  def toString(): String
    Definition Classes
      AnyRef → Any
50.  def treeToString(tree: Global.Tree): String
    Attributes
      protected
    Definition Classes
      Printers
51.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
52.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
53.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()
54.  def xprintTree(treePrinter: Global.InternalTreePrinter, tree: Global.Tree): Unit
    Definition Classes
      Printers → Printers
55.  object BooleanFlag extends java.io.Serializable
    Definition Classes
      Printers
56.  object ConsoleWriter extends Writer
    Definition Classes
      Printers

### Deprecated Value Members

1.  def formatted(fmtstr: String): String
   Implicit
     This member is added by an implicit conversion from Printers toStringFormat[Printers] 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): (Printers, B)
   Implicit
     This member is added by an implicit conversion from Printers toArrowAssoc[Printers] 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 reflect.internal.Printers

### Inherited from reflect.api.Printers

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd fromPrinters to any2stringadd[Printers]

### Inherited by implicit conversion StringFormat fromPrinters to StringFormat[Printers]

### Inherited by implicit conversion Ensuring fromPrinters to Ensuring[Printers]

### Inherited by implicit conversion ArrowAssoc fromPrinters to ArrowAssoc[Printers]

### Ungrouped