Uses of Interface
org.eclipse.equinox.p2.metadata.expression.IExpression
-
Packages that use IExpression Package Description org.eclipse.equinox.p2.metadata.expression Provides a simple expression language used to represent requirements and filters in the metadadaorg.eclipse.equinox.p2.metadata.index Provides classes for metadata query indexingorg.eclipse.equinox.p2.query 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.expression Modifier and Type Interface Description interface
IContextExpression<T>
This is an expression that will need access to the global variableeverything
.interface
IFilterExpression
An interface that combines the IExpression with the LDAP filter.interface
IMatchExpression<T>
A match expression is a boolean expression matching a candidate of a specific type.Fields in org.eclipse.equinox.p2.metadata.expression declared as IExpression Modifier and Type Field Description static IExpression
ExpressionUtil. FALSE_EXPRESSION
static IExpression[]
IExpressionFactory. NO_ARGS
static IExpression
ExpressionUtil. TRUE_EXPRESSION
Methods in org.eclipse.equinox.p2.metadata.expression that return IExpression Modifier and Type Method Description IExpression
IExpressionFactory. all(IExpression collection, IExpression lambda)
Create a collection filter that yields true if thelambda
yields true for all of the elements of thecollection
IExpression
IExpressionFactory. and(IExpression... operands)
Create a logical and of itsoperands
.IExpression
IExpressionFactory. array(IExpression... elements)
Create an array of elements.IExpression
IExpressionFactory. assignment(IExpression variable, IExpression expression)
Creates an expression that represents a variable assignmentIExpression
IExpressionFactory. at(IExpression target, IExpression key)
Create an lookup ofkey
in thetarget
.IExpression
IExpressionFactory. collect(IExpression collection, IExpression lambda)
Create an expression that collects the result of evaluating each element in a new collection.IExpression
IExpressionFactory. condition(IExpression test, IExpression ifTrue, IExpression ifFalse)
Create an expression that first evaluates atest
and then, depending on the outcome, evaluates eitherifTrue
orifFalse
.IExpression
IExpressionFactory. constant(Object value)
Creates an expression that evaluates to the constantvalue
.IExpression
IExpressionFactory. equals(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is equal torhs
.IExpression
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
IExpression
IExpressionFactory. first(IExpression collection, IExpression lambda)
Create an expression that yields the first element of thecollection
for which thelambda
yieldstrue
.IExpression
IExpressionFactory. flatten(IExpression collection)
Intended to be applied on collections of collections.IExpression
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.IExpression
IExpressionFactory. greater(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is greater thanrhs
.IExpression
IExpressionFactory. greaterEqual(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is greater than or equal torhs
.IExpression
IExpressionFactory. indexedParameter(int index)
Creates an indexed parameter expressionIExpression
IExpressionFactory. intersect(IExpression c1, IExpression c2)
Create an intersection ofc1
andc2
IExpression
IExpressionFactory. lambda(IExpression variable, IExpression body)
Creates a lambda expression that takes exactly one variable.IExpression
IExpressionFactory. lambda(IExpression variable, IExpression[] initialAssignments, IExpression body)
Creates a lambda expression that takes more then one variable (currying).IExpression
IExpressionFactory. latest(IExpression collection)
Create an expression that yields a new collection consisting of the latest version of the elements of thecollection
.IExpression
IExpressionFactory. less(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is less thanrhs
.IExpression
IExpressionFactory. lessEqual(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is less than or equal torhs
.IExpression
IExpressionFactory. limit(IExpression collection, int count)
Create an expression that yields a new collection consisting of the count first elements of the source collection.IExpression
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
.IExpression
IExpressionFactory. matches(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
matchesrhs
.IExpression
IExpressionFactory. member(IExpression target, String name)
Creates a member accessor expression.IExpression
IExpressionFactory. memberCall(IExpression target, String name, IExpression... args)
Creates a member call expression.IExpression
IExpressionFactory. normalize(List<? extends IExpression> operands, int expressionType)
Performs boolean normalization on the expression to create a canonical form.IExpression
IExpressionFactory. not(IExpression operand)
Creates an expression that negates the result of evaluating itsoperand
.IExpression
IExpressionFactory. or(IExpression... operands)
Create a logical or of itsoperands
.static IExpression
ExpressionUtil. parse(String expression)
Create a new expression.IExpression
IExpressionParser. parse(String exprString)
Create a new expression.static IExpression
ExpressionUtil. parseQuery(String expression)
Create an arbitrary expression.IExpression
IExpressionParser. parseQuery(String exprString)
Create an arbitrary expression.IExpression
IExpressionFactory. pipe(IExpression... expressions)
Create a pipe of expressions.IExpression
IExpressionFactory. select(IExpression collection, IExpression lambda)
Create an expression that yields a new collection consisting of all elements of thecollection
for which thelambda
yieldstrue
.IExpression
IExpressionFactory. thisVariable()
Returns the variable that representsthis
in an expressionIExpression
IExpressionFactory. toExpression(IQuery<?> query)
Wrap anIQuery
as an expression.IExpression
IExpressionFactory. traverse(IExpression collection, IExpression lambda)
Recursively traverse and collect elements based on a conditionIExpression
IExpressionFactory. union(IExpression c1, IExpression c2)
Create a union ofc1
andc2
IExpression
IExpressionFactory. unique(IExpression collection, IExpression cache)
Create an expression that yields a new collection where each element is unique.IExpression
IExpressionFactory. variable(String name)
Creates an expression that represents a variableMethods in org.eclipse.equinox.p2.metadata.expression with parameters of type IExpression Modifier and Type Method Description IExpression
IExpressionFactory. all(IExpression collection, IExpression lambda)
Create a collection filter that yields true if thelambda
yields true for all of the elements of thecollection
IExpression
IExpressionFactory. and(IExpression... operands)
Create a logical and of itsoperands
.IExpression
IExpressionFactory. array(IExpression... elements)
Create an array of elements.IExpression
IExpressionFactory. assignment(IExpression variable, IExpression expression)
Creates an expression that represents a variable assignmentIExpression
IExpressionFactory. at(IExpression target, IExpression key)
Create an lookup ofkey
in thetarget
.IExpression
IExpressionFactory. collect(IExpression collection, IExpression lambda)
Create an expression that collects the result of evaluating each element in a new collection.IExpression
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.IEvaluationContext
IExpressionFactory. createContext(IExpression[] variables, Object... params)
Create an evaluation context with one single variableIExpression
IExpressionFactory. equals(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is equal torhs
.IExpression
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
IFilterExpression
IExpressionFactory. filterExpression(IExpression expression)
Creates a top level expression suitable for predicate matchingIExpression
IExpressionFactory. first(IExpression collection, IExpression lambda)
Create an expression that yields the first element of thecollection
for which thelambda
yieldstrue
.IExpression
IExpressionFactory. flatten(IExpression collection)
Intended to be applied on collections of collections.IExpression
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 expressionObject
IEvaluationContext. getValue(IExpression variable)
Retrieve the value of the givenvariable
from this contextIExpression
IExpressionFactory. greater(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is greater thanrhs
.IExpression
IExpressionFactory. greaterEqual(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is greater than or equal torhs
.IExpression
IExpressionFactory. intersect(IExpression c1, IExpression c2)
Create an intersection ofc1
andc2
IExpression
IExpressionFactory. lambda(IExpression variable, IExpression body)
Creates a lambda expression that takes exactly one variable.IExpression
IExpressionFactory. lambda(IExpression variable, IExpression[] initialAssignments, IExpression body)
Creates a lambda expression that takes more then one variable (currying).IExpression
IExpressionFactory. latest(IExpression collection)
Create an expression that yields a new collection consisting of the latest version of the elements of thecollection
.IExpression
IExpressionFactory. less(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is less thanrhs
.IExpression
IExpressionFactory. lessEqual(IExpression lhs, IExpression rhs)
Create an expression that tests iflhs
is less than or equal torhs
.IExpression
IExpressionFactory. limit(IExpression collection, int count)
Create an expression that yields a new collection consisting of the count first elements of the source collection.IExpression
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
.IExpression
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 matchingIExpression
IExpressionFactory. member(IExpression target, String name)
Creates a member accessor expression.IExpression
IExpressionFactory. memberCall(IExpression target, String name, IExpression... args)
Creates a member call expression.IExpression
IExpressionFactory. not(IExpression operand)
Creates an expression that negates the result of evaluating itsoperand
.IExpression
IExpressionFactory. or(IExpression... operands)
Create a logical or of itsoperands
.IExpression
IExpressionFactory. pipe(IExpression... expressions)
Create a pipe of expressions.IExpression
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
IExpression
IExpressionFactory. traverse(IExpression collection, IExpression lambda)
Recursively traverse and collect elements based on a conditionIExpression
IExpressionFactory. union(IExpression c1, IExpression c2)
Create a union ofc1
andc2
IExpression
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 IExpression Modifier and Type Method Description IExpression
IExpressionFactory. 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 IExpression Modifier and Type Method Description Iterator<T>
IIndex. 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 IExpression Modifier and Type Method Description IExpression
IQuery. getExpression()
Returns the IExpression backing this query ornull
if this is not an expression query.IExpression
MatchQuery. getExpression()
Deprecated.Methods in org.eclipse.equinox.p2.query with parameters of type IExpression Modifier and Type Method Description static <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 IExpression Constructor Description ExpressionMatchQuery(Class<? extends T> matchingClass, IExpression expression, Object... parameters)
ExpressionQuery(Class<? extends T> elementClass, IExpression expression, Object... parameters)
-