public class TypeManager extends Object
| Constructor and Description |
|---|
TypeManager() |
| Modifier and Type | Method and Description |
|---|---|
static Type |
getArgument(Type type,
int i) |
static Class<?> |
getBase(Type type) |
String |
getBestName(Type type) |
static Field |
getDeclaredField(Class<?> clazz,
String name) |
static Method |
getDeclaredMethod(Class<?> clazz,
String name,
Class<?>... parameterTypes) |
String |
getFullName(Class<?> clazz) |
List<String> |
getImports() |
String |
getRawName(Type type) |
String |
getRawTypeName(Type type) |
String |
getSimpleName(Type type) |
String |
getWrappedName(Type type) |
static boolean |
isHidden(Type type) |
static boolean |
isPrimitive(Type type) |
static Type |
parameterized(Type raw,
Type owner,
Type... typeArgs) |
void |
registerImport(Class<?> clazz) |
void |
registerType(Type type) |
void |
registerTypes(Type... types) |
void |
staticImport(Class<?> type,
String method) |
static Type |
wildcard() |
public void registerTypes(Type... types)
public void registerType(Type type)
public void registerImport(Class<?> clazz)
public static Method getDeclaredMethod(Class<?> clazz, String name, Class<?>... parameterTypes)
public static boolean isPrimitive(Type type)
public static boolean isHidden(Type type)
public static Type wildcard()
Copyright © 2016. All rights reserved.