Package org.jdesktop.el.impl.lang
Class ELSupport
- java.lang.Object
-
- org.jdesktop.el.impl.lang.ELSupport
-
- Direct Known Subclasses:
SimpleNode
public class ELSupport extends Object
A helper class that implements the EL Specification- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: spuhl $
- Author:
- Jacob Hookom [jacob@hookom.net]
-
-
Constructor Summary
Constructors Constructor Description ELSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleancoerceToBoolean(Object obj)static CharactercoerceToCharacter(Object obj)static EnumcoerceToEnum(Object obj, Class type)protected static NumbercoerceToNumber(Number number, Class type)static NumbercoerceToNumber(Object obj)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)
-
-
-
Method Detail
-
throwUnhandled
public static final void throwUnhandled(Object base, Object property) throws ELException
- Throws:
ELException
-
compare
public static final int compare(Object obj0, Object obj1) throws ELException
- Parameters:
obj0-obj1-- Returns:
- Throws:
EvaluationExceptionELException
-
equals
public static final boolean equals(Object obj0, Object obj1) throws ELException
- Parameters:
obj0-obj1-- Returns:
- Throws:
EvaluationExceptionELException
-
coerceToBoolean
public static final Boolean coerceToBoolean(Object obj) throws IllegalArgumentException
- Parameters:
obj-- Returns:
- Throws:
IllegalArgumentException
-
coerceToEnum
public static final Enum coerceToEnum(Object obj, Class type) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
coerceToCharacter
public static final Character coerceToCharacter(Object obj) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
coerceToNumber
protected static final Number coerceToNumber(Number number, Class type) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
coerceToNumber
public static final Number coerceToNumber(Object obj, Class type) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
coerceToNumber
protected static final Number coerceToNumber(String val, Class type) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
coerceToType
public static final Object coerceToType(Object obj, Class type) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
containsNulls
public static final boolean containsNulls(Object[] obj)
- Parameters:
obj-- Returns:
-
isStringFloat
public static final boolean isStringFloat(String str)
-
-