TYPE_BOOLEAN, TYPE_CLASS, TYPE_COLLECTION, TYPE_DATE, TYPE_ENUM, TYPE_NUMBER, TYPE_SQ_STRING, TYPE_STRING, TYPE_TIME, TYPE_TIMESTAMP, TYPE_UNKNOWN| Constructor and Description |
|---|
Lit(java.lang.Object val,
int ptype)
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.
|
int |
getParseType()
The type the literal was parsed as.
|
java.lang.Class |
getType()
Return the expected type for this value, or
Object if
the type is unknown. |
java.lang.Object |
getValue()
The value of this literal.
|
java.lang.Object |
getValue(java.lang.Object[] parameters)
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 |
setValue(java.lang.Object val)
The value of this literal.
|
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 Lit(java.lang.Object val, int ptype)
public java.lang.Object getValue()
Literalpublic void setValue(java.lang.Object val)
Literalpublic int getParseType()
LiteralgetParseType in interface Literalpublic java.lang.Object getValue(java.lang.Object[] parameters)
Constantpublic java.lang.Class getType()
ValueObject if
the type is unknown.public void setImplicitType(java.lang.Class type)
ValueObject from Value.getType().setImplicitType in interface Valueprotected 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.