public class Java5ClassInspector extends ClassInspector
Constructor and Description |
---|
Java5ClassInspector(ClassFactory cf)
DO NOT USE!
|
Modifier and Type | Method and Description |
---|---|
private void |
addResolvedTypes(java.util.HashMap<java.lang.reflect.Type,java.lang.reflect.Type> resolvedTypes,
java.lang.reflect.Type genericType)
Given a generic type, add its parameter types to an evolving
map of resolved types.
|
private java.lang.Class[] |
boundType(java.lang.reflect.Type type)
Get the bounds for a single type variable.
|
private java.lang.Class[][] |
findTypeBounds(java.lang.reflect.ParameterizedType pt)
Get the type bounds for all of the type variables of the given
parameterized type.
|
java.lang.Class[] |
getGenericParameterTypes(java.lang.Class parameterizedType,
java.lang.Class implementation)
Given an implementation of a parameterized interface, return
the actual types of the interface type variables.
|
private java.util.ArrayList<java.lang.Class<?>> |
getParameterTypes(java.lang.Class<?> parameterizedType,
java.util.HashMap<java.lang.reflect.Type,java.lang.reflect.Type> resolvedTypes)
Given a map of resolved types, compose them together in order
to resolve the actual concrete types that are plugged into the
parameterized type.
|
private java.lang.Class |
getRawType(java.lang.reflect.Type bound)
Get the raw type of a type bound.
|
private java.util.HashMap<java.lang.reflect.Type,java.lang.reflect.Type> |
getResolvedTypes(java.util.ArrayList<java.lang.Class<?>> chain)
Given an inheritance chain of types, stretching from a superclass down
to a terminal concrete class, construct a map of generic types to their
resolved types.
|
java.lang.Class[][] |
getTypeBounds(java.lang.Class parameterizedInterface,
java.lang.Class implementation)
Get the bounds for the type variables of a parameterized interface
as declared for an implementing class.
|
private java.util.ArrayList<java.lang.Class<?>> |
getTypeChain(java.lang.Class<?> chainEnd,
java.lang.Class<?> start)
Construct an inheritance chain of types stretching from a supertype down
to a concrete implementation.
|
boolean |
isVarArgsMethod(java.lang.reflect.Member member)
Return true if the method or constructor supports varargs.
|
accessible, assignableTo, classConvertableFromTo, findPublicConstructor, findPublicField, findPublicMethod, getClass, getDeclaringClass, getParameterTypes, getType, instanceOf, primitiveType, readableClassName
public Java5ClassInspector(ClassFactory cf)
public java.lang.Class[][] getTypeBounds(java.lang.Class parameterizedInterface, java.lang.Class implementation) throws StandardException
getTypeBounds
in class ClassInspector
StandardException
public boolean isVarArgsMethod(java.lang.reflect.Member member)
ClassInspector
isVarArgsMethod
in class ClassInspector
public java.lang.Class[] getGenericParameterTypes(java.lang.Class parameterizedType, java.lang.Class implementation) throws StandardException
ClassInspector
getGenericParameterTypes
in class ClassInspector
StandardException
private java.lang.Class[][] findTypeBounds(java.lang.reflect.ParameterizedType pt)
private java.lang.Class[] boundType(java.lang.reflect.Type type)
private java.lang.Class getRawType(java.lang.reflect.Type bound)
private java.util.ArrayList<java.lang.Class<?>> getTypeChain(java.lang.Class<?> chainEnd, java.lang.Class<?> start)
private java.util.HashMap<java.lang.reflect.Type,java.lang.reflect.Type> getResolvedTypes(java.util.ArrayList<java.lang.Class<?>> chain)
private void addResolvedTypes(java.util.HashMap<java.lang.reflect.Type,java.lang.reflect.Type> resolvedTypes, java.lang.reflect.Type genericType)
private java.util.ArrayList<java.lang.Class<?>> getParameterTypes(java.lang.Class<?> parameterizedType, java.util.HashMap<java.lang.reflect.Type,java.lang.reflect.Type> resolvedTypes)
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.