public static Object evaluate(String expression, ExecutionContext executionContext, VariableResolver variableResolver, FunctionMapper functionMapper) { return evaluate(expression, executionContext, Object.class, variableResolver, functionMapper); }
public Object evaluate( VariableResolver vResolver ) throws ELException { return evaluator.evaluate(this.expression, this.expectedType, vResolver, this.fMapper); } }
/** * * Logs a warning **/ public void logWarning (String pTemplate) throws ELException { if (isLoggingWarning ()) { logWarning (pTemplate, null); } }
/** * * Returns the BeanInfoIndexedProperty for the specified property in the given * class, or null if not found. */ public static BeanInfoIndexedProperty getBeanInfoIndexedProperty(Class pClass, String pIndexedPropertyName, Logger pLogger) throws ELException { return getBeanInfoManager(pClass).getIndexedProperty(pIndexedPropertyName, pLogger); }
/** * * Returns the expression in the expression language syntax **/ public String getExpressionString () { return toStringToken ((String) getValue ()); }
/** * * Returns the expression in the expression language syntax */ public String getExpressionString() { return "[" + mIndex.getExpressionString() + "]"; }
/** * * Gets the value of the index */ Object evaluateIndex(VariableResolver pResolver, FunctionMapper functions, Logger pLogger) throws ELException { return mIndex.evaluate(pResolver, functions, pLogger); }
/** * * Constructor **/ public IntegerLiteral (String pToken) { super (getValueFromToken (pToken)); }
/** * * Applies the operator to the given value **/ public Object apply (Object pLeft, Object pRight, Logger pLogger) throws ELException { return Coercions.applyEqualityOperator (pLeft, pRight, this, pLogger); }
/** * * Applies the operator to the given double values, returning a double **/ public abstract double apply (double pLeft, double pRight);
/** * * Returns the expression in the expression language syntax **/ public String getExpressionString () { return (getValue () == Boolean.TRUE) ? "true" : "false"; }
/** * * Returns the BeanInfo for the class */ BeanInfo getBeanInfo(Logger pLogger) throws ELException { checkInitialized(pLogger); return mBeanInfo; }
/** * * Logs a warning **/ public void logWarning (Throwable pRootCause) throws ELException { if (isLoggingWarning ()) { logWarning (null, pRootCause); } }
/** * * Returns the BeanInfoIndexedProperty for the specified property in the given * class, or null if not found. */ public static BeanInfoIndexedProperty getBeanInfoIndexedProperty(Class pClass, String pIndexedPropertyName, Logger pLogger) throws ELException { return getBeanInfoManager(pClass).getIndexedProperty(pIndexedPropertyName, pLogger); }
/** * * Returns the expression in the expression language syntax **/ public String getExpressionString () { return "( " + mCondition.getExpressionString() + " ? " + mTrueBranch.getExpressionString() + " : " + mFalseBranch.getExpressionString() + " )"; }
/** * * Gets the value of the index */ Object evaluateIndex(VariableResolver pResolver, FunctionMapper functions, Logger pLogger) throws ELException { return mIndex.evaluate(pResolver, functions, pLogger); }
/** * * Constructor **/ public IntegerLiteral (String pToken) { super (getValueFromToken (pToken)); }
/** * * Applies the operator to the given value **/ public Object apply (Object pLeft, Object pRight, Logger pLogger) throws ELException { return Coercions.applyEqualityOperator (pLeft, pRight, this, pLogger); }
/** * * Logs a warning **/ public void logWarning (Throwable pRootCause) throws ELException { if (isLoggingWarning ()) { logWarning (null, pRootCause); } }
/** * * Returns the expression in the expression language syntax **/ public String getExpressionString () { return "( " + mCondition.getExpressionString() + " ? " + mTrueBranch.getExpressionString() + " : " + mFalseBranch.getExpressionString() + " )"; }