class CompactTreePrinter extends Global.AstTreePrinter
A tree printer which is stingier about vertical whitespace and unnecessary punctuation than the standard one.
- Source
- Printers.scala
Linear Supertypes
Type Hierarchy
îˇî
Ordering
- Alphabetic
- By Inheritance
Inherited
- CompactTreePrinter
- TreePrinter
- TreePrinter
- TreePrinter
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- î new CompactTreePrinter(out: PrintWriter)
Value Members
- î
final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef â Any
- î
final def ##: Int
- Definition Classes
- AnyRef â Any
- î
def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Global.CompactTreePrinter toany2stringadd[Global.CompactTreePrinter] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- î
def ->[B](y: B): (Global.CompactTreePrinter, B)
- Implicit
- This member is added by an implicit conversion from Global.CompactTreePrinter toArrowAssoc[Global.CompactTreePrinter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- î
final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef â Any
- î def allStatements(t: Global.Tree): List[Global.Tree]
- î
final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- î
def blankForName(name: Global.Name): String
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def blankForOperatorName(name: Global.Name): String
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def checkForBlank(cond: Boolean): String
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- î
def comment(body: => Unit): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
val commentsRequired: Boolean
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def ensuring(cond: (Global.CompactTreePrinter) => Boolean, msg: => Any): Global.CompactTreePrinter
- Implicit
- This member is added by an implicit conversion from Global.CompactTreePrinter toEnsuring[Global.CompactTreePrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- î
def ensuring(cond: (Global.CompactTreePrinter) => Boolean): Global.CompactTreePrinter
- Implicit
- This member is added by an implicit conversion from Global.CompactTreePrinter toEnsuring[Global.CompactTreePrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- î
def ensuring(cond: Boolean, msg: => Any): Global.CompactTreePrinter
- Implicit
- This member is added by an implicit conversion from Global.CompactTreePrinter toEnsuring[Global.CompactTreePrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- î
def ensuring(cond: Boolean): Global.CompactTreePrinter
- Implicit
- This member is added by an implicit conversion from Global.CompactTreePrinter toEnsuring[Global.CompactTreePrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- î
final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- î
def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef â Any
- î
def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- î
final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef â Any
- Annotations
- @native()
- î
def hashCode(): Int
- Definition Classes
- AnyRef â Any
- Annotations
- @native()
- î
def indent(): Unit
- Definition Classes
- TreePrinter
- î
var indentMargin: Int
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
val indentStep: Int
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
var indentString: String
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- î
final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- î
final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- î
final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- î
def parenthesize(condition: Boolean, open: String, close: String)(body: => Unit): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def print(args: Any*): Unit
- Definition Classes
- TreePrinter â TreePrinter â TreePrinter
- î
def printAnnotations(tree: Global.MemberDef): Unit
- Definition Classes
- TreePrinter
- î
def printBlock(stats: List[Global.Tree], expr: Global.Tree): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printBlock(tree: Global.Tree): Unit
- Definition Classes
- TreePrinter
- î
def printCaseDef(tree: Global.CaseDef): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printColumn(ts: List[Global.Tree], start: String, sep: String, end: String): Unit
- Definition Classes
- TreePrinter
- î
def printDefDef(tree: Global.DefDef, resultName: => String)(printTypeSignature: => Unit)(printRhs: => Unit): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printFlags(flags: Long, privateWithin: String): Unit
- Definition Classes
- TreePrinter
- î
def printFunction(tree: Global.Function)(printValueParams: => Unit): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
val printIds: Boolean
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printImplicitInParamsList(vds: List[Global.ValDef]): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printImport(tree: Global.Import, resSelect: => String): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
val printKinds: Boolean
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printLabelParam(p: Global.Ident): Unit
- Definition Classes
- TreePrinter
- î
def printLabelParams(ps: List[Global.Ident]): Unit
- Definition Classes
- TreePrinter
- î def printLogicalAnd(t1: (Global.Tree, Boolean), t2: (Global.Tree, Boolean)): Unit
- î def printLogicalOp(t1: (Global.Tree, Boolean), t2: (Global.Tree, Boolean), op: String): Unit
- î def printLogicalOr(t1: (Global.Tree, Boolean), t2: (Global.Tree, Boolean)): Unit
- î
val printMirrors: Boolean
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printModifiers(tree: Global.Tree, mods: Global.Modifiers): Unit
- Definition Classes
- TreePrinter
- î
def printOpt(prefix: String, tree: Global.Tree): Unit
- Definition Classes
- TreePrinter
- î
val printOwners: Boolean
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printPackageDef(tree: Global.PackageDef, separator: String): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printPosition(tree: Global.Tree): Unit
- Definition Classes
- TreePrinter
- î
val printPositions: Boolean
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printRow(ts: List[Global.Tree], start: String, sep: String, end: String): Unit
- Definition Classes
- CompactTreePrinter â TreePrinter
- î
def printRow(ts: List[Global.Tree], sep: String): Unit
- Definition Classes
- TreePrinter
- î
final def printSeq[A](ls: List[A])(printelem: (A) => Unit)(printsep: => Unit): Unit
- Definition Classes
- TreePrinter
- Annotations
- @tailrec()
- î
def printSuper(tree: Global.Super, resultName: => String, checkSymbol: Boolean): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printTParam(td: Global.TypeDef): Unit
- Definition Classes
- TreePrinter
- î
def printThis(tree: Global.This, resultName: => String): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printTree(tree: Global.Tree): Unit
- Definition Classes
- CompactTreePrinter â TreePrinter
- î
def printTypeDef(tree: Global.TypeDef, resultName: => String): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printTypeParams(ts: List[Global.TypeDef]): Unit
- Definition Classes
- TreePrinter
- î
val printTypes: Boolean
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printTypesInfo(tree: Global.Tree): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printVParam(vd: Global.ValDef): Unit
- Definition Classes
- TreePrinter
- î
def printValDef(tree: Global.ValDef, resultName: => String)(printTypeSignature: => Unit)(printRhs: => Unit): Unit
- Attributes
- protected
- Definition Classes
- TreePrinter
- î
def printValueParams(ts: List[Global.ValDef], inParentheses: Boolean): Unit
- Definition Classes
- TreePrinter
- î
def println(): Unit
- Definition Classes
- TreePrinter
- î
final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- î
def toString(): String
- Definition Classes
- AnyRef â Any
- î
def undent(): Unit
- Definition Classes
- TreePrinter
- î
final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- î
final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- î
final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- î
def withIds: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withKinds: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withMirrors: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withOwners: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withPositions: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withTypes: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withoutIds: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withoutKinds: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withoutMirrors: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withoutOwners: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withoutPositions: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
- î
def withoutTypes: CompactTreePrinter.this.type
- Definition Classes
- TreePrinter
Deprecated Value Members
- î
def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Global.CompactTreePrinter toStringFormat[Global.CompactTreePrinter] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- î
def â[B](y: B): (Global.CompactTreePrinter, B)
- Implicit
- This member is added by an implicit conversion from Global.CompactTreePrinter toArrowAssoc[Global.CompactTreePrinter] 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.
The Scala compiler and reflection APIs.