Interface Rewriting.Step<O,A,E>

Type Parameters:
O - the type of objects to rewrite
A - the type of dynamic arguments of the rewriting process
E - the type of static environments of the rewriting process
Enclosing class:
Rewriting<O,A,E>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Rewriting.Step<O,A,E>
Interface for functions that rewrite an object.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    step(O original, A argument, Rewriting<O,A,E>.Context context)
    Rewrite an object, and its neighborhood recursively.
  • Method Details

    • step

      O step(O original, A argument, Rewriting<O,A,E>.Context context)
      Rewrite an object, and its neighborhood recursively.

      A context-sensitive callback to the rewriting process is passed to this operation. It can be used both for recursive rewriting of the neighborhood of the object, and for accessing the static environment.

      Parameters:
      original - the object to rewrite
      argument - the dynamic argument to the rewriting process, or null if not applicable
      context - callback into the context of the rewriting process
      Returns:
      the rewritten result with recursively rewritten neighborhood
      See Also: