Package org.eclipse.tycho.artifacts
Class TargetPlatformFilter
- java.lang.Object
-
- org.eclipse.tycho.artifacts.TargetPlatformFilter
-
public final class TargetPlatformFilter extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTargetPlatformFilter.CapabilityPatternstatic classTargetPlatformFilter.CapabilityTypestatic classTargetPlatformFilter.FilterAction
-
Field Summary
Fields Modifier and Type Field Description private TargetPlatformFilter.FilterActionactionprivate TargetPlatformFilter.CapabilityPatternactionPatternprivate TargetPlatformFilter.CapabilityPatternscopePattern
-
Constructor Summary
Constructors Modifier Constructor Description privateTargetPlatformFilter(TargetPlatformFilter.CapabilityPattern scopePattern, TargetPlatformFilter.FilterAction action, TargetPlatformFilter.CapabilityPattern actionPattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetPlatformFilter.FilterActiongetAction()Returns the action to be performed.TargetPlatformFilter.CapabilityPatterngetActionPattern()Returns the pattern for theTargetPlatformFilter.FilterAction.RESTRICTaction.TargetPlatformFilter.CapabilityPatterngetScopePattern()Returns the pattern to determine the scope of the filter, i.e.static TargetPlatformFilterremoveAllFilter(TargetPlatformFilter.CapabilityPattern scopePattern)static TargetPlatformFilterrestrictionFilter(TargetPlatformFilter.CapabilityPattern scopePattern, TargetPlatformFilter.CapabilityPattern restrictionPattern)java.lang.StringtoString()
-
-
-
Field Detail
-
scopePattern
private final TargetPlatformFilter.CapabilityPattern scopePattern
-
action
private final TargetPlatformFilter.FilterAction action
-
actionPattern
private final TargetPlatformFilter.CapabilityPattern actionPattern
-
-
Constructor Detail
-
TargetPlatformFilter
private TargetPlatformFilter(TargetPlatformFilter.CapabilityPattern scopePattern, TargetPlatformFilter.FilterAction action, TargetPlatformFilter.CapabilityPattern actionPattern)
-
-
Method Detail
-
removeAllFilter
public static TargetPlatformFilter removeAllFilter(TargetPlatformFilter.CapabilityPattern scopePattern)
-
restrictionFilter
public static TargetPlatformFilter restrictionFilter(TargetPlatformFilter.CapabilityPattern scopePattern, TargetPlatformFilter.CapabilityPattern restrictionPattern)
-
getScopePattern
public TargetPlatformFilter.CapabilityPattern getScopePattern()
Returns the pattern to determine the scope of the filter, i.e. the set of units to be processed by the filter.
-
getAction
public TargetPlatformFilter.FilterAction getAction()
Returns the action to be performed.
-
getActionPattern
public TargetPlatformFilter.CapabilityPattern getActionPattern()
Returns the pattern for theTargetPlatformFilter.FilterAction.RESTRICTaction. All units in scope which do not match this pattern shall be removed.If the action pattern returns
nullfor its type, or type and id attributes, these values shall be inherited from the scope pattern. This ensures that filters with a short <restrictTo> pattern with only a single <version> or <versionRange> attribute work as expected.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-