@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.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 © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0