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 class
TargetPlatformFilter.CapabilityPattern
static class
TargetPlatformFilter.CapabilityType
static class
TargetPlatformFilter.FilterAction
-
Field Summary
Fields Modifier and Type Field Description private TargetPlatformFilter.FilterAction
action
private TargetPlatformFilter.CapabilityPattern
actionPattern
private TargetPlatformFilter.CapabilityPattern
scopePattern
-
Constructor Summary
Constructors Modifier Constructor Description private
TargetPlatformFilter(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.FilterAction
getAction()
Returns the action to be performed.TargetPlatformFilter.CapabilityPattern
getActionPattern()
Returns the pattern for theTargetPlatformFilter.FilterAction.RESTRICT
action.TargetPlatformFilter.CapabilityPattern
getScopePattern()
Returns the pattern to determine the scope of the filter, i.e.static TargetPlatformFilter
removeAllFilter(TargetPlatformFilter.CapabilityPattern scopePattern)
static TargetPlatformFilter
restrictionFilter(TargetPlatformFilter.CapabilityPattern scopePattern, TargetPlatformFilter.CapabilityPattern restrictionPattern)
java.lang.String
toString()
-
-
-
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.RESTRICT
action. All units in scope which do not match this pattern shall be removed.If the action pattern returns
null
for 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:
toString
in classjava.lang.Object
-
-