Object

org.emmalanguage.ast.Trees.TreeAPI

Tree

Related Doc: package TreeAPI

Permalink

object Tree extends AST.Node

Copy / extractor for tree attributes.

Linear Supertypes
AST.Node, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tree
  2. Node
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. lazy val Java: scala.reflect.api.Universe.Select

    Permalink
  5. lazy val Root: scala.reflect.api.Universe.Ident

    Permalink
  6. lazy val Scala: scala.reflect.api.Universe.Select

    Permalink
  7. object With

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def bindings(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns a set of all binding definitions in tree.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def closure(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns the closure of tree as a set.

  12. def closureMod(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns the subset of closure(tree) that is modified within tree.

  13. def curry(lambda: scala.reflect.api.Universe.Function): scala.reflect.api.Universe.Function

    Permalink

    Creates a curried version of the supplied lambda.

  14. def debug(tree: scala.reflect.api.Universe.Tree): String

    Permalink

    Prints tree for debugging (most details).

  15. def defs(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns a set of all term definitions in a tree.

  16. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def inline(bindings: Seq[scala.reflect.api.Universe.ValDef]): (scala.reflect.api.Universe.Tree) ⇒ scala.reflect.api.Universe.Tree

    Permalink

    Inlines a sequence of binding definitions in a tree by replacing LHS with RHS.

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def lambdas(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns a set of all lambdas in tree.

  24. def methods(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.MethodSymbol]

    Permalink

    Returns a set of all method (def) definitions in tree.

  25. def mutations(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns a set of all variable (var) mutations in tree.

  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. def parameters(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns a set of all parameter definitions in tree.

  30. def refresh(symbols: Seq[scala.reflect.api.Universe.Symbol]): (scala.reflect.api.Universe.Tree) ⇒ scala.reflect.api.Universe.Tree

    Permalink

    Replaces a sequence of symbols in a tree with freshly named ones.

  31. def refreshAll(tree: scala.reflect.api.Universe.Tree): scala.reflect.api.Universe.Tree

    Permalink

    Refreshes all symbols in a tree that are defined within (including lambdas).

  32. def refs(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns a set of all term references in a tree.

  33. def rename(aliases: Seq[(scala.reflect.api.Universe.Symbol, scala.reflect.api.Universe.Symbol)], typeMap: Map[scala.reflect.api.Universe.Type, scala.reflect.api.Universe.Type] = Map.empty.withDefault(identity)): (scala.reflect.api.Universe.Tree) ⇒ scala.reflect.api.Universe.Tree

    Permalink

    Replaces a sequence of term symbols with references to their aliases.

    Replaces a sequence of term symbols with references to their aliases. Dependent symbols are changed as well, such as children symbols with renamed owners, and method symbols with renamed (type) parameters.

  34. def replace(find: scala.reflect.api.Universe.Tree, repl: scala.reflect.api.Universe.Tree): (scala.reflect.api.Universe.Tree) ⇒ scala.reflect.api.Universe.Tree

    Permalink

    Replaces occurrences of find with repl in a tree.

  35. def resolveStatic(target: scala.reflect.api.Universe.Symbol): scala.reflect.api.Universe.Tree

    Permalink

    Returns a fully-qualified reference to target (must be static).

  36. def show(tree: scala.reflect.api.Universe.Tree, cleanup: Boolean = false): String

    Permalink

    Prints tree in parseable form.

  37. def showOwners(tree: scala.reflect.api.Universe.Tree): String

    Permalink

    Prints tree including owners as comments.

  38. def showSymbols(tree: scala.reflect.api.Universe.Tree): String

    Permalink

    Prints tree including symbols as comments.

  39. def showTypes(tree: scala.reflect.api.Universe.Tree): String

    Permalink

    Prints tree including types as comments.

  40. def subst(dict: Map[scala.reflect.api.Universe.Symbol, scala.reflect.api.Universe.Tree]): (scala.reflect.api.Universe.Tree) ⇒ scala.reflect.api.Universe.Tree

    Permalink

    Substitutes a dictionary of symbol-value pairs in a tree.

  41. def subst(kvs: Seq[(scala.reflect.api.Universe.Symbol, scala.reflect.api.Universe.Tree)]): (scala.reflect.api.Universe.Tree) ⇒ scala.reflect.api.Universe.Tree

    Permalink

    Substitutes a sequence of symbol-value pairs in a tree.

  42. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Node → AnyRef → Any
  44. def unAscribe(tree: scala.reflect.api.Universe.Tree): scala.reflect.api.Universe.Tree

    Permalink

    Removes all (possibly nested) type ascriptions from tree.

    Removes all (possibly nested) type ascriptions from tree.

    Annotations
    @tailrec()
  45. def values(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns a set of all value (val) definitions in tree.

  46. def variables(tree: scala.reflect.api.Universe.Tree): Set[scala.reflect.api.Universe.TermSymbol]

    Permalink

    Returns a set of all variable (var) definitions in tree.

  47. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AST.Node

Inherited from AnyRef

Inherited from Any

Ungrouped