public final class Util
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
JARRAY_ID |
static int |
JBOOLEAN_ID |
static int |
JBYTE_ID |
static int |
JCHAR_ID |
static int |
JCLASS_ID |
static int |
JDOUBLE_ID |
static int |
JFLOAT_ID |
static int |
JINT_ID |
static int |
JLONG_ID |
static int |
JOBJECT_ID |
static int |
JSHORT_ID |
static int |
JSTRING_ID |
static int |
JVOID_ID |
Modifier and Type | Method and Description |
---|---|
static int |
getTypeId(java.lang.Class<?> clazz)
Internal use only
Same as
getTypeId(Object) but for Class. |
static int |
getTypeId(java.lang.Object obj)
Internal use only
Does the same thing as util.c::get_jtype, but it's easier more
stable to do this in java when able.
|
public static final int JBOOLEAN_ID
public static final int JINT_ID
public static final int JLONG_ID
public static final int JOBJECT_ID
public static final int JSTRING_ID
public static final int JVOID_ID
public static final int JDOUBLE_ID
public static final int JSHORT_ID
public static final int JFLOAT_ID
public static final int JARRAY_ID
public static final int JCHAR_ID
public static final int JBYTE_ID
public static final int JCLASS_ID
public static final int getTypeId(java.lang.Object obj)
Internal use only Does the same thing as util.c::get_jtype, but it's easier more stable to do this in java when able.
obj
- an Object
valueint
one of the type _ID constantspublic static final int getTypeId(java.lang.Class<?> clazz)
Internal use only
Same as getTypeId(Object)
but for Class. This is
useful for determining the _ID for things like
method.getReturnType.
clazz
- an Object
valueint
one of the type _ID constants