Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(E) - Method in class io.leangen.geantyref.AnnotatedTypeSet
- addAll(Collection<? extends E>) - Method in class io.leangen.geantyref.AnnotatedTypeSet
- addWildcardParameters(Class<?>) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Returns a type representing the class, with all type parameters the unbound wildcard ("?").
- annotate(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Recursively wraps a
Typeinto anAnnotatedTypeusing the annotations found on the erasure classes. - annotate(Type, Annotation[]) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Recursively wraps a
Typeinto anAnnotatedTypeusing the annotations found on the erasure classes, plus adding the provided annotations to the top levelTypeonly. - AnnotatedCaptureType - Interface in io.leangen.geantyref
-
Annotated equivalent of
CaptureType - annotatedClass(Class<?>, Annotation[]) - Static method in class io.leangen.geantyref.TypeFactory
- annotatedInnerClass(Type, Class<?>, Annotation[]) - Static method in class io.leangen.geantyref.TypeFactory
- AnnotatedTypeMap<K,
V> - Class in io.leangen.geantyref -
A
Mapimplementation keyed byAnnotatedType. - AnnotatedTypeMap() - Constructor for class io.leangen.geantyref.AnnotatedTypeMap
-
Constructs an instance backed by a
HashMap - AnnotatedTypeMap(Map<K, V>) - Constructor for class io.leangen.geantyref.AnnotatedTypeMap
-
Constructs an instance backed by the provided map, keeping its guarantees
- AnnotatedTypeSet<E> - Class in io.leangen.geantyref
-
A
Setimplementation suited for maintainingAnnotatedTypeelements. - AnnotatedTypeSet() - Constructor for class io.leangen.geantyref.AnnotatedTypeSet
- AnnotatedTypeSet(Set<E>) - Constructor for class io.leangen.geantyref.AnnotatedTypeSet
- annotation(Class<A>, Map<String, Object>) - Static method in class io.leangen.geantyref.TypeFactory
-
Creates an instance of an annotation.
- AnnotationFormatException - Exception Class in io.leangen.geantyref
-
Indicates that invalid data has been encountered during annotation creation.
- arrayOf(AnnotatedType, Annotation[]) - Static method in class io.leangen.geantyref.TypeFactory
-
Creates an
AnnotatedArrayTypewrapped around an array types created byTypeFactory.arrayOf(Type) - arrayOf(Type) - Static method in class io.leangen.geantyref.TypeFactory
-
Creates a array type.
B
- box(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
C
- capture(AnnotatedParameterizedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Applies capture conversion to the given type.
- capture(AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Applies capture conversion to the given type.
- CaptureType - Interface in io.leangen.geantyref
-
CaptureType represents a wildcard that has gone through capture conversion.
- clear() - Method in class io.leangen.geantyref.AnnotatedTypeMap
- clear() - Method in class io.leangen.geantyref.AnnotatedTypeSet
- compute(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- computeIfAbsent(K, Function<? super K, ? extends V>) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- computeIfPresent(K, BiFunction<? super K, ? super V, ? extends V>) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- contains(Object) - Method in class io.leangen.geantyref.AnnotatedTypeSet
- containsAll(Collection<?>) - Method in class io.leangen.geantyref.AnnotatedTypeSet
- containsKey(Object) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- containsValue(Object) - Method in class io.leangen.geantyref.AnnotatedTypeMap
E
- entrySet() - Method in class io.leangen.geantyref.AnnotatedTypeMap
- equals(Object) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- equals(Object) - Method in class io.leangen.geantyref.TypeToken
- equals(Object) - Method in class io.leangen.geantyref.TypeVariableImpl
- equals(AnnotatedType, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Checks whether the two provided types are of the same structure and annotations on all levels.
- erase(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Returns the erasure of the given type.
F
- forEach(BiConsumer<? super K, ? super V>) - Method in class io.leangen.geantyref.AnnotatedTypeMap
G
- GenericTypeReflector - Class in io.leangen.geantyref
-
Utility class for doing reflection on types.
- GenericTypeReflector() - Constructor for class io.leangen.geantyref.GenericTypeReflector
- get(Class<T>) - Static method in class io.leangen.geantyref.TypeToken
-
Gets type token for the given
Classinstance. - get(Object) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- get(Type) - Static method in class io.leangen.geantyref.TypeToken
-
Gets type token for the given
Typeinstance. - getAnnotatedBounds() - Method in class io.leangen.geantyref.TypeVariableImpl
- getAnnotatedLowerBounds() - Method in interface io.leangen.geantyref.AnnotatedCaptureType
- getAnnotatedType() - Method in class io.leangen.geantyref.TypeToken
- getAnnotatedTypeVariable() - Method in interface io.leangen.geantyref.AnnotatedCaptureType
- getAnnotatedUpperBounds() - Method in interface io.leangen.geantyref.AnnotatedCaptureType
- getAnnotatedWildcardType() - Method in interface io.leangen.geantyref.AnnotatedCaptureType
- getAnnotation(Class<T>) - Method in class io.leangen.geantyref.TypeVariableImpl
- getAnnotations() - Method in class io.leangen.geantyref.TypeVariableImpl
- getArgument() - Method in exception class io.leangen.geantyref.TypeArgumentNotInBoundException
-
Returns the supplied argument that is not within the bound.
- getArrayComponentType(AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
If type is an array type, returns the annotated type of the component of the array.
- getArrayComponentType(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
If type is an array type, returns the type of the component of the array.
- getBound() - Method in exception class io.leangen.geantyref.TypeArgumentNotInBoundException
-
Returns the bound that was not satisfied.
- getBounds() - Method in class io.leangen.geantyref.TypeVariableImpl
- getCanonicalType() - Method in class io.leangen.geantyref.TypeToken
- getDeclaredAnnotations() - Method in class io.leangen.geantyref.TypeVariableImpl
- getExactFieldType(Field, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the exact type of the given field in the given type.
- getExactFieldType(Field, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the exact type of the given field in the given type.
- getExactParameterTypes(Executable, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the exact annotated parameter types of the given method/constructor in the given type.
- getExactParameterTypes(Executable, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the exact parameter types of the given method/constructor in the given type.
- getExactReturnType(Method, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the exact return type of the given method in the given type.
- getExactReturnType(Method, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the exact return type of the given method in the given type.
- getExactSubType(AnnotatedType, Class<?>) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
The equivalent of
GenericTypeReflector.getExactSubType(Type, Class)but works withAnnotatedTypes - getExactSubType(Type, Class<?>) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Finds the most specific subtype of
superTypewhose erasure issearchSubClass. - getExactSuperType(AnnotatedType, Class<?>) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
The equivalent of
GenericTypeReflector.getExactSuperType(Type, Class)but works withAnnotatedTypes - getExactSuperType(Type, Class<?>) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Finds the most specific supertype of
subTypewhose erasure issearchSuperClass. - getFieldType(Field, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the type of the given field in the given type.
- getFieldType(Field, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the type of the given field in the given type.
- getGenericDeclaration() - Method in class io.leangen.geantyref.TypeVariableImpl
- getLowerBounds() - Method in interface io.leangen.geantyref.CaptureType
-
Returns an array of Type objects representing the lower bound(s) of this type variable.
- getName() - Method in class io.leangen.geantyref.TypeVariableImpl
- getOrDefault(Object, V) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- getParameter() - Method in exception class io.leangen.geantyref.TypeArgumentNotInBoundException
-
Returns the type parameter.
- getParameterTypes(Executable, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
- getParameterTypes(Executable, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
- getReturnType(Method, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the return type of the given method in the given type.
- getReturnType(Method, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Resolves the return type of the given method in the given type.
- getType() - Method in class io.leangen.geantyref.TypeToken
- getTypeName(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Returns the display name of a Type.
- getTypeParameter(AnnotatedType, TypeVariable<? extends Class<?>>) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Gets the type parameter for a given type that is the value for a given type variable.
- getTypeParameter(Type, TypeVariable<? extends Class<?>>) - Static method in class io.leangen.geantyref.GenericTypeReflector
- getTypeVariable() - Method in interface io.leangen.geantyref.CaptureType
- getUpperBoundClassAndInterfaces(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Returns list of classes and interfaces that are supertypes of the given type.
- getUpperBounds() - Method in interface io.leangen.geantyref.CaptureType
-
Returns an array of Type objects representing the upper bound(s) of this capture.
- getWildcardType() - Method in interface io.leangen.geantyref.CaptureType
H
- hashCode() - Method in class io.leangen.geantyref.AnnotatedTypeMap
- hashCode() - Method in class io.leangen.geantyref.TypeToken
- hashCode() - Method in class io.leangen.geantyref.TypeVariableImpl
- hashCode(AnnotatedType...) - Static method in class io.leangen.geantyref.GenericTypeReflector
I
- innerClass(Type, Class<?>) - Static method in class io.leangen.geantyref.TypeFactory
-
Creates a type of
clazznested inowner. - io.leangen.geantyref - module io.leangen.geantyref
-
GeantyRef - Type reflection library for Java
- io.leangen.geantyref - package io.leangen.geantyref
- isBoxType(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
- isEmpty() - Method in class io.leangen.geantyref.AnnotatedTypeMap
- isEmpty() - Method in class io.leangen.geantyref.AnnotatedTypeSet
- isFullyBound(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
- isMissingTypeParameters(Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Checks if the given type is a class that is supposed to have type parameters, but doesn't.
- isSuperType(Type, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Checks if the capture of subType is a subtype of superType
- iterator() - Method in class io.leangen.geantyref.AnnotatedTypeSet
K
- keySet() - Method in class io.leangen.geantyref.AnnotatedTypeMap
M
- merge(Annotation[]...) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Merges an arbitrary number of annotations arrays, and removes duplicates.
- merge(K, V, BiFunction<? super V, ? super V, ? extends V>) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- mergeAnnotations(T, T) - Static method in class io.leangen.geantyref.GenericTypeReflector
P
- parameterizedAnnotatedClass(Class<?>, Annotation[], AnnotatedType...) - Static method in class io.leangen.geantyref.TypeFactory
- parameterizedAnnotatedInnerClass(AnnotatedType, Class<?>, Annotation[], AnnotatedType...) - Static method in class io.leangen.geantyref.TypeFactory
- parameterizedAnnotatedInnerClass(Type, Class<?>, Annotation[], AnnotatedType...) - Static method in class io.leangen.geantyref.TypeFactory
- parameterizedAnnotatedType(ParameterizedType, Annotation[], Annotation[]...) - Static method in class io.leangen.geantyref.TypeFactory
- parameterizedClass(Class<?>, Type...) - Static method in class io.leangen.geantyref.TypeFactory
-
Creates a type of class
clazzwithargumentsas type arguments. - parameterizedInnerClass(Type, Class<?>, Type...) - Static method in class io.leangen.geantyref.TypeFactory
-
Creates a type of
clazzwithargumentsas type arguments, nested inowner. - put(K, V) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- putAll(Map<? extends K, ? extends V>) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- putIfAbsent(K, V) - Method in class io.leangen.geantyref.AnnotatedTypeMap
R
- reduceBounded(AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Recursively traverses the structure of the given type, reducing all bounded types (
AnnotatedTypeVariable,AnnotatedWildcardTypeandAnnotatedCaptureType) to their first bound. - remove(Object) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- remove(Object) - Method in class io.leangen.geantyref.AnnotatedTypeSet
- remove(Object, Object) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- removeAll(Collection<?>) - Method in class io.leangen.geantyref.AnnotatedTypeSet
- replace(K, V) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- replace(K, V, V) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- replaceAll(BiFunction<? super K, ? super V, ? extends V>) - Method in class io.leangen.geantyref.AnnotatedTypeMap
- replaceAnnotations(T, Annotation[]) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Creates a new
AnnotatedTypeof the same type as the original, but with its annotations replaced with the provided ones. - replaceParameters(AnnotatedParameterizedType, AnnotatedType[]) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Creates a new
AnnotatedParameterizedTypeof the same raw class as the providedtypeby with all of its type parameters replaced bytypeParameters. - replaceParameters(AnnotatedParameterizedType, AnnotatedType[], AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
- resolveExactType(AnnotatedType, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
- resolveExactType(Type, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
- resolveType(AnnotatedType, AnnotatedType) - Static method in class io.leangen.geantyref.GenericTypeReflector
- resolveType(Type, Type) - Static method in class io.leangen.geantyref.GenericTypeReflector
- retainAll(Collection<?>) - Method in class io.leangen.geantyref.AnnotatedTypeSet
S
- setAnnotatedUpperBounds(AnnotatedType[]) - Method in interface io.leangen.geantyref.AnnotatedCaptureType
- setUpperBounds(Type[]) - Method in interface io.leangen.geantyref.CaptureType
-
Overwrite the upper bounds of this capture.
- size() - Method in class io.leangen.geantyref.AnnotatedTypeMap
- size() - Method in class io.leangen.geantyref.AnnotatedTypeSet
T
- toArray() - Method in class io.leangen.geantyref.AnnotatedTypeSet
- toArray(T[]) - Method in class io.leangen.geantyref.AnnotatedTypeSet
- toCanonical(T) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Returns an
AnnotatedTypefunctionally identical to the given one, but in a canonical form that implementsequalsandhashCode. - toCanonicalBoxed(T) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Returns an
AnnotatedTypefunctionally identical to the given one, but in a canonical form that implementsequalsandhashCodeand has all the primitives replaced by their boxed form. - toString() - Method in class io.leangen.geantyref.TypeVariableImpl
- transform(AnnotatedType, TypeVisitor) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Recursively applies a transformation implemented by the provided
TypeVisitorto the structure of the given type. - TypeArgumentNotInBoundException - Exception Class in io.leangen.geantyref
-
Thrown to indicate that a type argument for a parameterized type is not within the bound declared on the type parameter.
- TypeFactory - Class in io.leangen.geantyref
-
Utility class for creating instances of
Type. - TypeFactory() - Constructor for class io.leangen.geantyref.TypeFactory
- TypeToken<T> - Class in io.leangen.geantyref
-
Wrapper around
Type. - TypeToken() - Constructor for class io.leangen.geantyref.TypeToken
-
Constructs a type token.
- TypeVariableImpl<D> - Class in io.leangen.geantyref
- TypeVisitor - Class in io.leangen.geantyref
- TypeVisitor() - Constructor for class io.leangen.geantyref.TypeVisitor
U
- unboundWildcard() - Static method in class io.leangen.geantyref.TypeFactory
-
Returns the wildcard type without bounds.
- updateAnnotations(T, Annotation[]) - Static method in class io.leangen.geantyref.GenericTypeReflector
-
Creates a new
AnnotatedTypeof the same structure as the original, but with its annotations replaced with the provided ones.
V
- values() - Method in class io.leangen.geantyref.AnnotatedTypeMap
- visitArray(AnnotatedArrayType) - Method in class io.leangen.geantyref.TypeVisitor
- visitCaptureType(AnnotatedCaptureType) - Method in class io.leangen.geantyref.TypeVisitor
- visitClass(AnnotatedType) - Method in class io.leangen.geantyref.TypeVisitor
- visitParameterizedType(AnnotatedParameterizedType) - Method in class io.leangen.geantyref.TypeVisitor
- visitUnmatched(AnnotatedType) - Method in class io.leangen.geantyref.TypeVisitor
- visitVariable(AnnotatedTypeVariable) - Method in class io.leangen.geantyref.TypeVisitor
- visitWildcardType(AnnotatedWildcardType) - Method in class io.leangen.geantyref.TypeVisitor
W
- wildcardExtends(Type) - Static method in class io.leangen.geantyref.TypeFactory
-
Creates a wildcard type with an upper bound.
- wildcardSuper(Type) - Static method in class io.leangen.geantyref.TypeFactory
-
Creates a wildcard type with a lower bound.
All Classes and Interfaces|All Packages|Serialized Form