Packages

c

scalafix.internal.rule.Disable

ContextTraverser

class ContextTraverser[Value, Context] extends Traverser

A tree traverser to collect values with a custom context. At every tree node, either builds a new Context or returns a new Value to accumulate. To collect all accumulated values, use result(Tree).

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

Instance Constructors

  1. new ContextTraverser(initContext: Context)(fn: PartialFunction[(Tree, Context), Either[Value, Context]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(tree: Tree): Unit
    Definition Classes
    ContextTraverser → Traverser
  5. def apply(treess: List[List[Tree]])(implicit hack: Hack2): Unit
    Definition Classes
    Traverser
  6. def apply(treesopt: Option[List[Tree]])(implicit hack: Hack1): Unit
    Definition Classes
    Traverser
  7. def apply(trees: List[Tree]): Unit
    Definition Classes
    Traverser
  8. def apply(treeopt: Option[Tree]): Unit
    Definition Classes
    Traverser
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def result(tree: Tree): List[Value]
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Traverser

Inherited from AnyRef

Inherited from Any

Ungrouped