Class FreshVarSubstitution

All Implemented Interfaces:
Substitution, Comparable<Substitution>

public class FreshVarSubstitution extends TreeMapSubstitution
Substitution that maps terms to freshly generated variables.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
See Also:
  • Constructor Details

    • FreshVarSubstitution

      public FreshVarSubstitution()
      Creates a substitution backed by a default fresh-variable generator.
    • FreshVarSubstitution

      public FreshVarSubstitution(VariableGenerator gen)
      Creates a substitution using the provided generator.
      Parameters:
      gen - the generator used to create fresh variables
    • FreshVarSubstitution

      public FreshVarSubstitution(VariableGenerator gen, Iterable<Term> termsToSubstitute)
      Creates a substitution and eagerly substitutes the provided terms.
      Parameters:
      gen - the generator used to create fresh variables
      termsToSubstitute - the initial terms to substitute
  • Method Details

    • createImageOf

      public Term createImageOf(Term term)
      Description copied from interface: Substitution
      Get the image of the given term by this substitution, if there is no image specified return the term itself.
      Specified by:
      createImageOf in interface Substitution
      Overrides:
      createImageOf in class AbstractMapBasedSubstitution
      Parameters:
      term - the term to substitute
      Returns:
      the image of the specified term.
    • appendTo

      void appendTo(StringBuilder sb)
      Appends this object representation to the provided builder.
      Parameters:
      sb - the target builder