public final class TypeUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
erase(Type type)
Returns the type erasure of the class or interface type.
|
static List<Type> |
invoke(Class<?> target,
Type context)
Returns the invocation of the target class or interface type.
|
public static Class<?> erase(Type type)
type
- the target class or interface typeIllegalArgumentException
- if the parameter is null
public static List<Type> invoke(Class<?> target, Type context)
target
- the target typecontext
- the context type (should be a sub-type of the target type)null
if the target type cannot be invokedIllegalArgumentException
- if some parameters are null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.