Trait

inox.ast

TreeDeconstructor

Related Doc: package ast

Permalink

trait TreeDeconstructor extends AnyRef

Meat and bones of tree deconstruction/reconstruction.

Implementations provide methods to extract all useful subtrees from a given tree (Expressions.Expr, Types.Type, ...) as well as a closure that can reconstruct the initial tree based on appropriate arguments.

Instances of Trees must provide a TreeDeconstructor as a means of applying generic transformations to arbitrary extensions of the Trees.Tree interface.

See also

Deconstructors for some interesting use cases

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TreeDeconstructor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Builder[T <: Tree] = (Seq[Identifier], Seq[Trees.Variable], Seq[Trees.Expr], Seq[Trees.Type], Seq[Trees.Flag]) ⇒ T

    Permalink

    Rebuild a tree from the given set of identifiers, variables, subexpressions and types

    Rebuild a tree from the given set of identifiers, variables, subexpressions and types

    Attributes
    protected
  2. type Deconstructed[T <: Tree] = (Seq[Identifier], Seq[Trees.Variable], Seq[Trees.Expr], Seq[Trees.Type], Seq[Trees.Flag], Builder[T])

    Permalink

    Extracted subtrees from a tree as well as a "builder"

    Extracted subtrees from a tree as well as a "builder"

    Attributes
    protected
  3. type DeconstructedFlag = (Seq[Identifier], Seq[Trees.Expr], Seq[Trees.Type], FlagBuilder)

    Permalink

    Extracted subtrees from a flag as well as a "builder"

    Extracted subtrees from a flag as well as a "builder"

    Attributes
    protected
  4. type FlagBuilder = (Seq[Identifier], Seq[Trees.Expr], Seq[Trees.Type]) ⇒ Trees.Flag

    Permalink

    Rebuild a flag from the given set of identifiers, expressions and types

    Rebuild a flag from the given set of identifiers, expressions and types

    Attributes
    protected

Abstract Value Members

  1. abstract val s: Trees

    Permalink
    Attributes
    protected
  2. abstract val t: Trees

    Permalink
    Attributes
    protected

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 val NoExpressions: Seq[Trees.Expr]

    Permalink
    Attributes
    protected
  5. final val NoFlags: Seq[Trees.Flag]

    Permalink
    Attributes
    protected
  6. final val NoIdentifiers: Seq[Identifier]

    Permalink
    Attributes
    protected
  7. final val NoTypes: Seq[Trees.Type]

    Permalink
    Attributes
    protected
  8. final val NoVariables: Seq[Trees.Variable]

    Permalink
    Attributes
    protected
  9. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def deconstruct(f: Trees.Flag): DeconstructedFlag

    Permalink
  12. def deconstruct(tpe: Trees.Type): Deconstructed[Trees.Type]

    Permalink
  13. def deconstruct(expr: Trees.Expr): Deconstructed[Trees.Expr]

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped