class BindVariableExpression extends Exp
Constructor and Description |
---|
BindVariableExpression(BoundVariable var,
Val val)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor.
|
protected boolean |
eval(Collection candidates,
StoreContext ctx,
Object[] params)
Evaluate the expression for the given group.
|
protected boolean |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Evaluate the expression for the given context candidate and original
candidate.
|
protected Collection |
getCollection(Object values)
Return a collection for the given object, produced by
eval 'ing the value of this expression. |
BoundVariable |
getVariable() |
Collection |
getVariableValues(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return the possible values that variable can take.
|
public BindVariableExpression(BoundVariable var, Val val)
var
- the bound variableval
- the value the variable is bound topublic BoundVariable getVariable()
public Collection getVariableValues(Object candidate, Object orig, StoreContext ctx, Object[] params)
protected Collection getCollection(Object values)
eval
'ing the value of this expression. Simply casts
the object to a collection by default.protected boolean eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
Exp
protected boolean eval(Collection candidates, StoreContext ctx, Object[] params)
Exp
public void acceptVisit(ExpressionVisitor visitor)
Expression
acceptVisit
in interface Expression
acceptVisit
in class Exp
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.