class BoundVariable extends Val
| Constructor and Description |
|---|
BoundVariable(Class type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
castTo(Class type)
Cast this value to the given type.
|
protected Object |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate.
|
Class |
getType()
Return the expected type for this value, or
Object if
the type is unknown. |
boolean |
isVariable()
Return true if this value is a variable.
|
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
boolean |
setValue(Object value)
Set the value this variable should take for the current iteration.
|
acceptVisit, eval, evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isXPath, setAlias, setMetaDatapublic BoundVariable(Class type)
public boolean setValue(Object value)
public boolean isVariable()
ValueisVariable in interface ValueisVariable in class Valpublic Class getType()
ValueObject if
the type is unknown.public void setImplicitType(Class type)
ValueObject from Value.getType().public void castTo(Class type)
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.