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
-  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
Type Hierarchy

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 toany2stringadd[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 toArrowAssoc[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[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @throws(classOf[java.lang.CloneNotSupportedException]) @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 toEnsuring[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 toEnsuring[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 toEnsuring[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 toEnsuring[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: AnyRef): Boolean
    Definition Classes
      AnyRef → Any
17.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
18.  def formatted(fmtstr: String): String
    Implicit
      This member is added by an implicit conversion from DefaultPrintAST toStringFormat[DefaultPrintAST] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()
19.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
20.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
21.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
22.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
23.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
24.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
25.  def printLine(value: String, comment: String): Unit
    Definition Classes
      PrintAST
26.  def printModifiers(tree: Global.MemberDef): Unit
    Definition Classes
      PrintAST
27.  def printMultiline(prefix: String, comment: String)(body: => Unit): Unit
    Definition Classes
      PrintAST
28.  def printMultiline(tree: Global.Tree)(body: => Unit): Unit
    Definition Classes
      PrintAST
29.  val printPos: Boolean
30.  def printSingle(tree: Global.Tree, name: Global.Name): Unit
    Definition Classes
      PrintAST
31.  def println(s: String): Unit
    Definition Classes
      PrintAST
32.  def showAttributes(tree: Global.Tree): String
    Definition Classes
      DefaultPrintAST → PrintAST
33.  def showDefTreeName(tree: Global.DefTree): String
    Definition Classes
      DefaultPrintAST → PrintAST
34.  def showFlags(tree: Global.MemberDef): String
    Definition Classes
      DefaultPrintAST → PrintAST
35.  def showLiteral(lit: Global.Literal): String
    Definition Classes
      DefaultPrintAST → PrintAST
36.  def showName(name: Global.Name): String
    Definition Classes
      DefaultPrintAST → PrintAST
37.  def showNameAndPos(tree: Global.NameTree): String
    Definition Classes
      DefaultPrintAST → PrintAST
38.  def showPosition(tree: Global.Tree): String
    Definition Classes
      DefaultPrintAST → PrintAST
39.  def showRefTree(tree: Global.RefTree): String
    Definition Classes
      PrintAST
40.  def showRefTreeName(tree: Global.Tree): String
    Definition Classes
      PrintAST
41.  def showSymbol(tree: Global.Tree): String
42.  def showType(tree: Global.Tree): String
43.  def showTypeTree(tt: Global.TypeTree): String
    Definition Classes
      DefaultPrintAST → PrintAST
44.  def stringify(tree: Global.Tree): String
    Definition Classes
      PrintAST
45.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
46.  def toString(): String
    Definition Classes
      AnyRef → Any
47.  def traverse(tree: Global.Tree): Unit
    Definition Classes
      PrintAST
48.  def traverseAny(x: Any): Unit
    Definition Classes
      PrintAST
49.  def traverseList(ifEmpty: String, what: String)(trees: List[Global.Tree]): Unit
    Definition Classes
      PrintAST
50.  def treePrefix(tree: Global.Tree): String
    Definition Classes
      PrintAST
51.  def typeApplyCommon(tree: Global.Tree, fun: Global.Tree, args: List[Global.Tree]): Unit
    Definition Classes
      PrintAST
52.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
53.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
54.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()

### Deprecated Value Members

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

### Inherited from AnyRef

### Inherited from Any

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

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

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

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

### Ungrouped