Uses of Interface
org.eclipse.equinox.p2.metadata.expression.IExpression
Packages that use IExpression
Package
Description
Provides a simple expression language used to represent requirements and filters in the metadada
Provides classes for metadata query indexing
Provides common classes for the query mechanism.
-
Uses of IExpression in org.eclipse.equinox.p2.metadata.expression
Subinterfaces of IExpression in org.eclipse.equinox.p2.metadata.expressionModifier and TypeInterfaceDescriptioninterface
This is an expression that will need access to the global variableeverything
.interface
An interface that combines the IExpression with the LDAP filter.interface
A match expression is a boolean expression matching a candidate of a specific type.Fields in org.eclipse.equinox.p2.metadata.expression declared as IExpressionModifier and TypeFieldDescriptionstatic final IExpression
ExpressionUtil.FALSE_EXPRESSION
static final IExpression[]
IExpressionFactory.NO_ARGS
static final IExpression
ExpressionUtil.TRUE_EXPRESSION
Methods in org.eclipse.equinox.p2.metadata.expression that return IExpressionModifier and TypeMethodDescriptionIExpressionFactory.all
(IExpression collection, IExpression lambda) Create a collection filter that yields true if thelambda
yields true for all of the elements of thecollection
IExpressionFactory.and
(IExpression... operands) Create a logical and of itsoperands
.IExpressionFactory.array
(IExpression... elements) Create an array of elements.IExpressionFactory.assignment
(IExpression variable, IExpression expression) Creates an expression that represents a variable assignmentIExpressionFactory.at
(IExpression target, IExpression key) Create an lookup ofkey
in thetarget
.IExpressionFactory.collect
(IExpression collection, IExpression lambda) Create an expression that collects the result of evaluating each element in a new collection.IExpressionFactory.condition
(IExpression test, IExpression ifTrue, IExpression ifFalse) Create an expression that first evaluates atest
and then, depending on the outcome, evaluates eitherifTrue
orifFalse
.Creates an expression that evaluates to the constantvalue
.IExpressionFactory.equals
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is equal torhs
.IExpressionFactory.exists
(IExpression collection, IExpression lambda) Create a collection filter that yields true if thelambda
yields true for at least one of the elements of thecollection
IExpressionFactory.first
(IExpression collection, IExpression lambda) Create an expression that yields the first element of thecollection
for which thelambda
yieldstrue
.IExpressionFactory.flatten
(IExpression collection) Intended to be applied on collections of collections.IExpressionFactory.function
(Object function, IExpression... args) Given one of the values in the map returned byIExpressionFactory.getFunctionMap()
, this method returns a function expression.static IExpression
ExpressionUtil.getLHS
(IExpression expression) Obtains the Left Hand Side (LHS) of a binary expression.static IExpression
ExpressionUtil.getOperand
(IExpression expression) Obtains the operand of an unary expressionstatic IExpression[]
ExpressionUtil.getOperands
(IExpression expression) Obtains the operands of an n-ary expressionstatic IExpression
ExpressionUtil.getRHS
(IExpression expression) Obtains the Right Hand Side (RHS) of a binary expression.IExpressionFactory.greater
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is greater thanrhs
.IExpressionFactory.greaterEqual
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is greater than or equal torhs
.IExpressionFactory.indexedParameter
(int index) Creates an indexed parameter expressionIExpressionFactory.intersect
(IExpression c1, IExpression c2) Create an intersection ofc1
andc2
IExpressionFactory.lambda
(IExpression variable, IExpression body) Creates a lambda expression that takes exactly one variable.IExpressionFactory.lambda
(IExpression variable, IExpression[] initialAssignments, IExpression body) Creates a lambda expression that takes more then one variable (currying).IExpressionFactory.latest
(IExpression collection) Create an expression that yields a new collection consisting of the latest version of the elements of thecollection
.IExpressionFactory.less
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is less thanrhs
.IExpressionFactory.lessEqual
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is less than or equal torhs
.IExpressionFactory.limit
(IExpression collection, int count) Create an expression that yields a new collection consisting of the count first elements of the source collection.IExpressionFactory.limit
(IExpression collection, IExpression limit) Create an expression that yields a new collection consisting of the n first elements of the source collection where n is determined bylimit
.IExpressionFactory.matches
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
matchesrhs
.IExpressionFactory.member
(IExpression target, String name) Creates a member accessor expression.IExpressionFactory.memberCall
(IExpression target, String name, IExpression... args) Creates a member call expression.IExpressionFactory.normalize
(List<? extends IExpression> operands, int expressionType) Performs boolean normalization on the expression to create a canonical form.IExpressionFactory.not
(IExpression operand) Creates an expression that negates the result of evaluating itsoperand
.IExpressionFactory.or
(IExpression... operands) Create a logical or of itsoperands
.static IExpression
Create a new expression.Create a new expression.static IExpression
ExpressionUtil.parseQuery
(String expression) Create an arbitrary expression.IExpressionParser.parseQuery
(String exprString) Create an arbitrary expression.IExpressionFactory.pipe
(IExpression... expressions) Create a pipe of expressions.IExpressionFactory.select
(IExpression collection, IExpression lambda) Create an expression that yields a new collection consisting of all elements of thecollection
for which thelambda
yieldstrue
.IExpressionFactory.thisVariable()
Returns the variable that representsthis
in an expressionIExpressionFactory.toExpression
(IQuery<?> query) Wrap anIQuery
as an expression.IExpressionFactory.traverse
(IExpression collection, IExpression lambda) Recursively traverse and collect elements based on a conditionIExpressionFactory.union
(IExpression c1, IExpression c2) Create a union ofc1
andc2
IExpressionFactory.unique
(IExpression collection, IExpression cache) Create an expression that yields a new collection where each element is unique.Creates an expression that represents a variableMethods in org.eclipse.equinox.p2.metadata.expression with parameters of type IExpressionModifier and TypeMethodDescriptionIExpressionFactory.all
(IExpression collection, IExpression lambda) Create a collection filter that yields true if thelambda
yields true for all of the elements of thecollection
IExpressionFactory.and
(IExpression... operands) Create a logical and of itsoperands
.IExpressionFactory.array
(IExpression... elements) Create an array of elements.IExpressionFactory.assignment
(IExpression variable, IExpression expression) Creates an expression that represents a variable assignmentIExpressionFactory.at
(IExpression target, IExpression key) Create an lookup ofkey
in thetarget
.IExpressionFactory.collect
(IExpression collection, IExpression lambda) Create an expression that collects the result of evaluating each element in a new collection.IExpressionFactory.condition
(IExpression test, IExpression ifTrue, IExpression ifFalse) Create an expression that first evaluates atest
and then, depending on the outcome, evaluates eitherifTrue
orifFalse
.<T> IContextExpression
<T> IExpressionFactory.contextExpression
(IExpression expr, Object... parameters) Creates a top level expression that represents a full query.IExpressionFactory.createContext
(IExpression[] variables, Object... params) Create an evaluation context with one single variableIExpressionFactory.equals
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is equal torhs
.IExpressionFactory.exists
(IExpression collection, IExpression lambda) Create a collection filter that yields true if thelambda
yields true for at least one of the elements of thecollection
IExpressionFactory.filterExpression
(IExpression expression) Creates a top level expression suitable for predicate matchingIExpressionFactory.first
(IExpression collection, IExpression lambda) Create an expression that yields the first element of thecollection
for which thelambda
yieldstrue
.IExpressionFactory.flatten
(IExpression collection) Intended to be applied on collections of collections.IExpressionFactory.function
(Object function, IExpression... args) Given one of the values in the map returned byIExpressionFactory.getFunctionMap()
, this method returns a function expression.static IExpression
ExpressionUtil.getLHS
(IExpression expression) Obtains the Left Hand Side (LHS) of a binary expression.static String
ExpressionUtil.getName
(IExpression expression) Obtains the name of a variable or member expression.static IExpression
ExpressionUtil.getOperand
(IExpression expression) Obtains the operand of an unary expressionstatic IExpression[]
ExpressionUtil.getOperands
(IExpression expression) Obtains the operands of an n-ary expressionstatic IExpression
ExpressionUtil.getRHS
(IExpression expression) Obtains the Right Hand Side (RHS) of a binary expression.static Object
ExpressionUtil.getValue
(IExpression expression) Obtains the value of a literal expressionIEvaluationContext.getValue
(IExpression variable) Retrieve the value of the givenvariable
from this contextIExpressionFactory.greater
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is greater thanrhs
.IExpressionFactory.greaterEqual
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is greater than or equal torhs
.IExpressionFactory.intersect
(IExpression c1, IExpression c2) Create an intersection ofc1
andc2
IExpressionFactory.lambda
(IExpression variable, IExpression body) Creates a lambda expression that takes exactly one variable.IExpressionFactory.lambda
(IExpression variable, IExpression[] initialAssignments, IExpression body) Creates a lambda expression that takes more then one variable (currying).IExpressionFactory.latest
(IExpression collection) Create an expression that yields a new collection consisting of the latest version of the elements of thecollection
.IExpressionFactory.less
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is less thanrhs
.IExpressionFactory.lessEqual
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
is less than or equal torhs
.IExpressionFactory.limit
(IExpression collection, int count) Create an expression that yields a new collection consisting of the count first elements of the source collection.IExpressionFactory.limit
(IExpression collection, IExpression limit) Create an expression that yields a new collection consisting of the n first elements of the source collection where n is determined bylimit
.IExpressionFactory.matches
(IExpression lhs, IExpression rhs) Create an expression that tests iflhs
matchesrhs
.<T> IMatchExpression
<T> IExpressionFactory.matchExpression
(IExpression expression, Object... parameters) Creates a parameterized top level expression suitable for predicate matchingIExpressionFactory.member
(IExpression target, String name) Creates a member accessor expression.IExpressionFactory.memberCall
(IExpression target, String name, IExpression... args) Creates a member call expression.IExpressionFactory.not
(IExpression operand) Creates an expression that negates the result of evaluating itsoperand
.IExpressionFactory.or
(IExpression... operands) Create a logical or of itsoperands
.IExpressionFactory.pipe
(IExpression... expressions) Create a pipe of expressions.IExpressionFactory.select
(IExpression collection, IExpression lambda) Create an expression that yields a new collection consisting of all elements of thecollection
for which thelambda
yieldstrue
.void
IEvaluationContext.setValue
(IExpression variable, Object value) Set the current value for the givenvariable
tovalue
IExpressionFactory.traverse
(IExpression collection, IExpression lambda) Recursively traverse and collect elements based on a conditionIExpressionFactory.union
(IExpression c1, IExpression c2) Create a union ofc1
andc2
IExpressionFactory.unique
(IExpression collection, IExpression cache) Create an expression that yields a new collection where each element is unique.boolean
IExpressionVisitor.visit
(IExpression expression) The method that will be called for each expression that is visited.Method parameters in org.eclipse.equinox.p2.metadata.expression with type arguments of type IExpressionModifier and TypeMethodDescriptionIExpressionFactory.normalize
(List<? extends IExpression> operands, int expressionType) Performs boolean normalization on the expression to create a canonical form. -
Uses of IExpression in org.eclipse.equinox.p2.metadata.index
Methods in org.eclipse.equinox.p2.metadata.index with parameters of type IExpressionModifier and TypeMethodDescriptionIIndex.getCandidates
(IEvaluationContext ctx, IExpression variable, IExpression booleanExpr) Obtains the elements that are candidates for the givenbooleanExpr
when applied using the givenvariable
asthis
. -
Uses of IExpression in org.eclipse.equinox.p2.query
Methods in org.eclipse.equinox.p2.query that return IExpressionModifier and TypeMethodDescriptionIQuery.getExpression()
Returns the IExpression backing this query ornull
if this is not an expression query.MatchQuery.getExpression()
Deprecated.Methods in org.eclipse.equinox.p2.query with parameters of type IExpressionModifier and TypeMethodDescriptionstatic <T> IQuery
<T> QueryUtil.createMatchQuery
(Class<? extends T> matchingClass, IExpression matchExpression, Object... parameters) Creates an query that will iterate over all candidates and discriminate all candidates that are not instances ofmatchingClass
or for which the booleanmatchExpression
returns false.static IQuery
<IInstallableUnit> QueryUtil.createMatchQuery
(IExpression matchExpression, Object... parameters) Creates anIInstallableUnit
query that will iterate over all candidates and discriminate by applying the booleanmatchExpression
on each candidate.static <T> IQuery
<T> QueryUtil.createQuery
(Class<? extends T> matchingClass, IExpression expression, Object... parameters) Creates a query that will limit the result to instances of thematchingClass
.static IQuery
<IInstallableUnit> QueryUtil.createQuery
(IExpression expression, Object... parameters) Creates anIInstallableUnit
query based on anexpression
that uses all candidates as input.Constructors in org.eclipse.equinox.p2.query with parameters of type IExpressionModifierConstructorDescriptionExpressionMatchQuery
(Class<? extends T> matchingClass, IExpression expression, Object... parameters) ExpressionQuery
(Class<? extends T> elementClass, IExpression expression, Object... parameters)