|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.el.lang.ELSupport
public class ELSupport
A helper class that implements the EL Specification
Constructor Summary | |
---|---|
ELSupport()
|
Method Summary | |
---|---|
static void |
checkType(java.lang.Object obj,
java.lang.Class type)
|
static java.lang.Boolean |
coerceToBoolean(java.lang.Object obj)
Convert an object to Boolean. |
static java.lang.Character |
coerceToCharacter(java.lang.Object obj)
|
static java.lang.Enum<?> |
coerceToEnum(java.lang.Object obj,
java.lang.Class type)
|
protected static java.lang.Number |
coerceToNumber(java.lang.Number number,
java.lang.Class<?> type)
|
static java.lang.Number |
coerceToNumber(java.lang.Object obj)
|
static java.lang.Number |
coerceToNumber(java.lang.Object obj,
java.lang.Class<?> type)
|
protected static java.lang.Number |
coerceToNumber(java.lang.String val,
java.lang.Class<?> type)
|
static java.lang.String |
coerceToString(java.lang.Object obj)
|
static java.lang.Object |
coerceToType(java.lang.Object obj,
java.lang.Class<?> type)
|
static int |
compare(java.lang.Object obj0,
java.lang.Object obj1)
Compare two objects, after coercing to the same type if appropriate. |
static boolean |
containsNulls(java.lang.Object[] obj)
|
static boolean |
equals(java.lang.Object obj0,
java.lang.Object obj1)
Compare two objects for equality, after coercing to the same type if appropriate. |
static boolean |
isBigDecimalOp(java.lang.Object obj0,
java.lang.Object obj1)
|
static boolean |
isBigIntegerOp(java.lang.Object obj0,
java.lang.Object obj1)
|
static boolean |
isDoubleOp(java.lang.Object obj0,
java.lang.Object obj1)
|
static boolean |
isDoubleStringOp(java.lang.Object obj0,
java.lang.Object obj1)
|
static boolean |
isLongOp(java.lang.Object obj0,
java.lang.Object obj1)
|
static boolean |
isStringFloat(java.lang.String str)
|
static void |
throwUnhandled(java.lang.Object base,
java.lang.Object property)
|
static java.lang.Number |
toFloat(java.lang.String value)
|
static java.lang.Number |
toNumber(java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ELSupport()
Method Detail |
---|
public static final void throwUnhandled(java.lang.Object base, java.lang.Object property) throws javax.el.ELException
javax.el.ELException
public static final int compare(java.lang.Object obj0, java.lang.Object obj1) throws javax.el.ELException
equals(Object, Object)
then return 0.
If either object is a BigDecimal, then coerce both to BigDecimal first.
Similarly for Double(Float), BigInteger, and Long(Integer, Char, Short, Byte).
Otherwise, check that the first object is an instance of Comparable, and compare
against the second object. If that is null, return 1, otherwise
return the result of comparing against the second object.
Similarly, if the second object is Comparable, if the first is null, return -1,
else return the result of comparing against the first object.
A null object is considered as:
obj0
- first objectobj1
- second object
javax.el.ELException
- if neither object is Comparable
java.lang.ClassCastException
- if the objects are not mutually comparablepublic static final boolean equals(java.lang.Object obj0, java.lang.Object obj1) throws javax.el.ELException
obj0
- the first objectobj1
- the second object
javax.el.ELException
public static final java.lang.Enum<?> coerceToEnum(java.lang.Object obj, java.lang.Class type)
public static final java.lang.Boolean coerceToBoolean(java.lang.Object obj) throws javax.el.ELException
obj
- the object to convert
javax.el.ELException
- if object is not Boolean or Stringpublic static final java.lang.Character coerceToCharacter(java.lang.Object obj) throws javax.el.ELException
javax.el.ELException
public static final java.lang.Number coerceToNumber(java.lang.Object obj)
protected static final java.lang.Number coerceToNumber(java.lang.Number number, java.lang.Class<?> type) throws javax.el.ELException
javax.el.ELException
public static final java.lang.Number coerceToNumber(java.lang.Object obj, java.lang.Class<?> type) throws javax.el.ELException
javax.el.ELException
protected static final java.lang.Number coerceToNumber(java.lang.String val, java.lang.Class<?> type) throws javax.el.ELException
javax.el.ELException
public static final java.lang.String coerceToString(java.lang.Object obj)
public static final void checkType(java.lang.Object obj, java.lang.Class type) throws javax.el.ELException
javax.el.ELException
public static final java.lang.Object coerceToType(java.lang.Object obj, java.lang.Class<?> type) throws javax.el.ELException
javax.el.ELException
public static final boolean containsNulls(java.lang.Object[] obj)
public static final boolean isBigDecimalOp(java.lang.Object obj0, java.lang.Object obj1)
public static final boolean isBigIntegerOp(java.lang.Object obj0, java.lang.Object obj1)
public static final boolean isDoubleOp(java.lang.Object obj0, java.lang.Object obj1)
public static final boolean isDoubleStringOp(java.lang.Object obj0, java.lang.Object obj1)
public static final boolean isLongOp(java.lang.Object obj0, java.lang.Object obj1)
public static final boolean isStringFloat(java.lang.String str)
public static final java.lang.Number toFloat(java.lang.String value)
public static final java.lang.Number toNumber(java.lang.String value)
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |