public class TypeIdMap extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPEID_BOOLEAN |
static int |
TYPEID_BYTE |
static int |
TYPEID_CHAR |
static int |
TYPEID_DOUBLE |
static int |
TYPEID_FLOAT |
static int |
TYPEID_INT |
static int |
TYPEID_LONG |
static int |
TYPEID_NULL
A type ID for a constant null.
|
static int |
TYPEID_OBJECT |
static int |
TYPEID_SHORT |
static int |
TYPEID_VOID |
| Constructor and Description |
|---|
TypeIdMap()
Create an initial map containing only basic types.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTypeIdString(Class<?> type)
Return a string representing a type ID number.
|
static boolean |
isPrimitiveTypeOrNull(int typeId)
Deprecated.
This method is unused in the current version.
|
void |
save(File f)
Save the type information to a file.
|
public static final int TYPEID_NULL
public static final int TYPEID_VOID
public static final int TYPEID_BOOLEAN
public static final int TYPEID_BYTE
public static final int TYPEID_CHAR
public static final int TYPEID_DOUBLE
public static final int TYPEID_FLOAT
public static final int TYPEID_INT
public static final int TYPEID_LONG
public static final int TYPEID_SHORT
public static final int TYPEID_OBJECT
public String getTypeIdString(Class<?> type)
type - class type to be converted to the recordpublic void save(File f)
f - specifies a file to be saved.public static boolean isPrimitiveTypeOrNull(int typeId)
typeId - specifies a type.Copyright © 2023. All rights reserved.