Top Description Fields Constructors Methods
com.sun.el.lang

public Class ELSupport

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.el.parser.SimpleNode
Imports
java.beans.PropertyEditor, .PropertyEditorManager, java.math.BigDecimal, .BigInteger, javax.el.ELException, .PropertyNotFoundException, com.sun.el.util.MessageFactory

A helper class that implements the Jakarta Expression Specification
Authors
Jacob Hookom [[email protected]], Kin-man Chung
Version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $

Field Summary

Modifier and TypeField and Description
private static final Long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static final void
checkType(final Object obj, final Class<?> type)

public static final Boolean

Returns:

The result of coercion
coerceToBoolean
(final Object
Object to be coerced
obj
)

public static final Character
public static final Enum<E extends Enum<E>>
coerceToEnum(final Object obj, Class<T> type)

public static final Number
protected static final Number
coerceToNumber(final Number number, final Class<T> type)

public static final Number
coerceToNumber(final Object obj, final Class<T> type)

protected static final Number
coerceToNumber(final String val, final Class<T> type)

public static final String

Returns:

The result of coercion
coerceToString
(final Object
Object to be coerced
obj
)

public static final Object
coerceToType(final Object obj, final Class<?> type)

public static final Object
coerceToType(final Object obj, final Class<?> type, boolean isEL22Compatible)

public static final int

Returns:

The result (an int with values -1, 0, or 1) of the comparison
compare
(final Object
First object to be compared
obj0
,
final Object
Second object to be compared
obj1
)

public static final boolean

Returns:

true if the array contains a null, false otherwise
containsNulls
(final Object[]
An array of objects
obj
)

public static final boolean

Returns:

true if the objects compared equal
equals
(final Object
Fisrt object to be compared
obj0
,
final Object
Second object to be compared
obj1
)

public static final boolean
isBigDecimalOp(final Object obj0, final Object obj1)

public static final boolean
isBigIntegerOp(final Object obj0, final Object obj1)

public static final boolean
isDoubleOp(final Object obj0, final Object obj1)

public static final boolean
isDoubleStringOp(final Object obj0, final Object obj1)

public static final boolean
isLongOp(final Object obj0, final Object obj1)

public static final boolean
isStringFloat(final String str)

public static final void
throwUnhandled(Object base, Object property)

public static final Number
toFloat(final String value)

public static final Number
toNumber(final String value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ZEROback to summary
private static final Long ZERO

Constructor Detail

ELSupportback to summary
public ELSupport()

Method Detail

checkTypeback to summary
public static final void checkType(final Object obj, final Class<?> type) throws IllegalArgumentException
coerceToBooleanback to summary
public static final Boolean coerceToBoolean(final Object obj) throws IllegalArgumentException
Parameters
obj:Object

Object to be coerced

Returns:Boolean

The result of coercion

coerceToCharacterback to summary
public static final Character coerceToCharacter(final Object obj) throws IllegalArgumentException
coerceToEnumback to summary
public static final Enum<E extends Enum<E>> coerceToEnum(final Object obj, Class<T> type)
Annotations
@SuppressWarnings:unchecked
coerceToNumberback to summary
public static final Number coerceToNumber(final Object obj)
coerceToNumberback to summary
protected static final Number coerceToNumber(final Number number, final Class<T> type) throws IllegalArgumentException
coerceToNumberback to summary
public static final Number coerceToNumber(final Object obj, final Class<T> type) throws IllegalArgumentException
coerceToNumberback to summary
protected static final Number coerceToNumber(final String val, final Class<T> type) throws IllegalArgumentException
coerceToStringback to summary
public static final String coerceToString(final Object obj)
Parameters
obj:Object

Object to be coerced

Returns:String

The result of coercion

coerceToTypeback to summary
public static final Object coerceToType(final Object obj, final Class<?> type) throws IllegalArgumentException
coerceToTypeback to summary
public static final Object coerceToType(final Object obj, final Class<?> type, boolean isEL22Compatible) throws IllegalArgumentException
compareback to summary
public static final int compare(final Object obj0, final Object obj1) throws ELException
Parameters
obj0:Object

First object to be compared

obj1:Object

Second object to be compared

Returns:int

The result (an int with values -1, 0, or 1) of the comparison

Exceptions
ELException:
when something goes wrong
containsNullsback to summary
public static final boolean containsNulls(final Object[] obj)
Parameters
obj:Object[]

An array of objects

Returns:boolean

true if the array contains a null, false otherwise

equalsback to summary
public static final boolean equals(final Object obj0, final Object obj1) throws ELException
Parameters
obj0:Object

Fisrt object to be compared

obj1:Object

Second object to be compared

Returns:boolean

true if the objects compared equal

Exceptions
ELException:
when something goes wrong
isBigDecimalOpback to summary
public static final boolean isBigDecimalOp(final Object obj0, final Object obj1)
isBigIntegerOpback to summary
public static final boolean isBigIntegerOp(final Object obj0, final Object obj1)
isDoubleOpback to summary
public static final boolean isDoubleOp(final Object obj0, final Object obj1)
isDoubleStringOpback to summary
public static final boolean isDoubleStringOp(final Object obj0, final Object obj1)
isLongOpback to summary
public static final boolean isLongOp(final Object obj0, final Object obj1)
isStringFloatback to summary
public static final boolean isStringFloat(final String str)
throwUnhandledback to summary
public static final void throwUnhandled(Object base, Object property) throws ELException
toFloatback to summary
public static final Number toFloat(final String value)
toNumberback to summary
public static final Number toNumber(final String value)