trait Printers extends api.Printers
- Alphabetic
- By Inheritance
- Printers
- Printers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
BooleanFlag(value: Option[Boolean]) extends Product with Serializable
- Definition Classes
- Printers
- class CodePrinter extends SymbolTable.TreePrinter
- class RawTreePrinter extends SymbolTable.TreePrinter
- class TreePrinter extends SymbolTable.TreePrinter
Value Members
-
object
BooleanFlag extends Serializable
- Definition Classes
- Printers
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
backquotedPath(t: SymbolTable.Tree): String
Turns a path into a String, introducing backquotes as necessary.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def decodedSymName(tree: SymbolTable.Tree, name: SymbolTable.Name): String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newCodePrinter(writer: PrintWriter, tree: SymbolTable.Tree, printRootPkg: Boolean): SymbolTable.TreePrinter
Hook to define what
showCode(...)
means. -
def
newRawTreePrinter(writer: PrintWriter): SymbolTable.RawTreePrinter
Hook to define what
showRaw(...)
means. - def newTreePrinter(): SymbolTable.TreePrinter
- def newTreePrinter(stream: OutputStream): SymbolTable.TreePrinter
-
def
newTreePrinter(writer: PrintWriter): SymbolTable.TreePrinter
Hook to define what
show(...)
means. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def quotedName(name: String): String
- def quotedName(name: SymbolTable.Name): String
-
def
quotedName(name: SymbolTable.Name, decode: Boolean): String
Adds backticks if the name is a scala keyword.
-
def
render(what: Any, mkPrinter: (PrintWriter) ⇒ SymbolTable.TreePrinter, printTypes: SymbolTable.BooleanFlag = None, printIds: SymbolTable.BooleanFlag = None, printOwners: SymbolTable.BooleanFlag = None, printKinds: SymbolTable.BooleanFlag = None, printMirrors: SymbolTable.BooleanFlag = None, printPositions: SymbolTable.BooleanFlag = None): String
- Attributes
- protected
- Definition Classes
- Printers
-
def
show(position: SymbolTable.Position): String
Renders a prettified representation of a position.
-
def
show(flags: SymbolTable.FlagSet): String
Renders a prettified representation of a flag set.
-
def
show(name: SymbolTable.Name): String
Renders a prettified representation of a name.
-
def
show(any: Any, printTypes: SymbolTable.BooleanFlag = None, printIds: SymbolTable.BooleanFlag = None, printOwners: SymbolTable.BooleanFlag = None, printKinds: SymbolTable.BooleanFlag = None, printMirrors: SymbolTable.BooleanFlag = None, printPositions: SymbolTable.BooleanFlag = None): String
Renders a representation of a reflection artifact as desugared Scala code.
Renders a representation of a reflection artifact as desugared Scala code.
- Definition Classes
- Printers
-
def
showCode(tree: SymbolTable.Tree, printTypes: SymbolTable.BooleanFlag = None, printIds: SymbolTable.BooleanFlag = None, printOwners: SymbolTable.BooleanFlag = None, printPositions: SymbolTable.BooleanFlag = None, printRootPkg: Boolean = false): String
Renders the code of the passed tree, so that: 1) it can be later compiled by scalac retaining the same meaning, 2) it looks pretty.
Renders the code of the passed tree, so that: 1) it can be later compiled by scalac retaining the same meaning, 2) it looks pretty. #1 is available for unattributed trees and attributed trees #2 is more or less okay indentation-wise, but at the moment there's a lot of desugaring left in place, and that's what we plan to improve in the future. printTypes, printIds, printPositions options have the same meaning as for TreePrinter printRootPkg option is available only for attributed trees.
- Definition Classes
- Printers
-
def
showDecl(sym: SymbolTable.Symbol): String
Renders a string that represents a declaration of this symbol written in Scala.
-
def
showRaw(position: SymbolTable.Position): String
Renders internal structure of a position.
Renders internal structure of a position.
- Definition Classes
- Printers
-
def
showRaw(flags: SymbolTable.FlagSet): String
Renders internal structure of a flag set.
Renders internal structure of a flag set.
- Definition Classes
- Printers
-
def
showRaw(name: SymbolTable.Name): String
Renders internal structure of a name.
Renders internal structure of a name.
- Definition Classes
- Printers
-
def
showRaw(any: Any, printTypes: SymbolTable.BooleanFlag = None, printIds: SymbolTable.BooleanFlag = None, printOwners: SymbolTable.BooleanFlag = None, printKinds: SymbolTable.BooleanFlag = None, printMirrors: SymbolTable.BooleanFlag = None, printPositions: SymbolTable.BooleanFlag = None): String
Renders internal structure of a reflection artifact as the visualization of a Scala syntax tree.
Renders internal structure of a reflection artifact as the visualization of a Scala syntax tree.
- Definition Classes
- Printers
- def symName(tree: SymbolTable.Tree, name: SymbolTable.Name): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
treeToString(tree: SymbolTable.Tree): String
By default trees are printed with
show
By default trees are printed with
show
- Attributes
- protected
- Definition Classes
- Printers
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
xprintTree(treePrinter: SymbolTable.TreePrinter, tree: SymbolTable.Tree): Unit
Hook for extensions
-
object
ConsoleWriter extends Writer
A writer that writes to the current Console and is sensitive to replacement of the Console's output stream.