Class ModifierVisitor<A>

  • All Implemented Interfaces:
    GenericVisitor<Visitable,​A>

    public class ModifierVisitor<A>
    extends Object
    implements GenericVisitor<Visitable,​A>
    This visitor can be used to save time when some specific nodes needs to be changed. To do that just extend this class and override the methods from the nodes who needs to be changed, returning the changed node. Returning null will remove the node. If a node is removed that was required in its parent node, the parent node will be removed too.
    Author:
    Julio Vilmar Gesser