|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.query.eval.ExpressionHelper
public class ExpressionHelper
Series of helper methods for processing expressions.
Nested Class Summary | |
---|---|
static class |
ExpressionHelper.ContainsConstantResolver
Resolve Collection.contains(Object) with the argument being a concrete value (a 'constant'). |
static class |
ExpressionHelper.ContainsVariableResolver
Resolve Collection.contains(Object) with the argument being a query variable. |
Constructor Summary | |
---|---|
ExpressionHelper()
|
Method Summary | |
---|---|
static MethodEvaluator |
createMethodEvaluatorForMethodOfClass(StoreManager storeMgr,
ClassLoaderResolver clr,
String clsName,
String method)
Accessor for the evaluator object for use of method xxx(...) of class Yyy in queries. |
static Object |
getEvaluatedInvokeArgument(QueryEvaluator queryEval,
InvokeExpression expr)
Method to evaluate the argument for passing in to a method invocation. |
static Object[] |
getEvaluatedInvokeArguments(QueryEvaluator queryEval,
InvokeExpression expr)
Method to evaluate the arguments for passing in to a method invocation. |
static String |
getOperatorAsJDOQLSymbol(Expression.Operator operator,
boolean negate)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionHelper()
Method Detail |
---|
public static MethodEvaluator createMethodEvaluatorForMethodOfClass(StoreManager storeMgr, ClassLoaderResolver clr, String clsName, String method)
storeMgr
- Store Managerclr
- ClassLoader resolverclsName
- The class on which to invoke the methodmethod
- The method to call on the class
public static Object[] getEvaluatedInvokeArguments(QueryEvaluator queryEval, InvokeExpression expr)
queryEval
- The QueryEvaluatorexpr
- The invoke expression
public static Object getEvaluatedInvokeArgument(QueryEvaluator queryEval, InvokeExpression expr)
queryEval
- The QueryEvaluatorexpr
- The invoke expression
public static String getOperatorAsJDOQLSymbol(Expression.Operator operator, boolean negate)
|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |