Class DirectivesWithoutComments

  • All Implemented Interfaces:
    Iterable<org.xembly.Directive>

    public final class DirectivesWithoutComments
    extends Object
    implements Iterable<org.xembly.Directive>
    Directives without comments.

    This class provides an iterable collection of directives that excludes comments.

    Note: In case of performance issues, we can invert this class and implement DirectivesWithComments that will add comments to the directives.

    Since:
    0.11.0
    • Constructor Detail

      • DirectivesWithoutComments

        public DirectivesWithoutComments​(Iterable<org.xembly.Directive> directives)
        Constructor.
        Parameters:
        directives - Iterable of directives.
    • Method Detail

      • iterator

        public Iterator<org.xembly.Directive> iterator()
        Specified by:
        iterator in interface Iterable<org.xembly.Directive>