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 ConstructorList
private FieldList
private final Type
<?> private TypeList
private MethodList
private TypeList
private final TypeBindings
(package private) static final TypeBinder
Fields 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, Value
Fields 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 void
private void
private void
private void
private void
private void
<A extends Annotation>
AgetAnnotation
(Class<A> annotationClass) protected ConstructorList
protected FieldList
protected MethodList
protected TypeList
Type
<?> Type
<?> int
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) boolean
Methods 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, unboundedWildcard
Methods 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, isStatic
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getErasedClass
in classType<T>
-
getExplicitInterfaces
- Overrides:
getExplicitInterfaces
in classType<T>
-
getBaseType
- Overrides:
getBaseType
in classType<T>
-
getGenericTypeDefinition
- Overrides:
getGenericTypeDefinition
in classType<T>
-
getMemberType
- Overrides:
getMemberType
in classType<T>
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
isGenericType
public boolean isGenericType()- Overrides:
isGenericType
in classType<T>
-
getTypeBindings
- Overrides:
getTypeBindings
in classType<T>
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classMemberInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
- Overrides:
isAnnotationPresent
in classType<T>
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
- Overrides:
getAnnotation
in classType<T>
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
- Overrides:
getAnnotations
in classType<T>
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotations
in classType<T>
-
accept
-
getDeclaredConstructors
- Overrides:
getDeclaredConstructors
in classType<T>
-
getDeclaredMethods
- Overrides:
getDeclaredMethods
in classType<T>
-
getDeclaredFields
- Overrides:
getDeclaredFields
in classType<T>
-
getDeclaredTypes
- Overrides:
getDeclaredTypes
in classType<T>
-