public class NativeTypes extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getLiteral(String className,
String literal) |
static String |
getName(TypeKind typeKind)
The name that should be used for the
typeKind. |
static Class<?> |
getPrimitiveType(Class<?> clazz) |
static Class<?> |
getWrapperType(Class<?> clazz) |
static boolean |
isNarrowing(String sourceFQN,
String targetFQN) |
static boolean |
isNative(String fullyQualifiedName) |
static boolean |
isNumber(Class<?> clazz) |
public static boolean isNative(String fullyQualifiedName)
public static boolean isNumber(Class<?> clazz)
public static Class<?> getLiteral(String className, String literal)
className - FQN of the literal native classliteral - literal to verifyIllegalArgumentException - when the literal does not match to the provided native type classNamepublic static String getName(TypeKind typeKind)
typeKind.
Should be used in order to get the name of a primitive typetypeKind - the type kindtypeKindCopyright © 2012–2020. All rights reserved.