public abstract class GenericAccessibleObject<T extends GenericAccessibleObject<?>> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
protected GenericClass |
owner |
protected List<GenericClass> |
typeVariables |
| Constructor and Description |
|---|
GenericAccessibleObject(GenericClass owner) |
protected static final org.slf4j.Logger logger
protected GenericClass owner
protected List<GenericClass> typeVariables
public GenericAccessibleObject(GenericClass owner)
protected static Type getTypeFromExactReturnType(GenericArrayType returnType, GenericArrayType type)
protected static Type getTypeFromExactReturnType(GenericArrayType returnType, ParameterizedType type)
protected static Type getTypeFromExactReturnType(ParameterizedType returnType, GenericArrayType type)
protected static Type getTypeFromExactReturnType(ParameterizedType returnType, ParameterizedType type)
protected static Type getTypeFromExactReturnType(Type returnType, Type type)
protected static boolean isMissingTypeParameters(Type type)
public void changeClassLoader(ClassLoader loader)
protected void copyTypeVariables(GenericAccessibleObject<?> copy)
public abstract T copy()
public abstract T copyWithNewOwner(GenericClass newOwner)
public abstract T copyWithOwnerFromReturnType(GenericClass returnType) throws ConstructionFailedException
ConstructionFailedExceptionpublic abstract AccessibleObject getAccessibleObject()
public abstract Class<?> getDeclaringClass()
public abstract Type getGeneratedType()
public GenericClass getGeneratedClass()
public Type[] getGenericParameterTypes()
public abstract Type getGenericGeneratedType()
public T getGenericInstantiation() throws ConstructionFailedException
ConstructionFailedExceptionpublic T getGenericInstantiation(GenericClass calleeType) throws ConstructionFailedException
calleeType - ConstructionFailedExceptionpublic T getGenericInstantiationFromReturnValue(GenericClass generatedType) throws ConstructionFailedException
returnType - ConstructionFailedExceptionpublic abstract String getName()
public int getNumParameters()
public GenericClass getOwnerClass()
public Type getOwnerType()
public abstract Class<?> getRawGeneratedType()
public TypeVariable<?>[] getTypeParameters()
protected Map<TypeVariable<?>,GenericClass> getTypeVariableMap()
public boolean hasTypeParameters()
public abstract boolean isAccessible()
public boolean isConstructor()
public boolean isField()
public boolean isMethod()
public boolean isStatic()
protected Type mapTypeParameters(Type toMapType, Type typeAndParams)
toMapType - Type possibly containing type argumentstypeAndParams - must be either ParameterizedType, or (in case there are no
type arguments, or it's a raw type) Classpublic void setTypeParameters(List<GenericClass> parameterTypes)
Copyright © 2010–2017 EvoSuite. All rights reserved.