Class TargetPlatformFilterEvaluator


  • public class TargetPlatformFilterEvaluator
    extends java.lang.Object
    • Method Detail

      • filterUnits

        public void filterUnits​(java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits)
                         throws TargetPlatformFilterSyntaxException
        Applies the filters to the given set. Prints out log messages. TODO "filter" usually returns filtered results, consider different name
        Parameters:
        targetPlatformUnits - The set of units to be filtered. Collection is modified by the method.
        Throws:
        TargetPlatformFilterSyntaxException
      • applyFilter

        private void applyFilter​(TargetPlatformFilter filter,
                                 java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits)
      • applyRemoveAllFilter

        private void applyRemoveAllFilter​(TargetPlatformFilter filter,
                                          java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits)
      • applyRestrictionFilter

        private void applyRestrictionFilter​(TargetPlatformFilter filter,
                                            java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits)
      • getBundleCapability

        private org.eclipse.equinox.p2.metadata.IProvidedCapability getBundleCapability​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
      • getPackageCapabilities

        private java.util.List<org.eclipse.equinox.p2.metadata.IProvidedCapability> getPackageCapabilities​(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
      • parseVersion

        private static org.eclipse.equinox.p2.metadata.Version parseVersion​(java.lang.String version)
      • parseVersionRange

        private static org.eclipse.equinox.p2.metadata.VersionRange parseVersionRange​(java.lang.String versionRange)