@ProviderType public interface ExpressionCombiner
ExpressionCombiner
can be used to combine requirement expressions
into a single complex requirement expression using the and
,
or
and not
operators.Modifier and Type | Method and Description |
---|---|
AndExpression |
and(RequirementExpression expr1,
RequirementExpression expr2)
Combine two
RequirementExpression s into a requirement expression
using the and operator. |
AndExpression |
and(RequirementExpression expr1,
RequirementExpression expr2,
RequirementExpression... moreExprs)
Combine multiple
RequirementExpression s into a requirement
expression using the and operator. |
IdentityExpression |
identity(Requirement req)
Wrap a
Requirement in an IdentityExpression . |
NotExpression |
not(RequirementExpression expr)
Return the negation of a
RequirementExpression . |
OrExpression |
or(RequirementExpression expr1,
RequirementExpression expr2)
Combine two
RequirementExpression s into a requirement expression
using the or operator. |
OrExpression |
or(RequirementExpression expr1,
RequirementExpression expr2,
RequirementExpression... moreExprs)
Combine multiple
RequirementExpression s into a requirement
expression using the or operator. |
AndExpression and(RequirementExpression expr1, RequirementExpression expr2)
RequirementExpression
s into a requirement expression
using the and
operator.expr1
- The first requirement expression to combine into the
returned requirement expression.expr2
- The second requirement expression to combine into the
returned requirement expressionAndExpression
representing an and
of the
specified requirement expressions.AndExpression and(RequirementExpression expr1, RequirementExpression expr2, RequirementExpression... moreExprs)
RequirementExpression
s into a requirement
expression using the and
operator.expr1
- The first requirement expression to combine into the
returned requirement expression.expr2
- The second requirement expression to combine into the
returned requirement expressionmoreExprs
- Optional, additional requirement expressions to combine
into the returned requirement expression.AndExpression
representing an and
of the
specified requirement expressions.IdentityExpression identity(Requirement req)
Requirement
in an IdentityExpression
. This can be
useful when working with a combination of Requirement
s and
RequirementExpresion
s.req
- The requirement to wrap in a requirement expression.IdentityExpression
representing the specified
requirement.NotExpression not(RequirementExpression expr)
RequirementExpression
.expr
- The requirement expression to negate.NotExpression
representing the not
of the
specified requirement expression.OrExpression or(RequirementExpression expr1, RequirementExpression expr2)
RequirementExpression
s into a requirement expression
using the or
operator.expr1
- The first requirement expression to combine into the
returned requirement expression.expr2
- The second requirement expression to combine into the
returned requirement expressionOrExpression
representing an or
of the
specified requirement expressions.OrExpression or(RequirementExpression expr1, RequirementExpression expr2, RequirementExpression... moreExprs)
RequirementExpression
s into a requirement
expression using the or
operator.expr1
- The first requirement expression to combine into the
returned requirement expression.expr2
- The second requirement expression to combine into the
returned requirement expressionmoreExprs
- Optional, additional requirement expressions to combine
into the returned requirement expression.OrExpression
representing an or
of the
specified requirement expressions.Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0