Package com.sun.el.lang
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 void
static final Boolean
coerceToBoolean
(Object obj) static final Character
coerceToCharacter
(Object obj) static final Enum
coerceToEnum
(Object obj, Class type) protected static final Number
coerceToNumber
(Number number, Class type) static final Number
coerceToNumber
(Object obj) static final Number
coerceToNumber
(Object obj, Class type) protected static final Number
coerceToNumber
(String val, Class type) static final String
coerceToString
(Object obj) static final Object
coerceToType
(Object obj, Class<?> type) static final Object
coerceToType
(Object obj, Class<?> type, boolean isEL22Compatible) static final int
static final boolean
containsNulls
(Object[] obj) static final boolean
static final boolean
isBigDecimalOp
(Object obj0, Object obj1) static final boolean
isBigIntegerOp
(Object obj0, Object obj1) static final boolean
isDoubleOp
(Object obj0, Object obj1) static final boolean
isDoubleStringOp
(Object obj0, Object obj1) static final boolean
static final boolean
isStringFloat
(String str) static final void
throwUnhandled
(Object base, Object property) static final Number
static final Number
-
Constructor Details
-
ELSupport
public ELSupport()
-
-
Method Details
-
throwUnhandled
- Throws:
javax.el.ELException
-
compare
- Parameters:
obj0
- First object to be comparedobj1
- Second object to be compared- Returns:
- The result (an int with values -1, 0, or 1) of the comparison
-
equals
- Parameters:
obj0
- Fisrt object to be comparedobj1
- Second object to be compared- Returns:
- true if the objects compared equal
-
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
- Parameters:
obj
- Object to be coerced- Returns:
- The result of coercion
-
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
-