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

public abstract Class ELArithmetic

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.el.lang.ELArithmetic.BigDecimalDelegate, com.sun.el.lang.ELArithmetic.BigIntegerDelegate, com.sun.el.lang.ELArithmetic.DoubleDelegate, com.sun.el.lang.ELArithmetic.LongDelegate
Static Imports
java.math.BigDecimal.ROUND_HALF_UP

A helper class of Arithmetic defined by the Jakarta Expression Specification
Author
Jacob Hookom [[email protected]]
Version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
public static final ELArithmetic.BigDecimalDelegate
public static final ELArithmetic.BigIntegerDelegate
public static final ELArithmetic.DoubleDelegate
public static final ELArithmetic.LongDelegate
private static final Long

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static final Number
add(final Object obj0, final Object obj1)

protected abstract Number
add(final Number num0, final Number num1)

protected abstract Number
coerce(final Number num)

protected final Number
coerce(final Object obj)

protected abstract Number
coerce(final String str)

public static final Number
divide(final Object obj0, final Object obj1)

protected abstract Number
divide(final Number num0, final Number num1)

public static final boolean
isNumber(final Object obj)

public static final boolean
isNumberType(final Class<T> type)

protected abstract boolean
matches(final Object obj0, final Object obj1)

public static final Number
mod(final Object obj0, final Object obj1)

protected abstract Number
mod(final Number num0, final Number num1)

public static final Number
multiply(final Object obj0, final Object obj1)

protected abstract Number
multiply(final Number num0, final Number num1)

public static final Number
subtract(final Object obj0, final Object obj1)

protected abstract Number
subtract(final Number num0, final Number num1)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BIGDECIMALback to summary
public static final ELArithmetic.BigDecimalDelegate BIGDECIMAL
BIGINTEGERback to summary
public static final ELArithmetic.BigIntegerDelegate BIGINTEGER
DOUBLEback to summary
public static final ELArithmetic.DoubleDelegate DOUBLE
LONGback to summary
public static final ELArithmetic.LongDelegate LONG
ZEROback to summary
private static final Long ZERO

Constructor Detail

ELArithmeticback to summary
protected ELArithmetic()

Method Detail

addback to summary
public static final Number add(final Object obj0, final Object obj1)
addback to summary
protected abstract Number add(final Number num0, final Number num1)
coerceback to summary
protected abstract Number coerce(final Number num)
coerceback to summary
protected final Number coerce(final Object obj)
coerceback to summary
protected abstract Number coerce(final String str)
divideback to summary
public static final Number divide(final Object obj0, final Object obj1)
divideback to summary
protected abstract Number divide(final Number num0, final Number num1)
isNumberback to summary
public static final boolean isNumber(final Object obj)
isNumberTypeback to summary
public static final boolean isNumberType(final Class<T> type)
matchesback to summary
protected abstract boolean matches(final Object obj0, final Object obj1)
modback to summary
public static final Number mod(final Object obj0, final Object obj1)
modback to summary
protected abstract Number mod(final Number num0, final Number num1)
multiplyback to summary
public static final Number multiply(final Object obj0, final Object obj1)
multiplyback to summary
protected abstract Number multiply(final Number num0, final Number num1)
subtractback to summary
public static final Number subtract(final Object obj0, final Object obj1)
subtractback to summary
protected abstract Number subtract(final Number num0, final Number num1)
com.sun.el.lang back to summary

public final Class ELArithmetic.BigDecimalDelegate

extends ELArithmetic
Class Inheritance

Field Summary

