treehugger.api

Trees

trait Trees extends AnyRef

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

Type Members

  1. abstract class AbsModifiers extends AnyRef

  2. case class Alternative(trees: List[Tree]) extends Tree with 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: Tree, arg: Tree) extends 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[ValDef]], tpt: Tree, rhs: Tree) extends Tree with FuncTree with Product with Serializable

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

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

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

    Value application

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

    Dynamic value application.

  9. class ApplyImplicitView extends Apply

  10. class ApplyToImplicitArgs extends Apply

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

    Array of expressions, needs to be translated in backend,

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

    Assignment

  13. class BackQuotedIdent extends Ident

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

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

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

    Block of expressions (semicolon separated expressions)

  16. case class CaseDef(pat: Tree, guard: Tree, body: Tree) extends 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: Modifiers, ctormods: Modifiers, name: TypeName, tparams: List[TypeDef], vparams: List[ValDef], impl: Template) extends ImplDef with Product with Serializable

    A class definition.

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

    Commented expression

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

    Intersection type <parent1> with .

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

    A method or macro definition.

  21. abstract class DefTree extends Tree with SymTree

    A tree which defines a symbol-carrying entity.

  22. sealed trait Enumerator extends Tree

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

  24. class FilterTreeTraverser extends Traverser

  25. class FindTreeTraverser extends Traverser

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

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

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

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

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

  31. class ForeachTreeTraverser extends Traverser

  32. trait FuncTree extends Tree with TermTree

    A tree for a function expression.

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

    Anonymous function, eliminated by analyzer

  34. abstract class GenericApply extends Tree with TermTree

    Common base class for Apply and TypeApply.

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

    Identifier <name>

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

    Conditional expression

  37. abstract class ImplDef extends MemberDef

    A common base class for class and object definitions.

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

    Import clause

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

    Import selector

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

    Infix application

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

    Infix extraction, for example case x :: rest

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

    A labelled expression.

  43. class LazyTreeCopier extends TreeCopierOps

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

    Literal

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

    - Pattern matching expression (before explicitouter)

  46. abstract class MemberDef extends DefTree

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

  47. abstract type Modifiers <: AbsModifiers

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

    An object definition, e.

  49. case class New(tpt: Tree) extends Tree with 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: Modifiers, pid: RefTree, stats: List[Tree]) extends MemberDef with Product with Serializable

    A packaging, such as package pid { stats }

  51. trait RefTree extends Tree with SymTree

    A tree which references a symbol-carrying entity.

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

    Return expression

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

    Designator <qualifier> .

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

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

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

    Singleton type, eliminated by RefCheck

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

    Repetition of pattern, eliminated by explicitouter

  57. class StrictTreeCopier extends TreeCopierOps

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

    Super reference, qual = corresponding this reference

  59. trait SymTree extends Tree

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

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

    Instantiation template of a class or trait

  61. trait TermTree extends Tree

    A tree for a term.

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

    Self reference

  63. case class Throw(expr: Tree) extends Tree with 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 <: TreeCopierOps

  67. trait TreeCopierOps extends AnyRef

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

  69. trait TypTree extends Tree

    A tree for a type.

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

    Explicit type application.

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

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

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

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

    A synthetic tree holding an arbitrary type.

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

    Type annotation, eliminated by explicit outer

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

  76. case class ValDef(mods: Modifiers, lhs: Tree, rhs: Tree) extends 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 MemberDef

    A common base class for ValDefs and DefDefs.

Abstract Value Members

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

  2. abstract def emptyValDef: ValDef

  3. abstract def newLazyTreeCopier: TreeCopier

  4. abstract def newStrictTreeCopier: 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: Symbol): BackQuotedIdent

  7. object BackQuotedIdent extends Serializable

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

    The empty tree

  9. def ForFilter(test: Tree): ForFilter

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

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

  12. def Ident(sym: Symbol): Ident

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

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

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

  16. def TypeTree(tp: Type): TypeTree

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

  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def clone(): AnyRef

    Attributes
    protected[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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def getClass(): java.lang.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: 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: Traverser, tree: Tree): Unit

    Attributes
    protected

Inherited from AnyRef

Inherited from Any