Package io.micronaut.core.type
Interface GenericPlaceholder<T>
-
- Type Parameters:
T- The generic type
- All Superinterfaces:
AnnotatedElement,AnnotationMetadataProvider,AnnotationSource,Argument<T>,Named,java.lang.reflect.Type,TypeInformation<T>,TypeVariableResolver
public interface GenericPlaceholder<T> extends Argument<T>
ExtendsArgumentto allow differentiating the variable name from the argument name in cases where this is required (parameters and fields for example).- Since:
- 3.2.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Fields inherited from interface io.micronaut.core.type.Argument
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LIST_OF_STRING, LONG, OBJECT_ARGUMENT, SHORT, STRING, VOID, VOID_OBJECT, ZERO_ARGUMENTS
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.StringgetVariableName()default booleanisTypeVariable()Whether this argument is a type variable used in generics.-
Methods inherited from interface io.micronaut.core.annotation.AnnotatedElement
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Methods inherited from interface io.micronaut.core.type.Argument
equalsType, getName, isAssignableFrom, isAssignableFrom, isInstance, typeHashCode
-
Methods inherited from interface io.micronaut.core.type.TypeInformation
asParameterizedType, asType, getSimpleName, getType, getTypeName, getTypeString, getWrappedType, getWrapperType, hasTypeVariables, isArray, isAsync, isAsyncOrReactive, isCompletable, isContainerType, isOptional, isPrimitive, isProvider, isReactive, isSpecifiedSingle, isVoid, isWrapperType
-
Methods inherited from interface io.micronaut.core.type.TypeVariableResolver
getFirstTypeVariable, getTypeParameters, getTypeVariable, getTypeVariables
-
-
-
-
Method Detail
-
getVariableName
@NonNull default java.lang.String getVariableName()
- Returns:
- The variable name, never
null.
-
isTypeVariable
default boolean isTypeVariable()
Description copied from interface:ArgumentWhether this argument is a type variable used in generics.- Specified by:
isTypeVariablein interfaceArgument<T>- Returns:
- True if it is a variable
-
-