Inherited from com.sun.el.lang.ELArithmetic:
BIGDECIMALBIGINTEGERDOUBLELONG

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Number
add(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.add.

protected Number
protected Number
protected Number
divide(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.divide.

public boolean
protected Number
mod(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.mod.

protected Number
protected Number
Inherited from com.sun.el.lang.ELArithmetic:
addcoercedivideisNumberisNumberTypemodmultiplysubtract

Constructor Detail

BigDecimalDelegateback to summary
public BigDecimalDelegate()

Method Detail

addback to summary
protected Number add(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.add.

Annotations
@Override
coerceback to summary
protected Number coerce(Number num)

Implements abstract com.sun.el.lang.ELArithmetic.coerce.

Annotations
@Override
coerceback to summary
protected Number coerce(String str)

Implements abstract com.sun.el.lang.ELArithmetic.coerce.

Annotations
@Override
divideback to summary
protected Number divide(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.divide.

Annotations
@Override
matchesback to summary
public boolean matches(Object obj0, Object obj1)

Implements abstract com.sun.el.lang.ELArithmetic.matches.

Annotations
@Override
modback to summary
protected Number mod(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.mod.

Annotations
@Override
multiplyback to summary
protected Number multiply(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.multiply.

Annotations
@Override
subtractback to summary
protected Number subtract(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.subtract.

Annotations
@Override
com.sun.el.lang back to summary

public final Class ELArithmetic.BigIntegerDelegate

extends ELArithmetic
Class Inheritance

Field Summary

Inherited from com.sun.el.lang.ELArithmetic:
BIGDECIMALBIGINTEGERDOUBLELONG

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Number
add(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.add.

protected Number
protected Number
protected Number
divide(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.divide.

public boolean
protected Number
mod(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.mod.

protected Number
protected Number
Inherited from com.sun.el.lang.ELArithmetic:
addcoercedivideisNumberisNumberTypemodmultiplysubtract

Constructor Detail

BigIntegerDelegateback to summary
public BigIntegerDelegate()

Method Detail

addback to summary
protected Number add(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.add.

Annotations
@Override
coerceback to summary
protected Number coerce(Number num)

Implements abstract com.sun.el.lang.ELArithmetic.coerce.

Annotations
@Override
coerceback to summary
protected Number coerce(String str)

Implements abstract com.sun.el.lang.ELArithmetic.coerce.

Annotations
@Override
divideback to summary
protected Number divide(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.divide.

Annotations
@Override
matchesback to summary
public boolean matches(Object obj0, Object obj1)

Implements abstract com.sun.el.lang.ELArithmetic.matches.

Annotations
@Override
modback to summary
protected Number mod(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.mod.

Annotations
@Override
multiplyback to summary
protected Number multiply(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.multiply.

Annotations
@Override
subtractback to summary
protected Number subtract(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.subtract.

Annotations
@Override
com.sun.el.lang back to summary

public final Class ELArithmetic.DoubleDelegate

extends ELArithmetic
Class Inheritance

Field Summary

Inherited from com.sun.el.lang.ELArithmetic:
BIGDECIMALBIGINTEGERDOUBLELONG

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Number
add(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.add.

protected Number
protected Number
protected Number
divide(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.divide.

public boolean
protected Number
mod(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.mod.

protected Number
protected Number
Inherited from com.sun.el.lang.ELArithmetic:
addcoercedivideisNumberisNumberTypemodmultiplysubtract

Constructor Detail

DoubleDelegateback to summary
public DoubleDelegate()

Method Detail

addback to summary
protected Number add(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.add.

Annotations
@Override
coerceback to summary
protected Number coerce(Number num)

Implements abstract com.sun.el.lang.ELArithmetic.coerce.

Annotations
@Override
coerceback to summary
protected Number coerce(String str)

Implements abstract com.sun.el.lang.ELArithmetic.coerce.

Annotations
@Override
divideback to summary
protected Number divide(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.divide.

Annotations
@Override
matchesback to summary
public boolean matches(Object obj0, Object obj1)

Implements abstract com.sun.el.lang.ELArithmetic.matches.

Annotations
@Override
modback to summary
protected Number mod(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.mod.

Annotations
@Override
multiplyback to summary
protected Number multiply(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.multiply.

Annotations
@Override
subtractback to summary
protected Number subtract(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.subtract.

Annotations
@Override
com.sun.el.lang back to summary

public final Class ELArithmetic.LongDelegate

extends ELArithmetic
Class Inheritance

Field Summary

Inherited from com.sun.el.lang.ELArithmetic:
BIGDECIMALBIGINTEGERDOUBLELONG

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Number
add(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.add.

protected Number
protected Number
protected Number
divide(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.divide.

public boolean
protected Number
mod(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.mod.

protected Number
protected Number
Inherited from com.sun.el.lang.ELArithmetic:
addcoercedivideisNumberisNumberTypemodmultiplysubtract

Constructor Detail

LongDelegateback to summary
public LongDelegate()

Method Detail

addback to summary
protected Number add(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.add.

Annotations
@Override
coerceback to summary
protected Number coerce(Number num)

Implements abstract com.sun.el.lang.ELArithmetic.coerce.

Annotations
@Override
coerceback to summary
protected Number coerce(String str)

Implements abstract com.sun.el.lang.ELArithmetic.coerce.

Annotations
@Override
divideback to summary
protected Number divide(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.divide.

Annotations
@Override
matchesback to summary
public boolean matches(Object obj0, Object obj1)

Implements abstract com.sun.el.lang.ELArithmetic.matches.

Annotations
@Override
modback to summary
protected Number mod(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.mod.

Annotations
@Override
multiplyback to summary
protected Number multiply(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.multiply.

Annotations
@Override
subtractback to summary
protected Number subtract(Number num0, Number num1)

Implements abstract com.sun.el.lang.ELArithmetic.subtract.

Annotations
@Override