keycloak
|
静的公開メンバ関数 | |
static Type | boxedType (Type type) |
static Class<?> | boxedClass (Class<?> type) |
static boolean | isA (Class clazz, ParameterizedType pType) |
static Class | getArgumentType (ParameterizedType pType, int index) |
static Class | getTemplateParameterOfInterface (Class base, Class desiredInterface) |
static boolean | isCompatible (Method method, Method intfMethod) |
static Method | getImplementingMethod (Class clazz, Method intfMethod) |
static Class<?> | getRawType (Type type) |
static Class<?> | getRawTypeNoException (Type type) |
static Class<?> | getTypeArgument (Type genericType) |
static Class | getCollectionBaseType (Class type, Type genericType) |
static Class | getMapKeyType (Type genericType) |
static Class | getMapValueType (Type genericType) |
static Type | resolveTypeVariables (Class<?> root, Type type) |
static Type | resolveTypeVariable (Class<?> root, TypeVariable<?> typeVariable) |
static Type [] | getActualTypeArgumentsOfAnInterface (Class<?> classToSearch, Class<?> interfaceToFind) |
static Type [] | findParameterizedTypes (Class<?> root, Class<?> searchedFor) |
static Type [] | findClassParameterizedTypes (Class<?> root, ParameterizedType rootType, Class<?> searchedForClass) |
static Type [] | findInterfaceParameterizedTypes (Class<?> root, ParameterizedType rootType, Class<?> searchedForInterface) |
static< T > boolean | supports (Class< T > type, Object object, Class<?> fromInterface) |
非公開メンバ関数 | |
Types () | |
静的非公開メンバ関数 | |
static Object | searchForInterfaceTemplateParameter (Class base, Class desiredInterface) |
static Map< String, Type > | populateParameterizedMap (Class<?> root, ParameterizedType rootType) |
static Type [] | recurseSuperclassForInterface (Class<?> searchedForInterface, Map< String, Type > typeVarMap, Type genericSub, Class<?> sub) |
static Type [] | extractTypeVariables (Map< String, Type > typeVarMap, Type[] types) |
static Type [] | extractTypes (Map< String, Type > typeVarMap, Type genericSub) |
静的非公開変数類 | |
static final Type [] | EMPTY_TYPE_ARRAY = {} |
Utility class for Types
|
inlinestatic |
|
inlinestatic |
Gets the boxed type of a class
type | The type |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Search for the given interface or class within the root's class/interface hierarchy. If the searched for class/interface is a generic return an array of real types that fill it out.
root | |
searchedFor |
|
inlinestatic |
Given a class and an interfaces, go through the class hierarchy to find the interface and return its type arguments.
classToSearch | |
interfaceToFind |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Given a method and a root class, find the actual method declared in the root that implements the method.
clazz | |
intfMethod |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Returns the type argument from a parameterized type
genericType |
|
inlinestatic |
|
inlinestatic |
See if the two methods are compatible, that is they have the same relative signature
method | |
intfMethod |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
Finds an actual value of a type variable. The method looks in a class hierarchy for a class defining the variable and returns the value if present.
root | |
typeVariable |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestatic |
Grabs the parameterized type of fromInterface that object implements and sees if it is assignable from type.
type | |
object | |
fromInterface | |
<T> |
|
staticprivate |