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