Class/Object

scala.tools.refactoring.common.EnrichedTrees

PlainText

Related Docs: object PlainText | package EnrichedTrees

Permalink

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.TreeApi, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlainText
  2. Tree
  3. Attachable
  4. TreeContextApiImpl
  5. TreeApi
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PlainText()

    Permalink

Abstract Value Members

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

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

    Permalink
  3. abstract def productArity: Int

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

    Permalink
    Definition Classes
    Product

Concrete Value Members

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

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

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

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

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

    Permalink
    Definition Classes
    Attachable
  6. def canHaveAttrs: Boolean

    Permalink
    Definition Classes
    Tree → TreeApi
  7. def changeOwner(pairs: (nsc.Global.Symbol, nsc.Global.Symbol)*): nsc.Global.Tree

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

    Permalink
    Definition Classes
    TreeContextApiImpl → TreeApi
  9. def clearType(): PlainText.this.type

    Permalink
    Definition Classes
    Tree
  10. def clone(): AnyRef

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

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

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

    Permalink
    Definition Classes
    Tree
  14. def duplicate: PlainText.this.type

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

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

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

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

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

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

    Permalink
    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]

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def hasAttachment[T](implicit arg0: ClassTag[T]): Boolean

    Permalink
    Definition Classes
    Attachable
  29. def hasExistingSymbol: Boolean

    Permalink
    Definition Classes
    TreeContextApiImpl
  30. def hasSymbolField: Boolean

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

    Permalink
    Definition Classes
    TreeContextApiImpl
  32. def hashCode(): Int

    Permalink
    Definition Classes
    Tree → AnyRef → Any
  33. val id: Int

    Permalink
    Definition Classes
    Tree
  34. def isDef: Boolean

    Permalink
    Definition Classes
    Tree → TreeApi
  35. def isEmpty: Boolean

    Permalink
    Definition Classes
    Tree → TreeApi
  36. def isErroneous: Boolean

    Permalink
    Definition Classes
    TreeContextApiImpl
  37. def isErrorTyped: Boolean

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

    Permalink
    Definition Classes
    Any
  39. def isTerm: Boolean

    Permalink
    Definition Classes
    Tree → TreeApi
  40. def isType: Boolean

    Permalink
    Definition Classes
    Tree → TreeApi
  41. def isTyped: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  44. def nonEmpty: Boolean

    Permalink
    Definition Classes
    Tree → TreeApi
  45. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit

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

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

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

    Permalink
    Definition Classes
    Attachable
  50. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  51. def productPrefix: String

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

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

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

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

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

    Permalink
    Definition Classes
    Tree
  57. def setType(tp: nsc.Global.Type): PlainText.this.type

    Permalink
    Definition Classes
    Tree
  58. def shallowDuplicate: nsc.Global.Tree

    Permalink
    Definition Classes
    TreeContextApiImpl
  59. def shortClass: String

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

    Permalink
    Definition Classes
    TreeContextApiImpl
  61. def substituteThis(clazz: nsc.Global.Symbol, to: nsc.Global.Tree): nsc.Global.Tree

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

    Permalink
    Definition Classes
    TreeContextApiImpl
  63. def summaryString: String

    Permalink
    Definition Classes
    TreeContextApiImpl
  64. def symbol: nsc.Global.Symbol

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

    Permalink
    Definition Classes
    Tree
  66. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  67. def toString(): String

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

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

    Permalink
    Definition Classes
    Attachable
  70. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    TreeContextApiImpl → TreeApi

Deprecated Value Members

  1. def hasSymbol: Boolean

    Permalink
    Definition Classes
    Tree
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use hasSymbolField

  2. def tpe_=(t: nsc.Global.Type): Unit

    Permalink
    Definition Classes
    Tree
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use setType

Inherited from nsc.Global.Tree

Inherited from nsc.Global.Attachable

Inherited from nsc.Global.TreeContextApiImpl

Inherited from nsc.Global.TreeApi

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped