- All Known Implementing Classes:
Add
,And
,ArrayGenerator
,ArrayInit
,Assert
,AssignArrayComponent
,AssignArrayGenerator
,AssignField
,AssignLocal
,Assignment
,BinaryExpression
,Block
,BooleanConst
,Break
,BreakTarget
,ByteConst
,Cast
,Catch
,CharConst
,CheckNonNull
,ClassConst
,Compare
,Comparison
,Complement
,ComplexMethod
,Conditional
,ConditionalAnd
,ConditionalOr
,ConstExpression
,ControlTransfer
,CreateArray
,DisposeDescriptor
,Div
,Do
,DoubleConst
,EnterFrame
,Equals
,EvalExpression
,Expression
,ExpressionList
,FieldObserver
,FilterGuard
,Finally
,FinishIteratorGenerator
,FloatConst
,For
,GE
,GetArrayComponent
,GetDescriptor
,GetField
,GetLocal
,GetProperty
,GetPropertyInstance
,GetQuery
,GetVMXFrame
,GT
,Guard
,Id
,If
,InstanceOf
,IntConst
,Invoke
,InvokeSpecial
,InvokeStatic
,InvokeVirtual
,IterableGenerator
,LE
,LeaveFrame
,LongConst
,LT
,MethodExpression
,ModelExpression
,Mul
,Neg
,New
,NoBytecode
,Not
,NotEquals
,ObjectConst
,OpenArgument
,Or
,Pop
,PopIntArray
,Pos
,Power
,Production
,PropertyAssignment
,PushInts
,Range
,Rem
,Return
,Root
,SetThis
,Shift
,Shl
,ShortConst
,Shr
,StringConversion
,Sub
,Super
,SwapBytecode
,Switch
,Synchronized
,Throw
,TryCatch
,TryFinally
,TypeConst
,UnaryExpression
,Ushr
,Variable
,VoidExpression
,While
,XMethod
,Xor
,Yield
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
.- Author:
- Ole Kniemeyer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
This is the mask for type ids of types whose values are represented as references by the Java Virtual Machine.static final int
Type id for abstract primitive types, i.e.,Type.NUMERIC
,Type.INTEGRAL
.static final int
Type id forboolean
.static final int
This is the mask for type ids forboolean
.static final int
Type id forbyte
.static final int
This is the mask for type ids forbyte
.static final int
Type id forchar
.static final int
This is the mask for type ids forchar
.static final int
This is the mask for type ids of types whose values are represented asdouble
s by the Java Virtual Machine.static final int
Type id fordouble
.static final int
This is the mask for type ids fordouble
.static final int
This is the mask for type ids of types whose values are represented asfloat
s by the Java Virtual Machine.static final int
Type id forfloat
.static final int
This is the mask for type ids forfloat
.static final int
This is the mask for type ids of floating-point types.static final int
This is the mask for type ids of types whose values are represented byint
s by the Java Virtual Machine.static final int
Type id forint
.static final int
This is the mask for type ids of types which as assignable toint
.static final int
This is the mask for type ids forint
.static final int
This is the mask for type ids of integral types.static final int
This is the mask for type ids of types whose values are represented aslong
s by the Java Virtual Machine.static final int
Type id forlong
.static final int
This is the mask for type ids forlong
.static final int
static final int
static final int
This is the mask for type ids of numeric types.static final int
This is the mask for type ids of numeric types, but notchar
.static final int
Type id for reference types.static final int
This is the mask for type ids of reference types.static final int
This is the mask for type ids of primitive types.static final int
Type id forshort
.static final int
This is the mask for type ids forshort
.static final int
The number of defined types.static final int
Type id forvoid
.static final int
This is the mask for type ids forvoid
.
-
Field Details
-
OBJECT
static final int OBJECTType id for reference types.- See Also:
-
VOID
static final int VOIDType id forvoid
.- See Also:
-
BOOLEAN
static final int BOOLEANType id forboolean
.- See Also:
-
BYTE
static final int BYTEType id forbyte
.- See Also:
-
SHORT
static final int SHORTType id forshort
.- See Also:
-
CHAR
static final int CHARType id forchar
.- See Also:
-
INT
static final int INTType id forint
.- See Also:
-
LONG
static final int LONGType id forlong
.- See Also:
-
FLOAT
static final int FLOATType id forfloat
.- See Also:
-
DOUBLE
static final int DOUBLEType id fordouble
.- See Also:
-
ABSTRACT_PRIMITIVE
static final int ABSTRACT_PRIMITIVE- See Also:
-
TYPE_COUNT
static final int TYPE_COUNTThe number of defined types. Valid type ids range from 0 toTYPE_COUNT-1
.- See Also:
-
MIN_PRIMITIVE
static final int MIN_PRIMITIVE- See Also:
-
MAX_PRIMITIVE
static final int MAX_PRIMITIVE- See Also:
-
OBJECT_MASK
static final int OBJECT_MASKThis is the mask for type ids of reference types.- See Also:
-
VOID_MASK
static final int VOID_MASKThis is the mask for type ids forvoid
.- See Also:
-
BOOLEAN_MASK
static final int BOOLEAN_MASKThis is the mask for type ids forboolean
.- See Also:
-
BYTE_MASK
static final int BYTE_MASKThis is the mask for type ids forbyte
.- See Also:
-
SHORT_MASK
static final int SHORT_MASKThis is the mask for type ids forshort
.- See Also:
-
CHAR_MASK
static final int CHAR_MASKThis is the mask for type ids forchar
.- See Also:
-
INT_MASK
static final int INT_MASKThis is the mask for type ids forint
.- See Also:
-
LONG_MASK
static final int LONG_MASKThis is the mask for type ids forlong
.- See Also:
-
FLOAT_MASK
static final int FLOAT_MASKThis is the mask for type ids forfloat
.- See Also:
-
DOUBLE_MASK
static final int DOUBLE_MASKThis is the mask for type ids fordouble
.- See Also:
-
INT_ASSIGNABLE
static final int INT_ASSIGNABLEThis is the mask for type ids of types which as assignable toint
.- See Also:
-
INTEGRAL_MASK
static final int INTEGRAL_MASKThis is the mask for type ids of integral types.- See Also:
-
FLOATING_POINT_MASK
static final int FLOATING_POINT_MASKThis is the mask for type ids of floating-point types.- See Also:
-
NUMERIC_MASK
static final int NUMERIC_MASKThis is the mask for type ids of numeric types.- See Also:
-
NUMERIC_NONCHAR_MASK
static final int NUMERIC_NONCHAR_MASKThis is the mask for type ids of numeric types, but notchar
.- See Also:
-
PRIMITIVE_MASK
static final int PRIMITIVE_MASKThis is the mask for type ids of primitive types.- See Also:
-
I_VALUE
static final int I_VALUEThis is the mask for type ids of types whose values are represented byint
s by the Java Virtual Machine.- See Also:
-
L_VALUE
static final int L_VALUEThis is the mask for type ids of types whose values are represented aslong
s by the Java Virtual Machine.- See Also:
-
F_VALUE
static final int F_VALUEThis is the mask for type ids of types whose values are represented asfloat
s by the Java Virtual Machine.- See Also:
-
D_VALUE
static final int D_VALUEThis is the mask for type ids of types whose values are represented asdouble
s by the Java Virtual Machine.- See Also:
-
A_VALUE
static final int A_VALUEThis is the mask for type ids of types whose values are represented as references by the Java Virtual Machine.- See Also:
-