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 MethodInfo
private Type
<?> private Type
<?> private final String
private final int
private 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, Value
Fields 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) protected
GenericParameter
(String name, MethodInfo declaringMethod, Type<?> upperBound, Type<?> lowerBound, int position) (package private)
GenericParameter
(String name, Type<?> declaringType, Type<?> upperBound, int position) protected
GenericParameter
(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
<?> int
getKind()
int
TypeVariable
<?> Type
<?> int
hashCode()
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) boolean
isEquivalentTo
(Type<?> member) boolean
private Class
<?> private TypeVariable
<?> void
setDeclaringMethod
(MethodInfo declaringMethod) void
setDeclaringType
(Type<?> declaringType) (package private) final void
setLowerBound
(Type<?> lowerBound) (package private) final void
setUpperBound
(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, 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
-
_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:
getExplicitInterfaces
in classType<T>
-
resolveTypeVariable
-
resolveErasedClass
-
getRawTypeVariable
-
getMemberType
- Overrides:
getMemberType
in classType<T>
-
getFullName
- Overrides:
getFullName
in classType<T>
-
appendBriefDescription
- Overrides:
appendBriefDescription
in classType<T>
-
appendSimpleDescription
- Overrides:
appendSimpleDescription
in classType<T>
-
appendErasedDescription
- Overrides:
appendErasedDescription
in classType<T>
-
appendErasedSignature
- Overrides:
appendErasedSignature
in classType<T>
-
appendDescription
- Overrides:
appendDescription
in classType<T>
-
_appendClassName
protected final StringBuilder _appendClassName(StringBuilder sb, boolean fullName, boolean dottedName) - Overrides:
_appendClassName
in classType<T>
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
getDeclaringMethod
- Overrides:
getDeclaringMethod
in classType<T>
-
setDeclaringMethod
-
setDeclaringType
-
isGenericParameter
public boolean isGenericParameter()- Overrides:
isGenericParameter
in classType<T>
-
getKind
-
getSuperBound
- Overrides:
getSuperBound
in classType<T>
-
getExtendsBound
- Overrides:
getExtendsBound
in classType<T>
-
getErasedClass
- Overrides:
getErasedClass
in classType<T>
-
getGenericParameterPosition
public int getGenericParameterPosition()- Overrides:
getGenericParameterPosition
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>
-
toString
-
accept
-
hashCode
public int hashCode() -
isEquivalentTo
- Overrides:
isEquivalentTo
in classType<T>
-