Class SimpleElementFilter

    • Constructor Detail

      • SimpleElementFilter

        public SimpleElementFilter()
        Deprecated.
    • Method Detail

      • applies

        public boolean applies​(@Nullable
                               Element<?> element)
        Deprecated.
        Description copied from interface: Filter
        If an element in a forest is of compatible type, does the filter apply to it?
        Specified by:
        applies in interface Filter<Element<?>>
        Parameters:
        element - the element in the forest
        Returns:
        true if the filter applies, false otherwise
      • shouldDescendInto

        public boolean shouldDescendInto​(@Nullable
                                         Object element)
        Deprecated.
        Description copied from interface: Filter
        Should the forest traversal descend into the provided element? It is not guaranteed that the element is of the type required by this parameter, but its children might be.

        Therefore the filter is given a chance to influence the decision even for elements of types that it is not declared to filter.

        Specified by:
        shouldDescendInto in interface Filter<Element<?>>
        Parameters:
        element - the element to be descended into
        Returns:
        true if forest traversal should descend into the element, false otherwise