| Package | Description |
|---|---|
| ch.jalu.typeresolver | |
| ch.jalu.typeresolver.reference | |
| ch.jalu.typeresolver.typeimpl |
| Modifier and Type | Method and Description |
|---|---|
@Nullable TypeInfo |
TypeInfo.getComponentType()
Returns the array component type of this type, if applicable.
|
@Nullable TypeInfo |
TypeInfo.getEnclosingType()
Returns a type info of the enclosing type (i.e.
|
@Nullable TypeInfo |
TypeInfo.getTypeArgumentInfo(int index)
Returns the type argument at the given index for the wrapped type, provided that the type is a parameterized type
and that the index is valid.
|
static TypeInfo |
TypeInfo.of(Field field)
Creates a new instance wrapping the generic type of the given field.
|
static TypeInfo |
TypeInfo.of(Type type)
Creates a new instance wrapping the given type.
|
TypeInfo |
TypeInfo.resolve(Type type)
Resolves the given type if possible, based on information from the wrapped Type of this instance.
|
@Nullable TypeInfo |
TypeInfo.resolveSuperclass(Class<?> clazz)
Returns the given class' including its type arguments if it is a superclass of this wrapped type.
|
| Modifier and Type | Method and Description |
|---|---|
Set<TypeInfo> |
TypeInfo.getAllTypeInfos()
Returns all types that this wrapped type is an instance of, as TypeInfo instances.
|
| Modifier and Type | Class and Description |
|---|---|
class |
NestedTypeReference<L extends List>
A type reference class that retrieves the type argument of this class's List type argument, allowing the creation of
wildcard types, which cannot be created directly with
TypeReference. |
class |
TypeReference<T>
|
| Modifier and Type | Method and Description |
|---|---|
ParameterizedTypeBuilder |
ParameterizedTypeBuilder.withTypeArg(int typeParameterIndex,
TypeInfo typeInfo)
Sets the type argument to the given index.
|
ParameterizedTypeBuilder |
ParameterizedTypeBuilder.withTypeArg(String typeParameterName,
TypeInfo typeInfo)
Sets the type argument for the parameter with the given name.
|
ParameterizedTypeBuilder |
ParameterizedTypeBuilder.withTypeArg(TypeVariable<?> typeVariable,
TypeInfo typeInfo)
Sets the given type variable to the provided type.
|
Copyright © 2023. All rights reserved.