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(Object val,
int ptype)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate.
|
int |
getParseType()
The type the literal was parsed as.
|
Class |
getType()
Return the expected type for this value, or
Object if
the type is unknown. |
Object |
getValue()
The value of this literal.
|
Object |
getValue(Object[] parameters)
Return the value for this constant given the specified parameters.
|
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
void |
setValue(Object val)
The value of this literal.
|
acceptVisit, eval, evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptVisit, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData
public Lit(Object val, int ptype)
public Object getValue()
Literal
public void setValue(Object val)
Literal
public int getParseType()
Literal
getParseType
in interface Literal
public Object getValue(Object[] parameters)
Constant
public Class getType()
Value
Object
if
the type is unknown.public void setImplicitType(Class type)
Value
Object
from Value.getType()
.setImplicitType
in interface Value
Copyright © 2006–2013 Apache Software Foundation. All rights reserved.