Class SubstitutionVisitor

  • All Implemented Interfaces:
    IConstraintTreeVisitor

    public class SubstitutionVisitor
    extends BasicCopyVisitor
    Substitutes variables in a constraint syntax tree by copying the syntax tree. May be reused after calling clear(). #addVariableMapping(AbstractVariable, Variable) takes precedence over #setMappings(Map).
    Author:
    Sizonenko, Holger Eichelberger
    • Constructor Detail

      • SubstitutionVisitor

        public SubstitutionVisitor()
        Creates a copy visitor without mapping.
      • SubstitutionVisitor

        public SubstitutionVisitor​(ContextStack globalMapping)
        Creates a copy visitor with explicit mapping.
        Parameters:
        globalMapping - a mapping from variable declarations to new access expressions, existing variable declarations are taken over if no mapping is given, may be null in case of no mapping at all
        See Also:
        setMappings(ContextStack)