public class TargetPlatformFilterEvaluator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
TargetPlatformFilterEvaluator.DebugFilterLogger |
private class |
TargetPlatformFilterEvaluator.FilterLogger |
(package private) static class |
TargetPlatformFilterEvaluator.ParsedCapabilityPattern |
Modifier and Type | Field and Description |
---|---|
private TargetPlatformFilterEvaluator.FilterLogger |
filterLogger |
private java.util.List<TargetPlatformFilter> |
filters |
(package private) MavenLogger |
logger |
Constructor and Description |
---|
TargetPlatformFilterEvaluator(java.util.List<TargetPlatformFilter> filters,
MavenLogger logger) |
Modifier and Type | Method and Description |
---|---|
private void |
applyFilter(TargetPlatformFilter filter,
java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits) |
private void |
applyRemoveAllFilter(TargetPlatformFilter filter,
java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits) |
private void |
applyRestrictionFilter(TargetPlatformFilter filter,
java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits) |
void |
filterUnits(java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits)
Applies the filters to the given set.
|
private org.eclipse.equinox.p2.metadata.IProvidedCapability |
getBundleCapability(org.eclipse.equinox.p2.metadata.IInstallableUnit unit) |
private java.util.List<org.eclipse.equinox.p2.metadata.IProvidedCapability> |
getPackageCapabilities(org.eclipse.equinox.p2.metadata.IInstallableUnit unit) |
private boolean |
matches(org.eclipse.equinox.p2.metadata.IInstallableUnit unit,
TargetPlatformFilterEvaluator.ParsedCapabilityPattern pattern) |
private static TargetPlatformFilterEvaluator.ParsedCapabilityPattern |
parsePattern(TargetPlatformFilter.CapabilityPattern pattern,
TargetPlatformFilterEvaluator.ParsedCapabilityPattern defaultValues)
Wraps the given
TargetPlatformFilter.CapabilityPattern in a new instance with default values filled in and
typed version/version range attributes. |
private static org.eclipse.equinox.p2.metadata.Version |
parseVersion(java.lang.String version) |
private static org.eclipse.equinox.p2.metadata.VersionRange |
parseVersionRange(java.lang.String versionRange) |
private final java.util.List<TargetPlatformFilter> filters
final MavenLogger logger
private final TargetPlatformFilterEvaluator.FilterLogger filterLogger
public TargetPlatformFilterEvaluator(java.util.List<TargetPlatformFilter> filters, MavenLogger logger)
public void filterUnits(java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits) throws TargetPlatformFilterSyntaxException
targetPlatformUnits
- The set of units to be filtered. Collection is modified by the method.TargetPlatformFilterSyntaxException
private void applyFilter(TargetPlatformFilter filter, java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits)
private void applyRemoveAllFilter(TargetPlatformFilter filter, java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits)
private void applyRestrictionFilter(TargetPlatformFilter filter, java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> targetPlatformUnits)
private boolean matches(org.eclipse.equinox.p2.metadata.IInstallableUnit unit, TargetPlatformFilterEvaluator.ParsedCapabilityPattern pattern)
private org.eclipse.equinox.p2.metadata.IProvidedCapability getBundleCapability(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
private java.util.List<org.eclipse.equinox.p2.metadata.IProvidedCapability> getPackageCapabilities(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
private static TargetPlatformFilterEvaluator.ParsedCapabilityPattern parsePattern(TargetPlatformFilter.CapabilityPattern pattern, TargetPlatformFilterEvaluator.ParsedCapabilityPattern defaultValues)
TargetPlatformFilter.CapabilityPattern
in a new instance with default values filled in and
typed version/version range attributes.pattern
- The pattern to be wrapped.defaultValues
- Values to substitute for the type and id attributes in case of null
.
Background: The action filter can inherit values from the scope filter to allow
shorter notations.private static org.eclipse.equinox.p2.metadata.Version parseVersion(java.lang.String version)
private static org.eclipse.equinox.p2.metadata.VersionRange parseVersionRange(java.lang.String versionRange)