scala.tools.refactoring.common.EnrichedTrees

PlainText

abstract class PlainText extends nsc.Global.Tree

The PlainText "tree" provides a hook into the source code generation. When a PlainText tree occurs during source code generation, its print method is called with the current AbstractPrinter#PrintingContext. The result is inserted into the generated source code.

For some use cases (blank line, raw and indented string) implementations already exist in the PlainText object.

Note that PlainText trees should never be allowed to escape the Scala refactoring library, so be careful when using compiler utilities to transform trees.

Linear Supertypes
nsc.Global.Tree, nsc.Global.Attachable, nsc.Global.TreeContextApiImpl, nsc.Global.TreeContextApi, nsc.Global.AttachableApi, nsc.Global.TreeApi, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PlainText
  2. Tree
  3. Attachable
  4. TreeContextApiImpl
  5. TreeContextApi
  6. AttachableApi
  7. TreeApi
  8. Product
  9. Equals
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PlainText()

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean

    Definition Classes
    Equals
  2. abstract def print(ctx: PrintingContext): Fragment

  3. abstract def productArity: Int

    Definition Classes
    Product
  4. abstract def productElement(n: Int): Any

    Definition Classes
    Product

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def attachments: Attachments { type Pos = EnrichedTrees.this.global.Position }

    Definition Classes
    Attachable
  8. def changeOwner(pairs: (nsc.Global.Symbol, nsc.Global.Symbol)*): nsc.Global.Tree

    Definition Classes
    TreeContextApiImpl
  9. def children: List[nsc.Global.Tree]

    Definition Classes
    TreeContextApiImpl → TreeApi
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def collect[T](pf: PartialFunction[nsc.Global.Tree, T]): List[T]

    Definition Classes
    TreeContextApiImpl → TreeApi
  12. def correspondsStructure(that: nsc.Global.Tree)(f: (nsc.Global.Tree, nsc.Global.Tree) ⇒ Boolean): Boolean

    Definition Classes
    TreeContextApiImpl
  13. def defineType(tp: nsc.Global.Type): PlainText.this.type

    Definition Classes
    Tree → TreeContextApi
  14. def duplicate: PlainText.this.type

    Definition Classes
    Tree → TreeApi
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(that: Any): Boolean

    Definition Classes
    Tree → Equals → AnyRef → Any
  17. def equalsStructure(that: nsc.Global.Tree): Boolean

    Definition Classes
    TreeContextApiImpl → TreeApi
  18. def exists(p: (nsc.Global.Tree) ⇒ Boolean): Boolean

    Definition Classes
    TreeContextApiImpl → TreeApi
  19. def filter(f: (nsc.Global.Tree) ⇒ Boolean): List[nsc.Global.Tree]

    Definition Classes
    TreeContextApiImpl → TreeApi
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def find(p: (nsc.Global.Tree) ⇒ Boolean): Option[nsc.Global.Tree]

    Definition Classes
    TreeContextApiImpl → TreeApi
  22. def forAll(p: (nsc.Global.Tree) ⇒ Boolean): Boolean

    Definition Classes
    TreeContextApiImpl → TreeApi
  23. def foreach(f: (nsc.Global.Tree) ⇒ Unit): Unit

    Definition Classes
    TreeContextApiImpl → TreeApi
  24. def foreachPartial(pf: PartialFunction[nsc.Global.Tree, nsc.Global.Tree]): Unit

    Definition Classes
    TreeContextApiImpl
  25. def freeTerms: List[nsc.Global.FreeTermSymbol]

    Definition Classes
    TreeContextApiImpl → TreeApi
  26. def freeTypes: List[nsc.Global.FreeTypeSymbol]

    Definition Classes
    TreeContextApiImpl → TreeApi
  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def hasSymbol: Boolean

    Definition Classes
    Tree
  29. def hasSymbolWhich(f: (nsc.Global.Symbol) ⇒ Boolean): Boolean

    Definition Classes
    TreeContextApiImpl
  30. def hashCode(): Int

    Definition Classes
    Tree → AnyRef → Any
  31. val id: Int

    Definition Classes
    Tree
  32. def isDef: Boolean

    Definition Classes
    Tree → TreeApi
  33. def isEmpty: Boolean

    Definition Classes
    Tree → TreeApi
  34. def isErroneous: Boolean

    Definition Classes
    TreeContextApiImpl
  35. def isErrorTyped: Boolean

    Definition Classes
    TreeContextApiImpl
  36. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  37. def isTerm: Boolean

    Definition Classes
    Tree → TreeApi
  38. def isType: Boolean

    Definition Classes
    Tree → TreeApi
  39. def isTyped: Boolean

    Definition Classes
    TreeContextApiImpl
  40. def modifyType(f: (nsc.Global.Type) ⇒ nsc.Global.Type): nsc.Global.Tree

    Definition Classes
    TreeContextApiImpl
  41. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  44. def orElse(alt: ⇒ nsc.Global.Tree): nsc.Global.Tree

    Definition Classes
    TreeContextApiImpl → TreeApi
  45. final def pos: nsc.Global.Position

    Definition Classes
    Tree → Attachable → TreeApi
  46. def pos_=(pos: nsc.Global.Position): Unit

    Definition Classes
    Attachable
  47. def productIterator: Iterator[Any]

    Definition Classes
    Product
  48. def productPrefix: String

    Definition Classes
    Product
  49. var rawatt: Attachments { type Pos = EnrichedTrees.this.global.Position }

    Attributes
    protected
    Definition Classes
    Attachable
  50. def removeAttachment[T](implicit arg0: ClassTag[T]): PlainText.this.type

    Definition Classes
    Attachable
  51. def setAttachments(attachments: Attachments { type Pos = EnrichedTrees.this.global.Position }): PlainText.this.type

    Definition Classes
    Attachable
  52. def setPos(newpos: nsc.Global.Position): PlainText.this.type

    Definition Classes
    Attachable
  53. def setSymbol(sym: nsc.Global.Symbol): PlainText.this.type

    Definition Classes
    Tree → TreeContextApi
  54. def setType(tp: nsc.Global.Type): PlainText.this.type

    Definition Classes
    Tree → TreeContextApi
  55. def shallowDuplicate: nsc.Global.Tree

    Definition Classes
    TreeContextApiImpl
  56. def shortClass: String

    Definition Classes
    TreeContextApiImpl
  57. def substituteSymbols(from: List[nsc.Global.Symbol], to: List[nsc.Global.Symbol]): nsc.Global.Tree

    Definition Classes
    TreeContextApiImpl → TreeApi
  58. def substituteThis(clazz: nsc.Global.Symbol, to: nsc.Global.Tree): nsc.Global.Tree

    Definition Classes
    TreeContextApiImpl → TreeApi
  59. def substituteTypes(from: List[nsc.Global.Symbol], to: List[nsc.Global.Type]): nsc.Global.Tree

    Definition Classes
    TreeContextApiImpl → TreeApi
  60. def summaryString: String

    Definition Classes
    TreeContextApiImpl
  61. def symbol: nsc.Global.Symbol

    Definition Classes
    Tree → TreeApi
  62. def symbol_=(sym: nsc.Global.Symbol): Unit

    Definition Classes
    Tree → TreeContextApi
  63. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  64. def toString(): String

    Definition Classes
    TreeApi → AnyRef → Any
  65. final def tpe: nsc.Global.Type

    Definition Classes
    Tree → TreeApi
  66. def tpe_=(t: nsc.Global.Type): Unit

    Definition Classes
    Tree → TreeContextApi
  67. def updateAttachment[T](attachment: T)(implicit arg0: ClassTag[T]): PlainText.this.type

    Definition Classes
    Attachable
  68. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. def withFilter(f: (nsc.Global.Tree) ⇒ Boolean): List[nsc.Global.Tree]

    Definition Classes
    TreeContextApiImpl → TreeApi

Inherited from nsc.Global.Tree

Inherited from nsc.Global.Attachable

Inherited from nsc.Global.TreeContextApiImpl

Inherited from nsc.Global.TreeContextApi

Inherited from nsc.Global.AttachableApi

Inherited from nsc.Global.TreeApi

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped