Class ElementsVisitorUtils


  • public class ElementsVisitorUtils
    extends java.lang.Object
    Utility methods for element visitors.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean visitDeepElements​(JRVisitor visitor)
      Determines whether a visitor is to visit deep/nested elements.
      static void visitElements​(JRVisitor visitor, java.util.Collection<? extends JRVisitable> elements)
      Visits a collections of elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                         java.util.Collection<? extends JRVisitable> elements)
        Visits a collections of elements.
        Parameters:
        visitor - the visitor
        elements - the elements