Class OrigModifier

  • All Implemented Interfaces:
    Visitor

    public class OrigModifier
    extends DepthFirstVisitor
    OrigModifier is a visitor that places "orig()" around varible names and correspondingly corrects positioning fields of all the tokens in tree to accomodate the change. For example, the expression get(this.x) would be changed to get(orig(this.x)).