abstract class Traverser[A] extends AnyRef
A Traverser is a function on Term defined by context-sensitive induction.
The auxiliary methods in the companion object can be used to handle all cases that traverse the object without any change. During the traversal, a value of type State may be used to carry along state.
- Source
- Traverse.scala
- Alphabetic
- By Inheritance
- Traverser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Traverser()
Type Members
-
type
State = A
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(t: Term, init: State, con: Context = Context()): Term
the main method to call the traverser, context defaults to empty
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose(that: Traverser[A]): Traverser[A]
diagrammatic composition (first this, then that)
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
toTranslator(newInit: () ⇒ A): UniformTranslator
this traverser as a translator
this traverser as a translator
- newInit
creates a fresh initial state
- def traverseContext(cont: Context)(implicit con: Context, state: State): Context
-
def
traverseObject(obj: Obj)(implicit con: Context, state: State): ThisType
traverses any object by mapping all the terms in it
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()