Package org.apache.commons.ognl
Interface NumericTypes
- All Known Implementing Classes:
NumberElementsAccessor,OgnlOps
public interface NumericTypes
This interface defines some useful constants for describing the various possible numeric types of OGNL.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intType tag meaning java.math.BigDecimal.static final intType tag meaning java.math.BigInteger.static final intType tag meaning boolean.static final intType tag meaning byte.static final intType tag meaning char.static final intType tag meaning double.static final intType tag meaning float.static final intType tag meaning int.static final intType tag meaning long.static final intThe smallest type tag that represents reals as opposed to integers.static final intType tag meaning something other than a number.static final intType tag meaning short.
-
Field Details
-
BOOL
static final int BOOLType tag meaning boolean.- See Also:
-
BYTE
static final int BYTEType tag meaning byte.- See Also:
-
CHAR
static final int CHARType tag meaning char.- See Also:
-
SHORT
static final int SHORTType tag meaning short.- See Also:
-
INT
static final int INTType tag meaning int.- See Also:
-
LONG
static final int LONGType tag meaning long.- See Also:
-
BIGINT
static final int BIGINTType tag meaning java.math.BigInteger.- See Also:
-
FLOAT
static final int FLOATType tag meaning float.- See Also:
-
DOUBLE
static final int DOUBLEType tag meaning double.- See Also:
-
BIGDEC
static final int BIGDECType tag meaning java.math.BigDecimal.- See Also:
-
NONNUMERIC
static final int NONNUMERICType tag meaning something other than a number.- See Also:
-
MIN_REAL_TYPE
static final int MIN_REAL_TYPEThe smallest type tag that represents reals as opposed to integers. You can see whether a type tag represents reals or integers by comparing the tag to this constant: all tags less than this constant represent integers, and all tags greater than or equal to this constant represent reals. Of course, you must also check for NONNUMERIC, which means it is not a number at all.- See Also:
-