class BoundVariable extends Val
Constructor and Description |
---|
BoundVariable(java.lang.Class type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
castTo(java.lang.Class type)
Cast this value to the given type.
|
protected java.lang.Object |
eval(java.lang.Object candidate,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
Return this value for the given candidate.
|
java.lang.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(java.lang.Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
boolean |
setValue(java.lang.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, setMetaData
public BoundVariable(java.lang.Class type)
public boolean setValue(java.lang.Object value)
public boolean isVariable()
Value
isVariable
in interface Value
isVariable
in class Val
public java.lang.Class getType()
Value
Object
if
the type is unknown.public void setImplicitType(java.lang.Class type)
Value
Object
from Value.getType()
.public void castTo(java.lang.Class type)
protected java.lang.Object eval(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)
Val
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.