Trait

scala.tools.refactoring.sourcegen

PrettyPrinter

Related Doc: package sourcegen

Permalink

trait PrettyPrinter extends TreePrintingTraversals with AbstractPrinter

Self Type
PrettyPrinter with EnrichedTrees with CompilerAccess with Tracing with Indentations with LayoutHelper with Formatting
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PrettyPrinter
  2. AbstractPrinter
  3. CommonPrintUtils
  4. TreePrintingTraversals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait BlockPrinters extends AnyRef

    Permalink
  2. trait ChangeSet extends AnyRef

    Permalink
    Definition Classes
    AbstractPrinter
  3. trait ClassModulePrinters extends AnyRef

    Permalink
  4. trait FunctionPrinters extends AnyRef

    Permalink
  5. trait IfPrinters extends AnyRef

    Permalink
  6. trait ImportPrinters extends AnyRef

    Permalink
  7. trait LiteralPrinters extends AnyRef

    Permalink
  8. trait MethodCallPrinters extends AnyRef

    Permalink
  9. trait MiscPrinters extends AnyRef

    Permalink
  10. trait PackagePrinters extends AnyRef

    Permalink
  11. trait PatternMatchingPrinters extends AnyRef

    Permalink
  12. case class PrintingContext(ind: (AbstractPrinter.this)#Indentation, changeSet: (AbstractPrinter.this)#ChangeSet, parent: nsc.Global.Tree, file: Option[SourceFile]) extends Product with Serializable

    Permalink

    PrintingContext is passed around with all the print methods and contains the context or environment for the current printing.

    PrintingContext is passed around with all the print methods and contains the context or environment for the current printing.

    Definition Classes
    AbstractPrinter
  13. trait PrintingUtils extends AnyRef

    Permalink
  14. trait SuperPrinters extends AnyRef

    Permalink
  15. trait TreePrinting extends AnyRef

    Permalink
    Definition Classes
    TreePrintingTraversals
  16. trait TryThrowPrinters extends AnyRef

    Permalink
  17. trait TypePrinters extends AnyRef

    Permalink
  18. trait ValDefDefPrinters extends AnyRef

    Permalink
  19. trait WhilePrinters extends AnyRef

    Permalink

Abstract Value Members

  1. abstract def print(t: nsc.Global.Tree, ctx: (PrettyPrinter.this)#PrintingContext): Fragment

    Permalink
    Definition Classes
    AbstractPrinter

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def adjustedStartPosForSourceExtraction(t: nsc.Global.Tree, p: nsc.Global.Position): nsc.Global.Position

    Permalink

    When extracting source code from the file via a tree's position, it depends on the tree type whether we can use the position's start or point.

    When extracting source code from the file via a tree's position, it depends on the tree type whether we can use the position's start or point.

    t

    The tree that will be replaced.

    p

    The position to adapt. This does not have to be the position of t.

    Definition Classes
    CommonPrintUtils
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def balanceBrackets(open: Char, close: Char)(f: Fragment): EmptyFragment { val center: scala.tools.refactoring.sourcegen.Layout{val asText: String} }

    Permalink
    Definition Classes
    CommonPrintUtils
  7. def balanceBracketsInLayout(open: Char, close: Char, l: Layout): Layout

    Permalink
    Definition Classes
    CommonPrintUtils
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def indentation(implicit ctx: (PrettyPrinter.this)#PrintingContext): String

    Permalink
    Definition Classes
    CommonPrintUtils
  15. def indentedNewline(implicit ctx: (PrettyPrinter.this)#PrintingContext): Requisite { def getLayout: scala.tools.refactoring.sourcegen.Layout{val asText: String} }

    Permalink
    Definition Classes
    CommonPrintUtils
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def newline(implicit ctx: (PrettyPrinter.this)#PrintingContext): Requisite { def getLayout: scala.tools.refactoring.sourcegen.Layout{val asText: String} }

    Permalink
    Definition Classes
    CommonPrintUtils
  19. def newlineIndentedToChildren(implicit ctx: (PrettyPrinter.this)#PrintingContext): Requisite { def getLayout: scala.tools.refactoring.sourcegen.Layout{val asText: String} }

    Permalink
    Definition Classes
    CommonPrintUtils
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. lazy val precedence: (nsc.Global.Name) ⇒ Int

    Permalink
    Definition Classes
    CommonPrintUtils
  23. object prettyPrinter extends (PrettyPrinter.this)#TreePrinting with (PrettyPrinter.this)#PrintingUtils with (PrettyPrinter.this)#MiscPrinters with (PrettyPrinter.this)#MethodCallPrinters with (PrettyPrinter.this)#WhilePrinters with (PrettyPrinter.this)#PatternMatchingPrinters with (PrettyPrinter.this)#TypePrinters with (PrettyPrinter.this)#FunctionPrinters with (PrettyPrinter.this)#ImportPrinters with (PrettyPrinter.this)#PackagePrinters with (PrettyPrinter.this)#TryThrowPrinters with (PrettyPrinter.this)#ClassModulePrinters with (PrettyPrinter.this)#IfPrinters with (PrettyPrinter.this)#ValDefDefPrinters with (PrettyPrinter.this)#SuperPrinters with (PrettyPrinter.this)#BlockPrinters with (PrettyPrinter.this)#LiteralPrinters

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def typeToString(tree: nsc.Global.TypeTree, t: nsc.Global.Type)(implicit ctx: (PrettyPrinter.this)#PrintingContext): String

    Permalink
    Definition Classes
    CommonPrintUtils
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AbstractPrinter

Inherited from CommonPrintUtils

Inherited from TreePrintingTraversals

Inherited from AnyRef

Inherited from Any

Ungrouped