org.apache.el.lang

Class ELSupport

public class ELSupport extends Object

A helper class that implements the EL Specification

Version: $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: markt $

Author: Jacob Hookom [jacob@hookom.net]

Constructor Summary
ELSupport()
Method Summary
static voidcheckType(Object obj, Class type)
static BooleancoerceToBoolean(Object obj)
static CharactercoerceToCharacter(Object obj)
static EnumcoerceToEnum(Object obj, Class type)
static NumbercoerceToNumber(Object obj)
protected static NumbercoerceToNumber(Number number, Class type)
static NumbercoerceToNumber(Object obj, Class type)
protected static NumbercoerceToNumber(String val, Class type)
static StringcoerceToString(Object obj)
static ObjectcoerceToType(Object obj, Class type)
static intcompare(Object obj0, Object obj1)
static booleancontainsNulls(Object[] obj)
static booleanequals(Object obj0, Object obj1)
static booleanisBigDecimalOp(Object obj0, Object obj1)
static booleanisBigIntegerOp(Object obj0, Object obj1)
static booleanisDoubleOp(Object obj0, Object obj1)
static booleanisDoubleStringOp(Object obj0, Object obj1)
static booleanisLongOp(Object obj0, Object obj1)
static booleanisStringFloat(String str)
static voidthrowUnhandled(Object base, Object property)
static NumbertoFloat(String value)
static NumbertoNumber(String value)

Constructor Detail

ELSupport

public ELSupport()

Method Detail

checkType

public static final void checkType(Object obj, Class type)

coerceToBoolean

public static final Boolean coerceToBoolean(Object obj)

Parameters: obj

Returns:

coerceToCharacter

public static final Character coerceToCharacter(Object obj)

coerceToEnum

public static final Enum coerceToEnum(Object obj, Class type)

Parameters: obj type

Returns:

coerceToNumber

public static final Number coerceToNumber(Object obj)

coerceToNumber

protected static final Number coerceToNumber(Number number, Class type)

coerceToNumber

public static final Number coerceToNumber(Object obj, Class type)

coerceToNumber

protected static final Number coerceToNumber(String val, Class type)

coerceToString

public static final String coerceToString(Object obj)

Parameters: obj

Returns:

coerceToType

public static final Object coerceToType(Object obj, Class type)

compare

public static final int compare(Object obj0, Object obj1)

Parameters: obj0 obj1

Returns:

Throws: EvaluationException

containsNulls

public static final boolean containsNulls(Object[] obj)

Parameters: obj

Returns:

equals

public static final boolean equals(Object obj0, Object obj1)

Parameters: obj0 obj1

Returns:

Throws: EvaluationException

isBigDecimalOp

public static final boolean isBigDecimalOp(Object obj0, Object obj1)

isBigIntegerOp

public static final boolean isBigIntegerOp(Object obj0, Object obj1)

isDoubleOp

public static final boolean isDoubleOp(Object obj0, Object obj1)

isDoubleStringOp

public static final boolean isDoubleStringOp(Object obj0, Object obj1)

isLongOp

public static final boolean isLongOp(Object obj0, Object obj1)

isStringFloat

public static final boolean isStringFloat(String str)

throwUnhandled

public static final void throwUnhandled(Object base, Object property)

toFloat

public static final Number toFloat(String value)

toNumber

public static final Number toNumber(String value)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.