Class ElementsVisitorUtils


  • public class ElementsVisitorUtils
    extends Object
    Utility methods for element visitors.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Constructor Detail

      • ElementsVisitorUtils

        public ElementsVisitorUtils()
    • Method Detail

      • visitDeepElements

        public static boolean visitDeepElements​(JRVisitor visitor)
        Determines whether a visitor is to visit deep/nested elements.
        Parameters:
        visitor - the visitor
        Returns:
        whether a visitor is to visit deep/nested elements
      • visitElements

        public static void visitElements​(JRVisitor visitor,
                                         Collection<? extends JRVisitable> elements)
        Visits a collections of elements.
        Parameters:
        visitor - the visitor
        elements - the elements