public abstract class Val extends java.lang.Object implements Value
Value.| Constructor and Description |
|---|
Val() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor.
|
protected java.util.Collection |
eval(java.util.Collection candidates,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
Return a list of values resulting from evaluating each given
candidate.
|
protected abstract 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 |
evaluate(java.util.Collection candidates,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
Return this value as an aggregate projection on the given group
of candidates.
|
java.lang.Object |
evaluate(java.lang.Object candidate,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
Return this value as a projection on the given candidate.
|
java.lang.String |
getAlias()
Return select item alias
|
ClassMetaData |
getMetaData()
Return any associated persistent type.
|
java.lang.String |
getName() |
Path |
getPath() |
Value |
getSelectAs()
Return 'this' concrete class if alias is set, otherwise null
|
boolean |
isAggregate()
Return true if this value is an aggregate.
|
boolean |
isVariable()
Return true if this value is a variable.
|
boolean |
isXPath()
Return true if this value is an XML Path.
|
void |
setAlias(java.lang.String alias)
Set select item alias
|
void |
setMetaData(ClassMetaData meta)
Associate a persistent type with this value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetType, setImplicitTypepublic final java.lang.Object evaluate(java.lang.Object candidate,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
public final java.lang.Object evaluate(java.util.Collection candidates,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
protected abstract java.lang.Object eval(java.lang.Object candidate,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
protected java.util.Collection eval(java.util.Collection candidates,
java.lang.Object orig,
StoreContext ctx,
java.lang.Object[] params)
#eval(Object,Object,StoreContext,Map) for
each instance and packs the return value into a new list. Aggregates
should override.public ClassMetaData getMetaData()
ValuegetMetaData in interface Valuepublic void setMetaData(ClassMetaData meta)
ValuesetMetaData in interface Valuepublic boolean isVariable()
ValueisVariable in interface Valuepublic boolean isAggregate()
ValueisAggregate in interface Valuepublic boolean isXPath()
Valuepublic void acceptVisit(ExpressionVisitor visitor)
ValueacceptVisit in interface Valuepublic java.lang.String getAlias()
Valuepublic void setAlias(java.lang.String alias)
Valuepublic Value getSelectAs()
ValuegetSelectAs in interface ValueCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.