public static boolean isConstant( Object tree ) throws OgnlException { return isConstant(tree, createDefaultContext(null)); }
public static boolean isConstant( String expression, Map context ) throws OgnlException { return isConstant(parseExpression(expression), context); }
/** * Same as {@link #isConstant(Object, java.util.Map)} - only the {@link Map} context * is created for you. * * @param tree * The {@link Node} to check. * * @return True if the node represents a constant expression - false otherwise. * @throws OgnlException If an exception occurs. */ public static boolean isConstant(Object tree) throws OgnlException { return isConstant(tree, createDefaultContext(null)); }
/** * Same as {@link #isConstant(Object, java.util.Map)} - only the {@link Map} context * is created for you. * * @param tree * The {@link Node} to check. * * @return True if the node represents a constant expression - false otherwise. * @throws OgnlException If an exception occurs. */ public static boolean isConstant(Object tree) throws OgnlException { return isConstant(tree, createDefaultContext(null)); }
/** * Checks if the specified expression represents a constant expression. * * @param expression * The expression to check. * @param context * The context to use. * * @return True if the node is a constant - false otherwise. * @throws OgnlException If an error occurs checking the expression. */ public static boolean isConstant(String expression, Map context) throws OgnlException { return isConstant(parseExpression(expression), context); }
/** * Checks if the specified expression represents a constant expression. * * @param expression * The expression to check. * @param context * The context to use. * * @return True if the node is a constant - false otherwise. * @throws OgnlException If an error occurs checking the expression. */ public static boolean isConstant(String expression, Map context) throws OgnlException { return isConstant(parseExpression(expression), context); }
public static boolean isConstant( String expression ) throws OgnlException { return isConstant(parseExpression(expression), createDefaultContext(null)); }
/** * Same as {@link #isConstant(String, java.util.Map)} - only the {@link Map} * instance is created for you. * * @param expression * The expression to check. * * @return True if the expression represents a constant - false otherwise. * @throws OgnlException If an exception occurs. */ public static boolean isConstant(String expression) throws OgnlException { return isConstant(parseExpression(expression), createDefaultContext(null)); }
/** * Same as {@link #isConstant(String, java.util.Map)} - only the {@link Map} * instance is created for you. * * @param expression * The expression to check. * * @return True if the expression represents a constant - false otherwise. * @throws OgnlException If an exception occurs. */ public static boolean isConstant(String expression) throws OgnlException { return isConstant(parseExpression(expression), createDefaultContext(null)); }
public boolean isConstant(String expression) { Object compiled = _expressionCache.getCompiledExpression(expression); try { return Ognl.isConstant(compiled, _defaultContext); } catch (Exception ex) { throw new ApplicationRuntimeException(ImplMessages.isConstantExpressionError( expression, ex), ex); } }
public boolean isConstant(Object target, String expression) { Object compiled = _expressionCache.getCompiledExpression(target, expression); try { return Ognl.isConstant(compiled, _defaultContext); } catch (Exception ex) { throw new ApplicationRuntimeException(ImplMessages.isConstantExpressionError( expression, ex), ex); } }
public boolean isConstant(String expression) { Object compiled = _expressionCache.getCompiledExpression(expression); try { return Ognl.isConstant(compiled, _defaultContext); } catch (Exception ex) { throw new ApplicationRuntimeException(ImplMessages.isConstantExpressionError( expression, ex), ex); } }
public boolean isConstant(Object target, String expression) { Object compiled = _expressionCache.getCompiledExpression(target, expression); try { return Ognl.isConstant(compiled, _defaultContext); } catch (Exception ex) { throw new ApplicationRuntimeException(ImplMessages.isConstantExpressionError( expression, ex), ex); } }