in src/main/java/org/apache/commons/ognl/OgnlOps.java [376:423]
public static int getNumericType( Object value )
{
if ( value != null )
{
Class<?> c = value.getClass();
if ( c == Integer.class )
{
return INT;
}
if ( c == Double.class )
{
return DOUBLE;
}
if ( c == Boolean.class )
{
return BOOL;
}
if ( c == Byte.class )
{
return BYTE;
}
if ( c == Character.class )
{
return CHAR;
}
if ( c == Short.class )
{
return SHORT;
}
if ( c == Long.class )
{
return LONG;
}
if ( c == Float.class )
{
return FLOAT;
}
if ( c == BigInteger.class )
{
return BIGINT;
}
if ( c == BigDecimal.class )
{
return BIGDEC;
}
}
return NONNUMERIC;
}