dotty.tools.dotc.printing

Printer

Related Doc: package printing

abstract class Printer extends AnyRef

The base class of all printers

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Printer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Printer()

Abstract Value Members

  1. abstract def dclText(sd: SingleDenotation): Text

    Textual representation of single denotation's declaration

  2. abstract def dclText(sym: Symbol): Text

    Textual representation of symbol's declaration

  3. abstract def dclsText(syms: List[Symbol], sep: String = "\n"): Text

    Textual representation of all symbols in given list, using dclText for displaying each.

  4. abstract def extendedLocationText(sym: Symbol): Text

    A description of sym's location

  5. abstract def fullNameString(sym: Symbol): String

    The fully qualified name of the symbol

  6. abstract def kindString(sym: Symbol): String

    The kind of the symbol

  7. abstract def locatedText(sym: Symbol): Text

    Textual representation of symbol and its location

  8. abstract def locationText(sym: Symbol): Text

    If symbol's owner is a printable class C, the text "in C", otherwise ""

  9. abstract def nameString(sym: Symbol): String

    The name of the given symbol.

    The name of the given symbol. If !settings.debug, the original name where expansions of operators are translated back to operator symbol. E.g. $eq => =. If settings.uniqid, adds id.

  10. abstract def nameString(name: Name): String

    The name, possibley with with namespace suffix if debugNames is set: /L for local names, /V for other term names, /T for type names

  11. abstract def plain: Printer

    A plain printer without any embellishments

  12. abstract def summarized[T](depth: Int)(op: ⇒ T): T

    Perform string or text-producing operation op so that only a summarized text with given recursion depth is shown

  13. abstract def toText[T >: Untyped](tree: Tree[T]): Text

    Textual representation of tree

  14. abstract def toText(sc: Scope): Text

    Textual representation of all definitions in a scope using dclText for each

  15. abstract def toText(tp: Type): Text

    Textual representation of type

  16. abstract def toText(annot: Annotation): Text

    Textual representation of annotation

  17. abstract def toText(const: Constant): Text

    Textual representation of constant

  18. abstract def toText(denot: Denotation): Text

    Textual representation of denotation

  19. abstract def toText(sym: Symbol): Text

    Textual representation, including symbol's kind e.g., "class Foo", "method Bar".

    Textual representation, including symbol's kind e.g., "class Foo", "method Bar". If hasMeaninglessName is true, uses the owner's name to disambiguate identity.

  20. abstract def toText(name: Name): Text

    The name as a text

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def atPrec(prec: Precedence)(op: ⇒ Text): Text

    Generate text using op, assuming a given precedence level prec.

  6. def changePrec(prec: Precedence)(op: ⇒ Text): Text

    Generate text using op, assuming a given precedence level prec.

    Generate text using op, assuming a given precedence level prec. If new level prec is lower than previous level, put text in parentheses.

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def currentPrecedence: Precedence

    The current precedence level

  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped