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(java.util.Collection candidates,
StoreContext ctx,
java.lang.Object[] params)
Evaluate the expression for the given group.
|
protected boolean |
eval(java.lang.Object candidate,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
Evaluate the expression for the given context candidate and original
candidate.
|
protected java.util.Collection |
getCollection(java.lang.Object values)
Return a collection for the given object, produced by
eval 'ing the value of this expression. |
BoundVariable |
getVariable() |
java.util.Collection |
getVariableValues(java.lang.Object candidate,
java.lang.Object orig,
StoreContext ctx,
java.lang.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 java.util.Collection getVariableValues(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)
protected java.util.Collection getCollection(java.lang.Object values)
eval
'ing the value of this expression. Simply casts
the object to a collection by default.protected boolean eval(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)
Exp
protected boolean eval(java.util.Collection candidates, StoreContext ctx, java.lang.Object[] params)
Exp
public void acceptVisit(ExpressionVisitor visitor)
Expression
acceptVisit
in interface Expression
acceptVisit
in class Exp
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.