private Object getLiteralValue ( Expression expression ) { if ( ! ( expression instanceof Literal ) ) { throw new IllegalArgumentException ( "Expression " + expression + " is not a Literal." ) ; } return ( ( Literal ) expression ) . getValue ( ) ; }
Get the literal value for an expression .