Package org.apache.openjpa.kernel.exps
Class Exp
- java.lang.Object
-
- org.apache.openjpa.kernel.exps.Exp
-
- All Implemented Interfaces:
java.io.Serializable
,Expression
- Direct Known Subclasses:
WhenCondition
,WhenScalar
public class Exp extends java.lang.Object implements Expression
An in-memory representation of anExpression
.- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Exp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor.protected boolean
eval(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)
Evaluate the expression for the given context candidate and original candidate.protected boolean
eval(java.util.Collection candidates, StoreContext ctx, java.lang.Object[] params)
Evaluate the expression for the given group.boolean
evaluate(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)
Evaluate the expression for the given candidate.boolean
evaluate(java.util.Collection candidates, StoreContext ctx, java.lang.Object[] params)
Evaluate the expression for the given candidate group.
-
-
-
Method Detail
-
evaluate
public final boolean evaluate(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)
Evaluate the expression for the given candidate.
-
evaluate
public final boolean evaluate(java.util.Collection candidates, StoreContext ctx, java.lang.Object[] params)
Evaluate the expression for the given candidate group.
-
eval
protected boolean eval(java.lang.Object candidate, java.lang.Object orig, StoreContext ctx, java.lang.Object[] params)
Evaluate the expression for the given context candidate and original candidate.
-
eval
protected boolean eval(java.util.Collection candidates, StoreContext ctx, java.lang.Object[] params)
Evaluate the expression for the given group.
-
acceptVisit
public void acceptVisit(ExpressionVisitor visitor)
Description copied from interface:Expression
Accept a visit from a tree visitor.- Specified by:
acceptVisit
in interfaceExpression
-
-