Class ELSupport
java.lang.Object
com.sun.el.lang.ELSupport
- Direct Known Subclasses:
SimpleNode
A helper class that implements the EL Specification
- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $
- Author:
- Jacob Hookom [jacob@hookom.net], Kin-man Chung
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidstatic final BooleancoerceToBoolean(Object obj) static final CharactercoerceToCharacter(Object obj) static final EnumcoerceToEnum(Object obj, Class type) protected static final NumbercoerceToNumber(Number number, Class type) static final NumbercoerceToNumber(Object obj) static final NumbercoerceToNumber(Object obj, Class type) protected static final NumbercoerceToNumber(String val, Class type) static final StringcoerceToString(Object obj) static final ObjectcoerceToType(Object obj, Class<?> type) static final ObjectcoerceToType(Object obj, Class<?> type, boolean isEL22Compatible) static final intstatic final booleancontainsNulls(Object[] obj) static final booleanstatic final booleanisBigDecimalOp(Object obj0, Object obj1) static final booleanisBigIntegerOp(Object obj0, Object obj1) static final booleanisDoubleOp(Object obj0, Object obj1) static final booleanisDoubleStringOp(Object obj0, Object obj1) static final booleanstatic final booleanisStringFloat(String str) static final voidthrowUnhandled(Object base, Object property) static final Numberstatic final Number
-
Constructor Details
-
ELSupport
public ELSupport()
-
-
Method Details
-
throwUnhandled
-
compare
-
equals
-
coerceToBoolean
- Parameters:
obj- Object to be coerced- Returns:
- The result of coercion
- Throws:
IllegalArgumentException
-
coerceToEnum
-
coerceToCharacter
- Throws:
IllegalArgumentException
-
coerceToNumber
-
coerceToNumber
protected static final Number coerceToNumber(Number number, Class type) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
coerceToNumber
- Throws:
IllegalArgumentException
-
coerceToNumber
protected static final Number coerceToNumber(String val, Class type) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
coerceToString
-
checkType
- Throws:
IllegalArgumentException
-
coerceToType
- Throws:
IllegalArgumentException
-
coerceToType
public static final Object coerceToType(Object obj, Class<?> type, boolean isEL22Compatible) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
containsNulls
- Parameters:
obj- An array of objects- Returns:
- true if the array contains a null, false otherwise
-
isBigDecimalOp
-
isBigIntegerOp
-
isDoubleOp
-
isDoubleStringOp
-
isLongOp
-
isStringFloat
-
toFloat
-
toNumber
-