| Package | Description |
|---|---|
| bsh |
| Modifier and Type | Field and Description |
|---|---|
static Primitive |
Primitive.FALSE |
static Primitive |
Primitive.NULL |
static Primitive |
Primitive.TRUE |
static Primitive |
Primitive.VOID
VOID means "no type".
|
static Primitive |
Primitive.ZERO_BIG_DECIMAL |
static Primitive |
Primitive.ZERO_BIG_INTEGER |
static Primitive |
Primitive.ZERO_BYTE |
static Primitive |
Primitive.ZERO_CHAR
Default zero value constants
|
static Primitive |
Primitive.ZERO_DOUBLE |
static Primitive |
Primitive.ZERO_FLOAT |
static Primitive |
Primitive.ZERO_INT |
static Primitive |
Primitive.ZERO_LONG |
static Primitive |
Primitive.ZERO_SHORT |
| Modifier and Type | Method and Description |
|---|---|
Primitive |
Primitive.castToType(java.lang.Class<?> toType,
int operation)
Cast this bsh.Primitive value to a new bsh.Primitive value
This is usually a numeric type cast.
|
static Primitive |
Primitive.getDefaultValue(java.lang.Class<?> type)
Get the appropriate default value per JLS 4.5.4
|
static Primitive |
Primitive.shrinkWrap(java.lang.Object number) |