|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface TypeId
This interface defines an enumeration of int ids which
are used to identify the kind of a type
(see Type). In addition, it defines some masks
which have to be used as follows:
if (((1 << typeId) & TypeId.INTEGRAL_MASK) != 0) {
// typeId identifies a type which is integral
}
IMPORTANT: The numeric values of the ids must not be changed!
It is defined such that (for numeric types) it is a widening
conversion from s to t if the type id of s is less than the type id
of t, with one exception: The type char
has to be handled specially, because BYTE < SHORT < CHAR < INT,
but there is no widening conversion from byte or
short to char.
| Field Summary | |
|---|---|
static int |
A_VALUE
This is the mask for type ids of types whose values are represented as references by the Java Virtual Machine. |
static int |
ABSTRACT_PRIMITIVE
Type id for abstract primitive types, i.e., Type.NUMERIC, Type.INTEGRAL. |
static int |
BOOLEAN
Type id for boolean. |
static int |
BOOLEAN_MASK
This is the mask for type ids for boolean. |
static int |
BYTE
Type id for byte. |
static int |
BYTE_MASK
This is the mask for type ids for byte. |
static int |
CHAR
Type id for char. |
static int |
CHAR_MASK
This is the mask for type ids for char. |
static int |
D_VALUE
This is the mask for type ids of types whose values are represented as doubles by the Java Virtual Machine. |
static int |
DOUBLE
Type id for double. |
static int |
DOUBLE_MASK
This is the mask for type ids for double. |
static int |
F_VALUE
This is the mask for type ids of types whose values are represented as floats by the Java Virtual Machine. |
static int |
FLOAT
Type id for float. |
static int |
FLOAT_MASK
This is the mask for type ids for float. |
static int |
FLOATING_POINT_MASK
This is the mask for type ids of floating-point types. |
static int |
I_VALUE
This is the mask for type ids of types whose values are represented by ints by the Java Virtual Machine. |
static int |
INT
Type id for int. |
static int |
INT_ASSIGNABLE
This is the mask for type ids of types which as assignable to int. |
static int |
INT_MASK
This is the mask for type ids for int. |
static int |
INTEGRAL_MASK
This is the mask for type ids of integral types. |
static int |
L_VALUE
This is the mask for type ids of types whose values are represented as longs by the Java Virtual Machine. |
static int |
LONG
Type id for long. |
static int |
LONG_MASK
This is the mask for type ids for long. |
static int |
MAX_PRIMITIVE
|
static int |
MIN_PRIMITIVE
|
static int |
NUMERIC_MASK
This is the mask for type ids of numeric types. |
static int |
NUMERIC_NONCHAR_MASK
This is the mask for type ids of numeric types, but not char. |
static int |
OBJECT
Type id for reference types. |
static int |
OBJECT_MASK
This is the mask for type ids of reference types. |
static int |
PRIMITIVE_MASK
This is the mask for type ids of primitive types. |
static int |
SHORT
Type id for short. |
static int |
SHORT_MASK
This is the mask for type ids for short. |
static int |
TYPE_COUNT
The number of defined types. |
static int |
VOID
Type id for void. |
static int |
VOID_MASK
This is the mask for type ids for void. |
| Field Detail |
|---|
static final int A_VALUE
static final int ABSTRACT_PRIMITIVE
Type.NUMERIC, Type.INTEGRAL.
Type.FLOATING_POINT.
static final int BOOLEAN
boolean.
static final int BOOLEAN_MASK
boolean.
static final int BYTE
byte.
static final int BYTE_MASK
byte.
static final int CHAR
char.
static final int CHAR_MASK
char.
static final int D_VALUE
doubles by the Java Virtual Machine.
static final int DOUBLE
double.
static final int DOUBLE_MASK
double.
static final int F_VALUE
floats by the Java Virtual Machine.
static final int FLOAT
float.
static final int FLOAT_MASK
float.
static final int FLOATING_POINT_MASK
static final int I_VALUE
ints by the Java Virtual Machine.
static final int INT
int.
static final int INT_ASSIGNABLE
int.
static final int INT_MASK
int.
static final int INTEGRAL_MASK
static final int L_VALUE
longs by the Java Virtual Machine.
static final int LONG
long.
static final int LONG_MASK
long.
static final int MAX_PRIMITIVE
static final int MIN_PRIMITIVE
static final int NUMERIC_MASK
static final int NUMERIC_NONCHAR_MASK
char.
static final int OBJECT
static final int OBJECT_MASK
static final int PRIMITIVE_MASK
static final int SHORT
short.
static final int SHORT_MASK
short.
static final int TYPE_COUNT
TYPE_COUNT-1.
static final int VOID
void.
static final int VOID_MASK
void.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||