| Constructor and Description |
|---|
Param(java.lang.Object key,
java.lang.Class type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.Object |
getParameterKey()
Returns the key of the parameter.
|
java.lang.Class |
getType()
Return the expected type for this value, or
Object if
the type is unknown. |
java.lang.Object |
getValue(java.lang.Object[] params)
Return the value for this constant given the specified parameters.
|
void |
setImplicitType(java.lang.Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
void |
setIndex(int index)
Set the index of this parameter.
|
acceptVisit, eval, evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptVisit, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaDatapublic Param(java.lang.Object key,
java.lang.Class type)
public java.lang.Object getParameterKey()
ParametergetParameterKey in interface Parameterpublic java.lang.Class getType()
ValueObject if
the type is unknown.public void setImplicitType(java.lang.Class type)
ValueObject from Value.getType().setImplicitType in interface Valuepublic void setIndex(int index)
Parameterpublic java.lang.Object getValue(java.lang.Object[] params)
Constantprotected java.lang.Object eval(java.lang.Object candidate,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
ValCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.