src/main/java/ognl/Ognl.java
public static boolean isConstant(String expression, Map context)
            throws OgnlException
    {
        return isConstant(parseExpression(expression), context);
    }
public static boolean isConstant(String expression, Map context)
            throws OgnlException
    {
        return isConstant(parseExpression(expression), context);
    }
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.
Checks if the specified expression represents a constant expression .