public abstract class Val extends 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 Collection |
eval(Collection candidates,
Object orig,
StoreContext ctx,
Object[] params)
Return a list of values resulting from evaluating each given
candidate.
|
protected abstract Object |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate.
|
Object |
evaluate(Collection candidates,
Object orig,
StoreContext ctx,
Object[] params)
Return this value as an aggregate projection on the given group
of candidates.
|
Object |
evaluate(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value as a projection on the given candidate.
|
String |
getAlias()
Return select item alias
|
ClassMetaData |
getMetaData()
Return any associated persistent type.
|
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(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 Object evaluate(Object candidate, Object orig, StoreContext ctx, Object[] params)
public final Object evaluate(Collection candidates, Object orig, StoreContext ctx, Object[] params)
protected abstract Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
protected Collection eval(Collection candidates, Object orig, StoreContext ctx, 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 void setAlias(String alias)
Valuepublic Value getSelectAs()
ValuegetSelectAs in interface ValueCopyright © 2006–2022 Apache Software Foundation. All rights reserved.