scala.tools.nsc.Global

gen

object gen extends TreeGen

Generate ASTs

Source
Global.scala
Linear Supertypes
TreeGen, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. gen
  2. TreeGen
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

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 clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def convertToSelectFromType(qual: Tree, origName: Name): Tree with Serializable

    Try to convert Select(qual, name) to a SelectFromTypeTree.

    Try to convert Select(qual, name) to a SelectFromTypeTree.

    Definition Classes
    TreeGen
  9. def convertToTypeName(tree: Tree): Option[RefTree]

    Translate names in Select/Ident nodes to type names.

    Translate names in Select/Ident nodes to type names.

    Definition Classes
    TreeGen
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def evalOnce(expr: Tree, owner: Symbol, unit: CompilationUnit)(within: (() ⇒ Tree) ⇒ Tree): Tree

    Used in situations where you need to access value of an expression several times

    Used in situations where you need to access value of an expression several times

    Definition Classes
    TreeGen
  13. def evalOnceAll(exprs: List[Tree], owner: Symbol, unit: CompilationUnit)(within: (List[() ⇒ Tree]) ⇒ Tree): Tree

    Definition Classes
    TreeGen
  14. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  16. val global: Global.this.type

    Definition Classes
    genTreeGen
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def maybeMkAsInstanceOf(tree: Tree, pt: Type, tpe: Type, beforeRefChecks: Boolean = false): Tree

    Cast tree' to 'pt', unless tpe is a subtype of pt, or pt is Unit.

    Cast tree' to 'pt', unless tpe is a subtype of pt, or pt is Unit.

    Definition Classes
    TreeGen
  20. def mkAnd(tree1: Tree, tree2: Tree): Tree

    Definition Classes
    TreeGen
  21. def mkAsInstanceOf(value: Tree, tpe: Type, any: Boolean = true): Tree

    Builds a cast with given value and type.

    Builds a cast with given value and type.

    Definition Classes
    TreeGen
  22. def mkAssignAndReturn(lhs: Symbol, rhs: Tree): Tree

    Definition Classes
    TreeGen
  23. def mkAttributedCast(tree: Tree, pt: Type): Tree

  24. def mkAttributedIdent(sym: Symbol): Tree

    Definition Classes
    TreeGen
  25. def mkAttributedQualifier(tpe: Type, termSym: Symbol): Tree

    Builds a reference to value whose type is given stable prefix.

    Builds a reference to value whose type is given stable prefix. If the type is unsuitable, e.g. it is a TypeRef for an abstract type variable, then an Ident will be made using termSym as the Ident's symbol. In that case, termSym must not be NoSymbol.

    Definition Classes
    TreeGen
  26. def mkAttributedQualifier(tpe: Type): Tree

    Builds a reference to value whose type is given stable prefix.

    Builds a reference to value whose type is given stable prefix. The type must be suitable for this. For example, it must not be a TypeRef pointing to an abstract type variable.

    Definition Classes
    TreeGen
  27. def mkAttributedRef(sym: Symbol): Tree

    Builds a reference to given symbol.

    Builds a reference to given symbol.

    Definition Classes
    TreeGen
  28. def mkAttributedRef(pre: Type, sym: Symbol): Tree

    Builds a reference to given symbol with given stable prefix.

    Builds a reference to given symbol with given stable prefix.

    Definition Classes
    TreeGen
  29. def mkAttributedSelect(qual: Tree, sym: Symbol): Tree

    Definition Classes
    TreeGen
  30. def mkAttributedStableRef(sym: Symbol): Tree

    Definition Classes
    TreeGen
  31. def mkAttributedStableRef(pre: Type, sym: Symbol): Tree

    Builds a reference with stable type to given symbol

    Builds a reference with stable type to given symbol

    Definition Classes
    TreeGen
  32. def mkAttributedThis(sym: Symbol): Tree

    Definition Classes
    TreeGen
  33. def mkCached(cvar: Symbol, expr: Tree): Tree

    Definition Classes
    TreeGen
  34. def mkCachedModuleAccessDef(accessor: Symbol, mvar: Symbol): DefDef

    Definition Classes
    TreeGen
  35. def mkCast(tree: Tree, pt: Type): Tree

    Cast tree' to type pt'

    Cast tree' to type pt'

    Definition Classes
    TreeGen
  36. def mkCastArray(tree: Tree, elemtp: Type, pt: Type): Tree

    Generate a cast for tree Tree representing Array with elem type elemtp to expected type pt.

    Generate a cast for tree Tree representing Array with elem type elemtp to expected type pt.

    Definition Classes
    TreeGen
  37. def mkCheckInit(tree: Tree): Tree

    Definition Classes
    TreeGen
  38. def mkClassOf(tp: Type): Tree

    Definition Classes
    TreeGen
  39. def mkDoubleCheckedLocking(attrThis: Tree, cond: Tree, syncBody: List[Tree], stats: List[Tree]): Tree

    Definition Classes
    TreeGen
  40. def mkDoubleCheckedLocking(clazz: Symbol, cond: Tree, syncBody: List[Tree], stats: List[Tree]): Tree

    Return a double-checked locking idiom around the syncBody tree.

    Return a double-checked locking idiom around the syncBody tree. It guards with 'cond' and synchronizez on 'clazz.this'. Additional statements can be included after initialization, (outside the synchronized block).

    The idiom works only if the condition is using a volatile field.

    Definition Classes
    TreeGen
    See also

    http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html

  41. def mkForwarder(target: Tree, vparamss: List[List[Symbol]]): Tree

    Make forwarder to method target', passing all parameters in params'

    Make forwarder to method target', passing all parameters in params'

    Definition Classes
    TreeGen
  42. def mkIsInstanceOf(value: Tree, tpe: Type, any: Boolean = true): Tree

    Builds an instance test with given value and type.

    Builds an instance test with given value and type.

    Definition Classes
    TreeGen
  43. def mkModuleAccessDcl(accessor: Symbol): DefDef

    Definition Classes
    TreeGen
  44. def mkModuleAccessDef(accessor: Symbol, msym: Symbol): DefDef

    Definition Classes
    TreeGen
  45. def mkModuleVarDef(accessor: Symbol): ValDef

    Definition Classes
    TreeGen
  46. def mkNewCons(head: Tree, tail: Tree): Tree

    Builds a list with given head and tail.

    Builds a list with given head and tail.

    Definition Classes
    TreeGen
  47. def mkNil: Tree

    Builds a list with given head and tail.

    Builds a list with given head and tail.

    Definition Classes
    TreeGen
  48. def mkOr(tree1: Tree, tree2: Tree): Tree

    Definition Classes
    TreeGen
  49. def mkRuntimeCall(meth: Name, targs: List[Type], args: List[Tree]): Tree

    Definition Classes
    TreeGen
  50. def mkRuntimeCall(meth: Name, args: List[Tree]): Tree

    Definition Classes
    TreeGen
  51. def mkSoftRef(expr: Tree): Tree

    Definition Classes
    TreeGen
  52. def mkSynchronized(monitor: Tree, body: Tree): Tree

    Make a synchronized block on 'monitor'.

    Make a synchronized block on 'monitor'.

    Definition Classes
    TreeGen
  53. def mkTuple(elems: List[Tree]): Tree

    Builds a tuple

    Builds a tuple

    Definition Classes
    TreeGen
  54. def mkUnattributedRef(sym: Symbol): Tree

    Builds an untyped reference to given symbol.

    Builds an untyped reference to given symbol.

    Definition Classes
    TreeGen
  55. def mkWrapArray(tree: Tree, elemtp: Type): Apply

    Applies a wrapArray call to an array, making it a WrappedArray.

    Applies a wrapArray call to an array, making it a WrappedArray. Don't let a reference type parameter be inferred, in case it's a singleton: apply the element type directly.

    Definition Classes
    TreeGen
  56. def mkZero(tp: Type): Tree

    Builds a tree representing an undefined local, as in var x: T = _ which is appropriate to the given Type.

    Builds a tree representing an undefined local, as in var x: T = _ which is appropriate to the given Type.

    Definition Classes
    TreeGen
  57. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  58. def newModule(accessor: Symbol, tpe: Type): Tree

    Definition Classes
    TreeGen
  59. final def notify(): Unit

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

    Definition Classes
    AnyRef
  61. def paramToArg(vparam: ValDef): Tree with Serializable

    Definition Classes
    TreeGen
  62. def paramToArg(vparam: Symbol): Tree with Serializable

    Definition Classes
    TreeGen
  63. def productConstr: Select

    Definition Classes
    TreeGen
  64. def rootId(name: Name): Select

    Definition Classes
    TreeGen
  65. def rootScalaDot(name: Name): Select

    Definition Classes
    TreeGen
  66. def scalaAnyRefConstr: Select

    Definition Classes
    TreeGen
  67. def scalaDot(name: Name): Select

    Definition Classes
    TreeGen
  68. def scalaFunctionConstr(argtpes: List[Tree], restpe: Tree, abstractFun: Boolean = false): Tree

    Definition Classes
    TreeGen
  69. def scalaScalaObjectConstr: Select

    Definition Classes
    TreeGen
  70. def scalaUnitConstr: Select

    Definition Classes
    TreeGen
  71. def serializableConstr: Select

    Definition Classes
    TreeGen
  72. def stabilize(tree: Tree): Tree

    Replaces tree type with a stable type if possible

    Replaces tree type with a stable type if possible

    Definition Classes
    TreeGen
  73. def stableTypeFor(tree: Tree): Option[Type]

    Computes stable type for a tree if possible

    Computes stable type for a tree if possible

    Definition Classes
    TreeGen
  74. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  75. def toString(): String

    Definition Classes
    AnyRef → Any
  76. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  79. def wildcardStar(tree: Tree): Typed

    Definition Classes
    TreeGen

Inherited from TreeGen

Inherited from AnyRef

Inherited from Any