Package com.strobel.reflection
Class GenericParameter<T>
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.Type<T>
com.strobel.reflection.GenericParameter<T>
- All Implemented Interfaces:
AnnotatedElement,Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MethodInfoprivate Type<?> private Type<?> private final Stringprivate final intprivate TypeVariable<?> private Type<?> 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, ValueFields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)GenericParameter(String name, MethodInfo declaringMethod, Type<?> upperBound, int position) protectedGenericParameter(String name, MethodInfo declaringMethod, Type<?> upperBound, Type<?> lowerBound, int position) (package private)GenericParameter(String name, Type<?> declaringType, Type<?> upperBound, int position) protectedGenericParameter(String name, Type<?> declaringType, Type<?> upperBound, Type<?> lowerBound, int position) (package private)GenericParameter(String name, TypeVariable<?> typeVariable, int position) -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringBuilder_appendClassName(StringBuilder sb, boolean fullName, boolean dottedName) <P,R> R accept(TypeVisitor<P, R> visitor, P parameter) <A extends Annotation>
AgetAnnotation(Class<A> annotationClass) Type<?> Type<?> intgetKind()intTypeVariable<?> Type<?> inthashCode()booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) booleanisEquivalentTo(Type<?> member) booleanprivate Class<?> private TypeVariable<?> voidsetDeclaringMethod(MethodInfo declaringMethod) voidsetDeclaringType(Type<?> declaringType) (package private) final voidsetLowerBound(Type<?> lowerBound) (package private) final voidsetUpperBound(Type<?> upperBound) toString()Methods inherited from class com.strobel.reflection.Type
_appendClassDescription, _appendClassSignature, _appendErasedClassSignature, appendGenericSignature, appendSignature, asSuperTypeOf, bottomType, containsGenericParameter, containsGenericParameters, createArrayType, filterMethodBase, filterPreCalculate, findMembers, forName, forName, getBaseType, getCache, getClassFullName, getClassSimpleName, getConstructor, getConstructor, getConstructor, getConstructors, getConstructors, getDeclaredConstructors, getDeclaredFields, getDeclaredMethods, getDeclaredTypes, getElementType, getEnumConstants, getEnumNames, getErasedType, getField, getField, getFields, getFields, getGenericSignature, getGenericTypeDefinition, getGenericTypeParameters, getInterfaces, getInternalName, getMember, getMember, getMember, getMembers, getMembers, getMembers, getMembers, getMembers, getMembersOfType, getMethod, getMethod, getMethod, getMethods, getMethods, getMethods, getMostSpecificType, getName, getNestedType, getNestedType, getNestedTypes, getNestedTypes, getPackage, getRootElementType, getShortName, getType, getTypeArguments, getTypeBindings, getUnderlyingType, getUnderlyingTypeCore, hasElementType, hasExtendsBound, hasSuperBound, implementsInterface, invalidateCaches, isAbstract, isArray, isAssignableFrom, isBoundedType, isClass, isCompoundType, isEnum, isEquivalentTo, isGenericType, 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, 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
-
_name
-
_position
private final int _position -
_upperBound
-
_lowerBound
-
_declaringMethod
-
_declaringType
-
_erasedClass
-
_typeVariable
-
-
Constructor Details
-
GenericParameter
GenericParameter(String name, TypeVariable<?> typeVariable, int position) -
GenericParameter
-
GenericParameter
GenericParameter(String name, MethodInfo declaringMethod, Type<?> upperBound, int position) -
GenericParameter
-
GenericParameter
protected GenericParameter(String name, MethodInfo declaringMethod, Type<?> upperBound, Type<?> lowerBound, int position)
-
-
Method Details
-
setUpperBound
-
setLowerBound
-
getExplicitInterfaces
- Overrides:
getExplicitInterfacesin classType<T>
-
resolveTypeVariable
-
resolveErasedClass
-
getRawTypeVariable
-
getMemberType
- Overrides:
getMemberTypein classType<T>
-
getFullName
- Overrides:
getFullNamein classType<T>
-
appendBriefDescription
- Overrides:
appendBriefDescriptionin classType<T>
-
appendSimpleDescription
- Overrides:
appendSimpleDescriptionin classType<T>
-
appendErasedDescription
- Overrides:
appendErasedDescriptionin classType<T>
-
appendErasedSignature
- Overrides:
appendErasedSignaturein classType<T>
-
appendDescription
- Overrides:
appendDescriptionin classType<T>
-
_appendClassName
protected final StringBuilder _appendClassName(StringBuilder sb, boolean fullName, boolean dottedName) - Overrides:
_appendClassNamein classType<T>
-
getDeclaringType
- Specified by:
getDeclaringTypein classMemberInfo
-
getDeclaringMethod
- Overrides:
getDeclaringMethodin classType<T>
-
setDeclaringMethod
-
setDeclaringType
-
isGenericParameter
public boolean isGenericParameter()- Overrides:
isGenericParameterin classType<T>
-
getKind
-
getSuperBound
- Overrides:
getSuperBoundin classType<T>
-
getExtendsBound
- Overrides:
getExtendsBoundin classType<T>
-
getErasedClass
- Overrides:
getErasedClassin classType<T>
-
getGenericParameterPosition
public int getGenericParameterPosition()- Overrides:
getGenericParameterPositionin 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>
-
toString
-
accept
-
hashCode
public int hashCode() -
isEquivalentTo
- Overrides:
isEquivalentToin classType<T>
-