Package aterm :: Module walker
[frames] | no frames]

Module walker



Term walking.

A term walker is a class aimed to process/transform a term as it traverses the term. It is an extension of the Visitor design pattern.

An term walker's interface is very liberal: is up to the caller determine which method to call and which arguments to pass, and the return value is not necessarily a term.

As a walker may change its context as it traverses the tree, sucessive calls to the same walker methods do not necessarily yield the same results.

Classes
  Dispatch
Descriptor which dispatches a term to a method with a name starting with the given prefix, and a suffix determined from the term.
  Walker
Base class for term walkers.