dotty.tools.dotc.printing

PlainPrinter

Related Doc: package printing

class PlainPrinter extends Printer

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

Instance Constructors

  1. new PlainPrinter(_ctx: Context)

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. def annotsText(sym: Symbol): Text

  5. def argText(arg: Type): Text

    Attributes
    protected
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def atPrec(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.

    Definition Classes
    Printer
  8. 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.

    Definition Classes
    Printer
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def controlled(op: ⇒ Text): Text

    Attributes
    protected
  11. implicit def ctx: Context

    Attributes
    protected[this]
  12. def currentPrecedence: Precedence

    The current precedence level

    The current precedence level

    Definition Classes
    Printer
  13. def dclText(d: SingleDenotation): Text

    Textual representation of single denotation's declaration

    Textual representation of single denotation's declaration

    Definition Classes
    PlainPrinterPrinter
  14. def dclText(sym: Symbol): Text

    Textual representation of symbol's declaration

    Textual representation of symbol's declaration

    Definition Classes
    PlainPrinterPrinter
  15. def dclsText(syms: List[Symbol], sep: String): Text

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

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

    Definition Classes
    PlainPrinterPrinter
  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def escapedString(str: String): String

    Attributes
    protected
  19. def extendedLocationText(sym: Symbol): Text

    A description of sym's location

    A description of sym's location

    Definition Classes
    PlainPrinterPrinter
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def fullNameOwner(sym: Symbol): Symbol

    Attributes
    protected
  22. def fullNameString(sym: Symbol): String

    The fully qualified name of the symbol

    The fully qualified name of the symbol

    Definition Classes
    PlainPrinterPrinter
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hasMeaninglessName(sym: Symbol): Boolean

    If the name of the symbol's owner should be used when you care about seeing an interesting name: in such cases this symbol is e.g.

    If the name of the symbol's owner should be used when you care about seeing an interesting name: in such cases this symbol is e.g. a method parameter with a synthetic name, a constructor named "this", an object "package", etc. The kind string, if non-empty, will be phrased relative to the name of the owner.

    Attributes
    protected
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def homogenize(tp: Type): Type

  27. def homogenizedView: Boolean

    If true, tweak output so it is the same before and after pickling

    If true, tweak output so it is the same before and after pickling

    Attributes
    protected
  28. def idString(sym: Symbol): String

    If -uniqid is set, the unique id of symbol, after a #

    If -uniqid is set, the unique id of symbol, after a #

    Attributes
    protected
  29. def isEmptyPrefix(sym: Symbol): Boolean

    Attributes
    protected
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def isOmittablePrefix(sym: Symbol): Boolean

    Attributes
    protected
  32. def keyString(sym: Symbol): String

    String representation of symbol's definition key word

    String representation of symbol's definition key word

    Attributes
    protected
  33. def kindString(sym: Symbol): String

    String representation of symbol's kind.

    String representation of symbol's kind.

    Definition Classes
    PlainPrinterPrinter
  34. def locatedText(sym: Symbol): Text

    Textual representation of symbol and its location

    Textual representation of symbol and its location

    Definition Classes
    PlainPrinterPrinter
  35. def locationText(sym: Symbol): Text

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

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

    Definition Classes
    PlainPrinterPrinter
  36. def maxToTextRecursions: Int

    Attributes
    protected
  37. 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.

    Definition Classes
    PlainPrinterPrinter
  38. 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

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

    Definition Classes
    PlainPrinterPrinter
  39. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  42. def objectPrefix: String

    Attributes
    protected
  43. def packagePrefix: String

    Attributes
    protected
  44. def plain: PlainPrinter

    A plain printer without any embellishments

    A plain printer without any embellishments

    Definition Classes
    PlainPrinterPrinter
  45. def polyHash(pt: PolyType): Text

    If -uniqid is set, the hashcode of the polytype, after a #

    If -uniqid is set, the hashcode of the polytype, after a #

    Attributes
    protected
  46. def polyParamNameString(param: PolyParam): String

    Attributes
    protected
  47. def polyParamNameString(name: TypeName): String

    Attributes
    protected
  48. def recursionLimitExceeded(): Unit

    Attributes
    protected
  49. def refinementNameString(tp: RefinedType): String

    String representation of a name used in a refinement In refined printing this undoes type parameter expansion

    String representation of a name used in a refinement In refined printing this undoes type parameter expansion

    Attributes
    protected
  50. def selectionString(tp: NamedType): String

    Attributes
    protected
  51. def simpleNameString(sym: Symbol): String

    The name of the symbol without a unique id.

    The name of the symbol without a unique id. Under refined printing, the decoded original name.

    Attributes
    protected
  52. def summarized[T](op: ⇒ T): T

  53. 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

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

    Definition Classes
    PlainPrinterPrinter
  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  55. def toString(): String

    Definition Classes
    AnyRef → Any
  56. def toText[T >: Untyped](tree: Tree[T]): Text

    Textual representation of tree

    Textual representation of tree

    Definition Classes
    PlainPrinterPrinter
  57. def toText(sc: Scope): Text

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

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

    Definition Classes
    PlainPrinterPrinter
  58. def toText(annot: Annotation): Text

    Textual representation of annotation

    Textual representation of annotation

    Definition Classes
    PlainPrinterPrinter
  59. def toText(const: Constant): Text

    Textual representation of constant

    Textual representation of constant

    Definition Classes
    PlainPrinterPrinter
  60. def toText(denot: Denotation): Text

    Textual representation of denotation

    Textual representation of denotation

    Definition Classes
    PlainPrinterPrinter
  61. 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.

    Definition Classes
    PlainPrinterPrinter
  62. def toText(tp: Type): Text

    Textual representation of type

    Textual representation of type

    Definition Classes
    PlainPrinterPrinter
  63. def toText(name: Name): Text

    The name as a text

    The name as a text

    Definition Classes
    PlainPrinterPrinter
  64. def toText(elems: Traversable[Showable], sep: String): Text

    Render elements alternating with sep string

    Render elements alternating with sep string

    Attributes
    protected
  65. def toTextFlags(sym: Symbol): Text

    String representation of symbol's flags

    String representation of symbol's flags

    Attributes
    protected
  66. def toTextGlobal(elems: Traversable[Showable], sep: String): Text

    Attributes
    protected
  67. def toTextGlobal(elem: Showable): Text

    Render element within lowest precedence

    Render element within lowest precedence

    Attributes
    protected
  68. def toTextLocal(elems: Traversable[Showable], sep: String): Text

    Attributes
    protected
  69. def toTextLocal(elem: Showable): Text

    Render element within highest precedence

    Render element within highest precedence

    Attributes
    protected
  70. def toTextParents(parents: List[Type]): Text

    Attributes
    protected
  71. def toTextPrefix(tp: Type): Text

    The string representation of this type used as a prefix

    The string representation of this type used as a prefix

    Attributes
    protected
  72. def toTextRHS(tp: Type): Text

    String representation of a definition's type following its name

    String representation of a definition's type following its name

    Attributes
    protected
  73. def toTextRHS(optType: Option[Type]): Text

    String representation of a definition's type following its name, if symbol is completed, "?" otherwise.

    String representation of a definition's type following its name, if symbol is completed, "?" otherwise.

    Attributes
    protected
  74. def toTextRef(tp: SingletonType): Text

    The string representation of this type used as a prefix

    The string representation of this type used as a prefix

    Attributes
    protected
  75. def toTextRefinement(rt: RefinedType): Closed

    String representation of a refinement

    String representation of a refinement

    Attributes
    protected
  76. def treatAsTypeArg(sym: Symbol): Boolean

    Attributes
    protected
  77. def treatAsTypeParam(sym: Symbol): Boolean

    Attributes
    protected
  78. def trimPrefix(text: Text): Text

    Attributes
    protected
  79. def varianceString(v: Int): String

    Attributes
    protected
  80. def varianceString(sym: Symbol): String

    String representation of symbol's variance or "" if not applicable

    String representation of symbol's variance or "" if not applicable

    Attributes
    protected
  81. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Printer

Inherited from AnyRef

Inherited from Any

Ungrouped