Interface Rewriter


public interface Rewriter
Auxiliary interface for the generated rewriter classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Defines the untyped rewriting process.
    <T> T
    Defines the typed rewriting process.
  • Method Details

    • rewrite

      Object rewrite(Object o)
      Defines the untyped rewriting process.
      Parameters:
      o - the object to rewrite.
      Returns:
      the result of rewriting
    • rewrite_typed

      <T> T rewrite_typed(T o)
      Defines the typed rewriting process.
      Type Parameters:
      T - the common type of rewritten object and result
      Parameters:
      o - the object to rewrite.
      Returns:
      the result of rewriting