public class TypeUtil extends Object
| Constructor and Description |
|---|
TypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable Class<?> |
getBackingClass(int id) |
static @Nullable Class<?> |
getBackingClass(NodeId typeId) |
static int |
getBuiltinTypeId(Class<?> backingType) |
static @Nullable Class<?> |
getPrimitiveBackingClass(int id) |
static @Nullable Class<?> |
getPrimitiveBackingClass(NodeId typeId) |
static boolean |
isBuiltin(ExpandedNodeId typeId) |
static boolean |
isBuiltin(NodeId typeId) |
public static int getBuiltinTypeId(Class<?> backingType)
backingType - the backing Class of the builtin type.backingType, or -1 if backingType is not builtin.public static boolean isBuiltin(NodeId typeId)
typeId - the id of the builtin type.public static boolean isBuiltin(ExpandedNodeId typeId)
typeId - the id of the builtin type.@Nullable public static @Nullable Class<?> getBackingClass(int id)
id - the id of the builtin type.Class backing the builtin type.@Nullable public static @Nullable Class<?> getBackingClass(NodeId typeId)
typeId - the id of the builtin type.Class backing the builtin type.@Nullable public static @Nullable Class<?> getPrimitiveBackingClass(int id)
id - the id of the builtin type.Class backing the builtin type, favoring the primitive version, if applicable.Copyright © 2025. All rights reserved.