org.apache.commons.jexl.util
Class Coercion

java.lang.Object
  extended byorg.apache.commons.jexl.util.Coercion

public class Coercion
extends java.lang.Object

Coercion utilities for the JSTL EL-like coercion.

Author:
Geir Magnusson Jr.

Constructor Summary
Coercion()
           
 
Method Summary
static java.lang.Boolean coerceBoolean(java.lang.Object val)
           
static java.lang.Double coerceDouble(java.lang.Object val)
           
static java.lang.Integer coerceInteger(java.lang.Object val)
           
static java.lang.Long coerceLong(java.lang.Object val)
           
static boolean isFloatingPoint(java.lang.Object o)
           
static boolean isNumberable(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Coercion

public Coercion()
Method Detail

coerceBoolean

public static java.lang.Boolean coerceBoolean(java.lang.Object val)

coerceInteger

public static java.lang.Integer coerceInteger(java.lang.Object val)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

coerceLong

public static java.lang.Long coerceLong(java.lang.Object val)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

coerceDouble

public static java.lang.Double coerceDouble(java.lang.Object val)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

isFloatingPoint

public static boolean isFloatingPoint(java.lang.Object o)

isNumberable

public static boolean isNumberable(java.lang.Object o)