treehugger.api

Trees

trait Trees extends AnyRef

Self Type
Universe
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Trees
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AbsModifiers extends AnyRef

  2. case class Alternative(trees: List[Universe.Tree]) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Alternatives of patterns, eliminated by explicitouter, except for occurrences in encoded Switch stmt (=remaining Match(CaseDef(.

  3. case class Annotated(annot: Universe.Tree, arg: Universe.Tree) extends Universe.Tree with Product with Serializable

    A tree that has an annotation attached to it.

  4. abstract type AnnotationType

  5. case class AnonFunc(vparamss: List[List[Universe.ValDef]], tpt: Universe.Tree, rhs: Universe.Tree) extends Universe.Tree with Universe.FuncTree with Product with Serializable

  6. case class AppliedTypeTree(tpt: Universe.Tree, args: List[Universe.Tree]) extends Universe.Tree with Universe.TypTree with Product with Serializable

    Applied type <tpt> [ <args> ], eliminated by RefCheck

  7. case class Apply(fun: Universe.Tree, args: List[Universe.Tree]) extends Universe.GenericApply with Product with Serializable

    Value application

  8. case class ApplyDynamic(qual: Universe.Tree, args: List[Universe.Tree]) extends Universe.Tree with Universe.TermTree with Universe.SymTree with Product with Serializable

    Dynamic value application.

  9. class ApplyImplicitView extends Universe.Apply

  10. class ApplyToImplicitArgs extends Universe.Apply

  11. case class ArrayValue(elemtpt: Universe.Tree, elems: List[Universe.Tree]) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Array of expressions, needs to be translated in backend,

  12. case class Assign(lhs: Universe.Tree, rhs: Universe.Tree) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Assignment

  13. class BackQuotedIdent extends Universe.Ident

  14. case class Bind(name: Universe.Name, body: Universe.Tree) extends Universe.DefTree with Product with Serializable

    Bind of a variable to a rhs pattern, eliminated by explicitouter

  15. case class Block(stats: List[Universe.Tree], expr: Universe.Tree) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Block of expressions (semicolon separated expressions)

  16. case class CaseDef(pat: Universe.Tree, guard: Universe.Tree, body: Universe.Tree) extends Universe.Tree with Product with Serializable

    Case clause in a pattern match, eliminated during explicitouter (except for occurrences in switch statements)

  17. case class ClassDef(mods: Universe.Modifiers, ctormods: Universe.Modifiers, name: Universe.TypeName, tparams: List[Universe.TypeDef], vparams: List[Universe.ValDef], impl: Universe.Template) extends Universe.ImplDef with Product with Serializable

    A class definition.

  18. case class Commented(mods: Universe.Modifiers, comment: List[String], expr: Universe.Tree) extends Universe.Tree with Product with Serializable

    Commented expression

  19. case class CompoundTypeTree(templ: Universe.Template) extends Universe.Tree with Universe.TypTree with Product with Serializable

    Intersection type <parent1> with .

  20. case class DefDef(mods: Universe.Modifiers, name: Universe.Name, tparams: List[Universe.TypeDef], vparamss: List[List[Universe.ValDef]], tpt: Universe.Tree, rhs: Universe.Tree) extends Universe.ValOrDefDef with Product with Serializable

    A method or macro definition.

  21. abstract class DefTree extends Universe.Tree with Universe.SymTree

    A tree which defines a symbol-carrying entity.

  22. sealed trait Enumerator extends Universe.Tree

  23. case class ExistentialTypeTree(tpt: Universe.Tree, whereClauses: List[Universe.Tree]) extends Universe.Tree with Universe.TypTree with Product with Serializable

  24. class FilterTreeTraverser extends Universe.Traverser

  25. class FindTreeTraverser extends Universe.Traverser

  26. case class ForFilter(pos: Position, test: Universe.Tree) extends Universe.Tree with Universe.Enumerator with Product with Serializable

  27. case class ForTree(enums: List[Universe.Enumerator], body: Universe.Tree) extends Universe.Tree with Product with Serializable

  28. case class ForValDef(pos: Position, name: Universe.TermName, tpt: Universe.Tree, rhs: Universe.Tree) extends Universe.ValOrDefDef with Universe.Enumerator with Product with Serializable

  29. case class ForValFrom(pos: Position, name: Universe.TermName, tpt: Universe.Tree, rhs: Universe.Tree) extends Universe.ValOrDefDef with Universe.Enumerator with Product with Serializable

  30. case class ForYieldTree(enums: List[Universe.Enumerator], body: Universe.Tree) extends Universe.Tree with Product with Serializable

  31. class ForeachTreeTraverser extends Universe.Traverser

  32. trait FuncTree extends Universe.Tree with Universe.TermTree

    A tree for a function expression.

  33. case class Function(vparams: List[Universe.ValDef], body: Universe.Tree) extends Universe.Tree with Universe.TermTree with Universe.SymTree with Product with Serializable

    Anonymous function, eliminated by analyzer

  34. abstract class GenericApply extends Universe.Tree with Universe.TermTree

    Common base class for Apply and TypeApply.

  35. case class Ident(name: Universe.Name) extends Universe.Tree with Universe.RefTree with Product with Serializable

    Identifier <name>

  36. case class If(cond: Universe.Tree, thenp: Universe.Tree, elsep: Universe.Tree) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Conditional expression

  37. abstract class ImplDef extends Universe.MemberDef

    A common base class for class and object definitions.

  38. case class Import(expr: Universe.Tree, selectors: List[Universe.ImportSelector]) extends Universe.Tree with Universe.SymTree with Product with Serializable

    Import clause

  39. case class ImportSelector(name: Universe.Name, namePos: Int, rename: Universe.Name, renamePos: Int) extends Product with Serializable

    Import selector

  40. case class Infix(qualifier: Universe.Tree, name: Universe.Name, args: List[Universe.Tree]) extends Universe.Tree with Product with Serializable

    Infix application

  41. case class InfixUnApply(qualifier: Universe.Tree, name: Universe.Name, args: List[Universe.Tree]) extends Universe.Tree with Product with Serializable

    Infix extraction, for example case x :: rest

  42. case class LabelDef(name: Universe.TermName, param: Universe.Tree, rhs: Universe.Tree) extends Universe.DefTree with Universe.TermTree with Product with Serializable

    A labelled expression.

  43. class LazyTreeCopier extends Universe.TreeCopierOps

  44. case class Literal(value: Universe.Constant) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Literal

  45. case class Match(selector: Universe.Tree, cases: List[Universe.CaseDef]) extends Universe.Tree with Universe.TermTree with Product with Serializable

    - Pattern matching expression (before explicitouter)

  46. abstract class MemberDef extends Universe.DefTree

    Common base class for all member definitions: types, classes, objects, packages, vals and vars, defs.

  47. abstract type Modifiers <: Universe.AbsModifiers

  48. case class ModuleDef(mods: Universe.Modifiers, name: Universe.TermName, impl: Universe.Template) extends Universe.ImplDef with Product with Serializable

    An object definition, e.

  49. case class New(tpt: Universe.Tree) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Object instantiation One should always use factory method below to build a user level new.

  50. case class PackageDef(mods: Universe.Modifiers, pid: Universe.RefTree, stats: List[Universe.Tree]) extends Universe.MemberDef with Product with Serializable

    A packaging, such as package pid { stats }

  51. trait RefTree extends Universe.Tree with Universe.SymTree

    A tree which references a symbol-carrying entity.

  52. case class Return(expr: Universe.Tree) extends Universe.Tree with Universe.TermTree with Universe.SymTree with Product with Serializable

    Return expression

  53. case class Select(qualifier: Universe.Tree, name: Universe.Name) extends Universe.Tree with Universe.RefTree with Product with Serializable

    Designator <qualifier> .

  54. case class SelectFromTypeTree(qualifier: Universe.Tree, name: Universe.TypeName) extends Universe.Tree with Universe.TypTree with Universe.RefTree with Product with Serializable

    Type selection <qualifier> # <name>, eliminated by RefCheck

  55. case class SingletonTypeTree(ref: Universe.Tree) extends Universe.Tree with Universe.TypTree with Product with Serializable

    Singleton type, eliminated by RefCheck

  56. case class Star(elem: Universe.Tree) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Repetition of pattern, eliminated by explicitouter

  57. class StrictTreeCopier extends Universe.TreeCopierOps

  58. case class Super(qual: Universe.Tree, mix: Universe.TypeName) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Super reference, qual = corresponding this reference

  59. trait SymTree extends Universe.Tree

    A tree with a mutable symbol field, initialized to NoSymbol.

  60. case class Template(parents: List[Universe.Tree], self: Universe.ValDef, body: List[Universe.Tree]) extends Universe.Tree with Universe.SymTree with Product with Serializable

    Instantiation template of a class or trait

  61. trait TermTree extends Universe.Tree

    A tree for a term.

  62. case class This(qual: Universe.TypeName) extends Universe.Tree with Universe.TermTree with Universe.SymTree with Product with Serializable

    Self reference

  63. case class Throw(expr: Universe.Tree) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Throw expression

  64. class Traverser extends AnyRef

  65. abstract class Tree extends Product

    Tree is the basis for scala's abstract syntax.

  66. abstract type TreeCopier <: Universe.TreeCopierOps

  67. trait TreeCopierOps extends AnyRef

  68. case class Try(block: Universe.Tree, catches: List[Universe.CaseDef], finalizer: Universe.Tree) extends Universe.Tree with Universe.TermTree with Product with Serializable

  69. trait TypTree extends Universe.Tree

    A tree for a type.

  70. case class TypeApply(fun: Universe.Tree, args: List[Universe.Tree]) extends Universe.GenericApply with Product with Serializable

    Explicit type application.

  71. case class TypeBoundsTree(lo: Universe.Tree, hi: Universe.Tree) extends Universe.Tree with Universe.TypTree with Product with Serializable

  72. case class TypeDef(mods: Universe.Modifiers, name: Universe.TypeName, tparams: List[Universe.TypeDef], rhs: Universe.Tree) extends Universe.MemberDef with Product with Serializable

    An abstract type, a type parameter, or a type alias.

  73. case class TypeTree() extends Universe.Tree with Universe.TypTree with Product with Serializable

    A synthetic tree holding an arbitrary type.

  74. case class Typed(expr: Universe.Tree, tpt: Universe.Tree) extends Universe.Tree with Universe.TermTree with Product with Serializable

    Type annotation, eliminated by explicit outer

  75. case class UnApply(fun: Universe.Tree, args: List[Universe.Tree]) extends Universe.Tree with Universe.TermTree with Product with Serializable

  76. case class ValDef(mods: Universe.Modifiers, lhs: Universe.Tree, rhs: Universe.Tree) extends Universe.ValOrDefDef with Product with Serializable

    A constant value definition (this includes vars as well, which differ from vals only in having the MUTABLE flag set in their Modifiers.

  77. abstract class ValOrDefDef extends Universe.MemberDef

    A common base class for ValDefs and DefDefs.

Abstract Value Members

  1. abstract def Modifiers(mods: Set[Modifier.Value] = Set(), privateWithin: Universe.Name = EmptyTypeName, annotations: List[Universe.AnnotationInfo] = List()): Universe.Modifiers

  2. abstract def emptyValDef: Universe.ValDef

  3. abstract def newLazyTreeCopier: Universe.TreeCopier

  4. abstract def newStrictTreeCopier: Universe.TreeCopier

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. def BackQuotedIdent(sym: Universe.Symbol): Universe.BackQuotedIdent

  7. object BackQuotedIdent extends Serializable

  8. object EmptyTree extends Universe.Tree with Universe.TermTree with Product with Serializable

    The empty tree

  9. def ForFilter(test: Universe.Tree): Universe.ForFilter

  10. def ForValDef(name: Universe.TermName, tpt: Universe.Tree, rhs: Universe.Tree): Universe.ForValDef

  11. def ForValFrom(name: Universe.TermName, tpt: Universe.Tree, rhs: Universe.Tree): Universe.ForValFrom

  12. def Ident(sym: Universe.Symbol): Universe.Ident

  13. def Infix(qualifier: Universe.Tree, sym: Universe.Symbol, args: List[Universe.Tree]): Universe.Infix

  14. def InfixUnApply(qualifier: Universe.Tree, sym: Universe.Symbol, args: List[Universe.Tree]): Universe.InfixUnApply

  15. def Select(qualifier: Universe.Tree, sym: Universe.Symbol): Universe.Select

  16. def TypeTree(tp: Universe.Type): Universe.TypeTree

  17. def ValDef(mods: Universe.Modifiers, name: Universe.Name, tpt: Universe.Tree, rhs: Universe.Tree): Universe.ValDef

  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

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

    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. val treeCopy: Universe.TreeCopier

  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. def xtraverse(traverser: Universe.Traverser, tree: Universe.Tree): Unit

    Attributes
    protected

Inherited from AnyRef

Inherited from Any

No Group