Class AbstractRegionDigraphVisitor<C>

  • All Implemented Interfaces:
    org.eclipse.equinox.region.RegionDigraphVisitor

    public abstract class AbstractRegionDigraphVisitor<C>
    extends Object
    implements org.eclipse.equinox.region.RegionDigraphVisitor
    AbstractRegionDigraphVisitor is an abstract base class for RegionDigraphVisitor implementations
    • Constructor Detail

      • AbstractRegionDigraphVisitor

        public AbstractRegionDigraphVisitor​(Collection<C> candidates)
    • Method Detail

      • visit

        public boolean visit​(org.eclipse.equinox.region.Region region)
        Specified by:
        visit in interface org.eclipse.equinox.region.RegionDigraphVisitor
      • preEdgeTraverse

        public boolean preEdgeTraverse​(org.eclipse.equinox.region.RegionFilter regionFilter)
        Specified by:
        preEdgeTraverse in interface org.eclipse.equinox.region.RegionDigraphVisitor
      • postEdgeTraverse

        public void postEdgeTraverse​(org.eclipse.equinox.region.RegionFilter regionFilter)
        Specified by:
        postEdgeTraverse in interface org.eclipse.equinox.region.RegionDigraphVisitor
      • contains

        protected abstract boolean contains​(org.eclipse.equinox.region.Region region,
                                            C candidate)
        Determines whether the given region contains the given candidate.
        Parameters:
        region - the Region
        candidate - the candidate
        Returns:
        true if and only if the given region contains the given candidate
      • isAllowed

        protected abstract boolean isAllowed​(C candidate,
                                             org.eclipse.equinox.region.RegionFilter filter)
        Determines whether the given candidate is allowed by the given RegionFilter.
        Parameters:
        candidate - the candidate
        filter - the filter
        Returns:
        true if and only if the given candidate is allowed by the given filter