public final class TypeVariableName extends TypeName
| 限定符和类型 | 方法和说明 |
|---|---|
TypeVariableName |
annotated(List<AnnotationSpec> annotations) |
static TypeVariableName |
get(String name)
Returns type variable named
name without bounds. |
static TypeVariableName |
get(String name,
Type... bounds)
Returns type variable named
name with bounds. |
static TypeVariableName |
get(String name,
TypeName... bounds)
Returns type variable named
name with bounds. |
static TypeVariableName |
get(TypeParameterElement element)
Returns type variable equivalent to
element. |
static TypeVariableName |
get(TypeVariable mirror)
Returns type variable equivalent to
mirror. |
static TypeVariableName |
get(TypeVariable<?> type)
Returns type variable equivalent to
type. |
TypeVariableName |
withBounds(List<? extends TypeName> bounds) |
TypeVariableName |
withBounds(Type... bounds) |
TypeVariableName |
withBounds(TypeName... bounds) |
TypeName |
withoutAnnotations() |
annotated, box, concatAnnotations, equals, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, toString, unboxpublic TypeVariableName annotated(List<AnnotationSpec> annotations)
public TypeName withoutAnnotations()
withoutAnnotations 在类中 TypeNamepublic TypeVariableName withBounds(Type... bounds)
public TypeVariableName withBounds(TypeName... bounds)
public TypeVariableName withBounds(List<? extends TypeName> bounds)
public static TypeVariableName get(String name)
name without bounds.public static TypeVariableName get(String name, TypeName... bounds)
name with bounds.public static TypeVariableName get(String name, Type... bounds)
name with bounds.public static TypeVariableName get(TypeVariable mirror)
mirror.public static TypeVariableName get(TypeParameterElement element)
element.public static TypeVariableName get(TypeVariable<?> type)
type.Copyright © 2025 fossc. All rights reserved.