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, wait
getType, setImplicitType
public 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()
Value
getMetaData
in interface Value
public void setMetaData(ClassMetaData meta)
Value
setMetaData
in interface Value
public boolean isVariable()
Value
isVariable
in interface Value
public boolean isAggregate()
Value
isAggregate
in interface Value
public boolean isXPath()
Value
public void acceptVisit(ExpressionVisitor visitor)
Value
acceptVisit
in interface Value
public void setAlias(String alias)
Value
public Value getSelectAs()
Value
getSelectAs
in interface Value
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.