Class ReplacingVisitor<T extends Visitable>

    • Constructor Detail

      • ReplacingVisitor

        public ReplacingVisitor​(Visitable parent,
                                java.lang.String elementName,
                                java.lang.String pathToReplace,
                                Visitable newValue)
        Parameters:
        parent -
        elementName -
        pathToReplace -
        newValue -
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • visit

        public boolean visit​(java.lang.String elementName,
                             int index,
                             Visitable value)
        Description copied from class: DefaultVisitor
        Subclasses can override this method to provide a default action for all visit methods.
        Specified by:
        visit in interface Visitor
        Overrides:
        visit in class DefaultVisitor
        Returns:
        whether to visit the children of this resource; returns the value of the visitChildren boolean by default