Scala Compiler2.12.21 < 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
-  abstract class NodePrinters extends AnyRef

  The object `nodePrinter` converts the internal tree representation to a string.

  The object `nodePrinter` converts the internal tree representation to a string.

  Definition Classes
    ast
- DefaultPrintAST
- InfoLevel
- PrintAST
- nodeToRegularString

t

scala.tools.nsc.ast.NodePrinters

# DefaultPrintAST 

###

#### trait DefaultPrintAST extends PrintAST

Source
  NodePrinters.scala

Linear Supertypes
PrintAST, AnyRef, Any
Known Subclasses
nodeToRegularString
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. DefaultPrintAST
2. PrintAST
3. AnyRef
4. 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

### 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 DefaultPrintAST to any2stringadd[DefaultPrintAST] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (DefaultPrintAST, B)
   Implicit
     This member is added by an implicit conversion from DefaultPrintAST to ArrowAssoc[DefaultPrintAST] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  def annotationInfoToString(annot: Global.AnnotationInfo): String
   Definition Classes
     PrintAST
7.  def applyCommon(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Unit
   Definition Classes
     PrintAST
8.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
9.  def clone(): AnyRef
   Attributes
     protected[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( ... ) @native()
10.  def emptyOrComment(s: String): String
    Definition Classes
      PrintAST
11.  def ensuring(cond: (DefaultPrintAST) ⇒ Boolean, msg: ⇒ Any): DefaultPrintAST
    Implicit
      This member is added by an implicit conversion from DefaultPrintAST to Ensuring[DefaultPrintAST] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
12.  def ensuring(cond: (DefaultPrintAST) ⇒ Boolean): DefaultPrintAST
    Implicit
      This member is added by an implicit conversion from DefaultPrintAST to Ensuring[DefaultPrintAST] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
13.  def ensuring(cond: Boolean, msg: ⇒ Any): DefaultPrintAST
    Implicit
      This member is added by an implicit conversion from DefaultPrintAST to Ensuring[DefaultPrintAST] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
14.  def ensuring(cond: Boolean): DefaultPrintAST
    Implicit
      This member is added by an implicit conversion from DefaultPrintAST to Ensuring[DefaultPrintAST] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
15.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
16.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
17.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
18.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
19.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
20.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
21.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
22.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
23.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
24.  def printLine(value: String, comment: String): Unit
    Definition Classes
      PrintAST
25.  def printModifiers(tree: Global.MemberDef): Unit
    Definition Classes
      PrintAST
26.  def printMultiline(prefix: String, comment: String)(body: ⇒ Unit): Unit
    Definition Classes
      PrintAST
27.  def printMultiline(tree: Global.Tree)(body: ⇒ Unit): Unit
    Definition Classes
      PrintAST
28.  val printPos: Boolean
29.  def printSingle(tree: Global.Tree, name: Global.Name): Unit
    Definition Classes
      PrintAST
30.  def println(s: String): Unit
    Definition Classes
      PrintAST
31.  def showAttributes(tree: Global.Tree): String
    Definition Classes
      DefaultPrintAST → PrintAST
32.  def showDefTreeName(tree: Global.DefTree): String
    Definition Classes
      DefaultPrintAST → PrintAST
33.  def showFlags(tree: Global.MemberDef): String
    Definition Classes
      DefaultPrintAST → PrintAST
34.  def showLiteral(lit: Global.Literal): String
    Definition Classes
      DefaultPrintAST → PrintAST
35.  def showName(name: Global.Name): String
    Definition Classes
      DefaultPrintAST → PrintAST
36.  def showNameAndPos(tree: Global.NameTree): String
    Definition Classes
      DefaultPrintAST → PrintAST
37.  def showPosition(tree: Global.Tree): String
    Definition Classes
      DefaultPrintAST → PrintAST
38.  def showRefTree(tree: Global.RefTree): String
    Definition Classes
      PrintAST
39.  def showRefTreeName(tree: Global.Tree): String
    Definition Classes
      PrintAST
40.  def showSymbol(tree: Global.Tree): String
41.  def showType(tree: Global.Tree): String
42.  def showTypeTree(tt: Global.TypeTree): String
    Definition Classes
      DefaultPrintAST → PrintAST
43.  def stringify(tree: Global.Tree): String
    Definition Classes
      PrintAST
44.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
45.  def toString(): String
    Definition Classes
      AnyRef → Any
46.  def traverse(tree: Global.Tree): Unit
    Definition Classes
      PrintAST
47.  def traverseAny(x: Any): Unit
    Definition Classes
      PrintAST
48.  def traverseList(ifEmpty: String, what: String)(trees: List[Global.Tree]): Unit
    Definition Classes
      PrintAST
49.  def treePrefix(tree: Global.Tree): String
    Definition Classes
      PrintAST
50.  def typeApplyCommon(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Unit
    Definition Classes
      PrintAST
51.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
52.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
53.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
54.  def →[B](y: B): (DefaultPrintAST, B)
    Implicit
      This member is added by an implicit conversion from DefaultPrintAST to ArrowAssoc[DefaultPrintAST] 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 DefaultPrintAST to StringFormat[DefaultPrintAST] 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 PrintAST

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd from DefaultPrintAST to any2stringadd[DefaultPrintAST]

### Inherited by implicit conversion StringFormat from DefaultPrintAST to StringFormat[DefaultPrintAST]

### Inherited by implicit conversion Ensuring from DefaultPrintAST to Ensuring[DefaultPrintAST]

### Inherited by implicit conversion ArrowAssoc from DefaultPrintAST to ArrowAssoc[DefaultPrintAST]

### Ungrouped