abstract class Printer

The base class of all printers

Constructors

Printer ( )

Members

[+] private var prec : Precedence
[+] 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.

[+] def changePrec ( prec: Precedence ) ( op: => Text ) : Text

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

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

[+] def currentPrecedence : Precedence

The current precedence level

The current precedence level

[+] def dclText ( sym: Symbol ) : Text

Textual representation of symbol's declaration

Textual representation of symbol's declaration

[+] def dclText ( sd: SingleDenotation ) : Text

Textual representation of single denotation's declaration

Textual representation of single denotation's declaration

[+] 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.

[+] def dclsText$default$2 : String

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.

[+] def extendedLocationText ( sym: Symbol ) : Text

A description of sym's location

A description of sym's location

[+] def fullNameString ( sym: Symbol ) : String

The fully qualified name of the symbol

The fully qualified name of the symbol

[+] def kindString ( sym: Symbol ) : String

The kind of the symbol

The kind of the symbol

[+] def locatedText ( sym: Symbol ) : Text

Textual representation of symbol and its location

Textual representation of symbol and its location

[+] 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 ""

[+] 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

[+] def nameString ( sym: Symbol ) : String

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 => =. I...

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.

[+] def plain : Printer

A plain printer without any embellishments

A plain printer without any embellishments

[+] def summarized ( 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

[+] def toText ( name: Name ) : Text

The name as a text

The name as a text

[+] def toText ( sym: Symbol ) : Text

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

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

[+] def toText ( denot: Denotation ) : Text

Textual representation of denotation

Textual representation of denotation

[+] def toText ( const: Constant ) : Text

Textual representation of constant

Textual representation of constant

[+] def toText ( annot: Annotation ) : Text

Textual representation of annotation

Textual representation of annotation

[+] def toText ( tp: Type ) : Text

Textual representation of type

Textual representation of type

[+] 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

[+] def toText ( tree: Tree [ T ] ) : Text

Textual representation of tree

Textual representation of tree

[+] def toText ( result: SearchResult ) : Text

Textual representation of implicit search result

Textual representation of implicit search result