- java.lang.Object
-
- com.sun.el.lang.ELSupport
-
- Direct Known Subclasses:
SimpleNode
public class ELSupport extends Object
A helper class that implements the Jakarta Expression 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 Constructor Description ELSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckType(Object obj, Class<?> type)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 <T> TcoerceToType(Object obj, Class<T> type)static <T> TcoerceToType(Object obj, Class<T> type, boolean isEL22Compatible)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 jakarta.el.ELException
- Throws:
jakarta.el.ELException
-
compare
public static final int compare(Object obj0, Object obj1) throws jakarta.el.ELException
- 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
- Throws:
jakarta.el.ELException- when something goes wrong
-
equals
public static final boolean equals(Object obj0, Object obj1) throws jakarta.el.ELException
- Parameters:
obj0- Fisrt object to be comparedobj1- Second object to be compared- Returns:
- true if the objects compared equal
- Throws:
jakarta.el.ELException- when something goes wrong
-
coerceToBoolean
public static final Boolean coerceToBoolean(Object obj) throws IllegalArgumentException
- Parameters:
obj- Object to be coerced- Returns:
- The result of coercion
- 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
-
coerceToString
public static final String coerceToString(Object obj)
- Parameters:
obj- Object to be coerced- Returns:
- The result of coercion
-
checkType
public static final void checkType(Object obj, Class<?> type) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
coerceToType
public static final <T> T coerceToType(Object obj, Class<T> type) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
coerceToType
public static final <T> T coerceToType(Object obj, Class<T> type, boolean isEL22Compatible) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
containsNulls
public static final boolean containsNulls(Object[] obj)
- Parameters:
obj- An array of objects- Returns:
- true if the array contains a null, false otherwise
-
isStringFloat
public static final boolean isStringFloat(String str)
-
-