Package com.strobel.reflection
Class GenericType<T>
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.Type<T>
com.strobel.reflection.GenericType<T>
- All Implemented Interfaces:
AnnotatedElement,Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Type<?> private ConstructorListprivate FieldListprivate final Type<?> private TypeListprivate MethodListprivate TypeListprivate final TypeBindings(package private) static final TypeBinderFields inherited from class com.strobel.reflection.Type
Bottom, CACHE, CACHE_LOCK, DefaultBinder, DefaultLookup, Delimiter, EmptyConstructors, EmptyFields, EmptyMembers, EmptyMethods, EmptyObjects, EmptyStrings, EmptyTypes, FilterMethodOverride, FilterName, FilterNameIgnoreCase, FilterRawMember, NullType, PRIMITIVE_TYPES, RESOLVER, TYPE_BINDER, ValueFields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER -
Constructor Summary
ConstructorsConstructorDescriptionGenericType(Type<?> genericTypeDefinition, Type<?>... typeArguments) GenericType(Type<?> genericTypeDefinition, TypeBindings typeBindings) GenericType(Type<?> genericTypeDefinition, TypeList typeArguments) -
Method Summary
Modifier and TypeMethodDescription<P,R> R accept(TypeVisitor<P, R> typeVisitor, P parameter) private voidprivate voidprivate voidprivate voidprivate voidprivate void<A extends Annotation>
AgetAnnotation(Class<A> annotationClass) protected ConstructorListprotected FieldListprotected MethodListprotected TypeListType<?> Type<?> intbooleanisAnnotationPresent(Class<? extends Annotation> annotationClass) booleanMethods inherited from class com.strobel.reflection.Type
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, appendBriefDescription, appendDescription, appendErasedDescription, appendErasedSignature, appendGenericSignature, appendSignature, appendSimpleDescription, asSuperTypeOf, bottomType, containsGenericParameter, containsGenericParameters, createArrayType, filterMethodBase, filterPreCalculate, findMembers, forName, forName, getCache, getClassFullName, getClassSimpleName, getConstructor, getConstructor, getConstructor, getConstructors, getConstructors, getDeclaringMethod, getElementType, getEnumConstants, getEnumNames, getErasedType, getExtendsBound, getField, getField, getFields, getFields, getFullName, getGenericParameterPosition, getGenericSignature, getGenericTypeParameters, getInterfaces, getInternalName, getKind, getMember, getMember, getMember, getMembers, getMembers, getMembers, getMembers, getMembers, getMembersOfType, getMethod, getMethod, getMethod, getMethods, getMethods, getMethods, getMostSpecificType, getName, getNestedType, getNestedType, getNestedTypes, getNestedTypes, getPackage, getRootElementType, getShortName, getSuperBound, getType, getTypeArguments, getUnderlyingType, getUnderlyingTypeCore, hasElementType, hasExtendsBound, hashCode, hasSuperBound, implementsInterface, invalidateCaches, isAbstract, isArray, isAssignableFrom, isBoundedType, isClass, isCompoundType, isEnum, isEquivalentTo, isEquivalentTo, isGenericParameter, isGenericTypeDefinition, isInstance, isInterface, isLocalClass, isNested, isPrimitive, isRawType, isSubTypeOf, isSynthetic, isUnbounded, isVisible, isWildcardType, list, list, list, makeArrayType, makeArrayType, makeCompoundType, makeCompoundType, makeExtendsWildcard, makeGenericType, makeGenericType, makeGenericTypeCore, makeSuperWildcard, makeWildcard, newInstance, nullType, of, of, substitute, toString, tryFind, unboundedWildcardMethods inherited from class com.strobel.reflection.MemberInfo
emptyAnnotations, equals, getAnnotationsByType, getBriefDescription, getDeclaredAnnotation, getDeclaredAnnotationsByType, getDescription, getErasedDescription, getErasedSignature, getReflectedType, getSignature, getSimpleDescription, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.Type
getTypeName
-
Field Details
-
GenericBinder
-
_genericTypeDefinition
-
_typeBindings
-
_interfaces
-
_baseType
-
_fields
-
_constructors
-
_methods
-
_nestedTypes
-
-
Constructor Details
-
GenericType
GenericType(Type<?> genericTypeDefinition, TypeBindings typeBindings) -
GenericType
-
GenericType
-
-
Method Details
-
ensureBaseType
private void ensureBaseType() -
ensureInterfaces
private void ensureInterfaces() -
ensureFields
private void ensureFields() -
ensureConstructors
private void ensureConstructors() -
ensureMethods
private void ensureMethods() -
ensureNestedTypes
private void ensureNestedTypes() -
getErasedClass
- Overrides:
getErasedClassin classType<T>
-
getExplicitInterfaces
- Overrides:
getExplicitInterfacesin classType<T>
-
getBaseType
- Overrides:
getBaseTypein classType<T>
-
getGenericTypeDefinition
- Overrides:
getGenericTypeDefinitionin classType<T>
-
getMemberType
- Overrides:
getMemberTypein classType<T>
-
getDeclaringType
- Specified by:
getDeclaringTypein classMemberInfo
-
isGenericType
public boolean isGenericType()- Overrides:
isGenericTypein classType<T>
-
getTypeBindings
- Overrides:
getTypeBindingsin classType<T>
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin classMemberInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement- Overrides:
isAnnotationPresentin classType<T>
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement- Overrides:
getAnnotationin classType<T>
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement- Overrides:
getAnnotationsin classType<T>
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement- Overrides:
getDeclaredAnnotationsin classType<T>
-
accept
-
getDeclaredConstructors
- Overrides:
getDeclaredConstructorsin classType<T>
-
getDeclaredMethods
- Overrides:
getDeclaredMethodsin classType<T>
-
getDeclaredFields
- Overrides:
getDeclaredFieldsin classType<T>
-
getDeclaredTypes
- Overrides:
getDeclaredTypesin classType<T>
-